3016669b4b* fhandler_clipboard.cc: Use int for cygnativeformat rather than UINT as that is what is returned by GetPriorityClipboardFormat. (fhandler_dev_clipboard::read): Ditto for the format variable.
Christopher Faylor
2005-03-04 18:04:11 +0000
f317a917bc* fhandler_socket.cc (fhandler_socket::ioctl): Only cancel WSAAsyncSelect when async mode is on.
Corinna Vinschen
2005-03-04 08:36:43 +0000
6b76b0c5d4* cygwin.din (utmpxname): Export. * syscalls.cc (utmpxname): Create export alias to utmpname. * include/utmpx.h: Define ut_name and ut_xtime if not already defined. (utmpxname): Add prototype. * include/sys/utmp.h: Only define ut_name if not already defined. * include/cygwin/version.h: Bump API minor version.
Corinna Vinschen
2005-03-03 22:08:12 +0000
33aca56322* cygthread.cc (cygthread::detach): Use a slightly higher priority when waiting for thread signalling.
Christopher Faylor
2005-03-03 16:53:52 +0000
7486d0c019Add Pierre's security text.
Joshua Daniel Franklin
2005-03-03 16:36:08 +0000
7c8d92d7a6restore comment
Christopher Faylor
2005-03-03 15:12:50 +0000
3aeffaadc7update copyright dates
Alan Modra
2005-03-03 11:58:10 +0000
410b2bc211fix changelog garbling
Christopher Faylor
2005-03-03 01:06:30 +0000
608b0ce960* autoload.cc (std_dll_init): Save and restore fpu control register around LoadAddress to prevent loaded dlls (like msvcrt.dll) from setting unwanted stuff.
Christopher Faylor
2005-03-03 00:49:53 +0000
55b670024c* cygtls.cc (_cygtls::remove): Don't attempt any removal activities if exitsock is zero.
Christopher Faylor
2005-03-03 00:36:49 +0000
d845acc8d2* cygtls.cc (_cygtls::init_thread): Move exitsock setting later. It should always be set. (_cygtls::remove): Detect zero exitsock. Not quite sure why this is needed.
Christopher Faylor
2005-03-03 00:32:57 +0000
d0f0ea3034* autoload.cc (LoadDLLprime): Mask error code to low-order 16 bits. (noload): Preserve sign when returning error code.
Christopher Faylor
2005-03-02 16:13:24 +0000
d83eb0c7d0* spawn.cc (do_cleanup): Properly restore SIGINT/SIGQUIT even if they had previously been SIG_DFL.
Christopher Faylor
2005-03-02 15:32:34 +0000
93c60b6d6a2005-02-28 Andrew Pinski <pinskia@physics.uc.edu>
Paolo Bonzini
2005-02-28 15:13:42 +0000
7fc2ca22c12005-02-28 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini
2005-02-28 14:07:03 +0000
496337c9a5* fhandler.h (class fhandler_socket): Declare new method set_socketpair_eids. * fhandler_socket.cc (fhandler_socket::set_socketpair_eids): New method. (fhandler_socket::dup): Duplicate sec_pipe if necessary. (fhandler_socket::listen): Only create sec_pipe if named pipes are available. Initialized sec_peer_pid to 0 as on Linux. (fhandler_socket::connect): Only run eid credential transaction if named pipes are available. Fake otherwise. Initialized sec_peer_pid to 0 as on Linux. (fhandler_socket::accept): Ditto. (fhandler_socket::close): Move closing sec_pipe handle from here... (fhandler_socket::~fhandler_socket): ... to here. * net.cc (socketpair): Set eid credentials by calling fhandler_socket::set_socketpair_eids() on both socket ends. * wincap.h (wincaps::has_named_pipes): New element. * wincap.cc: Implement above element throughout.
Corinna Vinschen
2005-02-28 13:11:50 +0000
882a0c8507remove unneeded blank line
Christopher Faylor
2005-02-28 01:55:45 +0000
9dc6005ae2* regtool.cc (opts): The argument to 'K' is not optional. (main): Revert previous change. Just let getopt deal with missing argument.
Christopher Faylor
2005-02-27 17:55:54 +0000
2391eea57e* regtool.cc (main): Avoid a SEGV when nothing follows -K.
Christopher Faylor
2005-02-27 06:10:58 +0000
d61925786a* sigproc.cc (_pinfo::set_ctty): Move function * pinfo.cc (_pinfo::set_ctty): to here. * fhandler_mem.cc (fhandler_dev_mem::fstat): Don't fill out structure if this is an on-disk device rather than an "auto" device. * fhandler_raw.cc (fhandler_dev_raw::fstat): Ditto. * path.cc (normalize_posix_path): Don't treat a standalone '//' as introducing a UNC path. (normalize_win32_path): Ditto.
Christopher Faylor
2005-02-27 04:30:08 +0000
78d9eaa5ea* kill (getsig): Avoid buffer overflow when generating a signal name. * strace.cc (handle_output_debug_string): Make error a little more specific.
Christopher Faylor
2005-02-27 03:03:19 +0000
1a9a235a5a* debug.cc (delete_handle): Report on handle value in debugging output. * pinfo.h (_pinfo::exists): Declare "new" function. (_pinfo::kill): Ditto. * fhandler_termios.cc (tty_min::kill_pgrp): Use _pinfo::exists rather than proc_exists. * pinfo.cc (pinfo::init): Ditto. Don't do a low_priority_sleep(0) when looping to find exec'ed procinfo. (pinfo::release): Be more careful about unmapping and closing. * signal.cc (_pinfo::kill): Rename from kill_worker. Accommodate entry into _pinfo class. (kill0): Use _pinfo::kill rather than kill_worker. (kill_pgrp): Ditto. Use _pinfo::exists rather than proc_exists. * sigproc.cc (_pinfo::exists): Rename from proc_exists. (pid_exists): Use _pinfo::exists rather than proc_exists. (remove_proc): Ditto. * sigproc.h (proc_exists): Delete declaration.
Christopher Faylor
2005-02-26 20:50:25 +0000
92a7e06eb82005-02-25 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston
2005-02-25 22:38:46 +0000
1139537a252005-02-25 Eric Blake <ebb9@byu.net>
Jeff Johnston
2005-02-25 22:31:21 +0000
6d11044c63* fhandler.h (class fhandler_base): Declare fixup_mmap_after_fork with additional flags parameter. Change offset parameter to _off64_t. (class fhandler_disk_file): Ditto. (class fhandler_dev_mem): Ditto. * fhandler_mem.cc (fhandler_dev_mem::fixup_mmap_after_fork): Accomodate new parameters. * mmap.cc: Include ntdll.h. (class mmap_record): Add flags member. (mmap_record::mmap_record): Add flags parameter. (mmap_record::get_flags): New method. (class map): Add next_anon_addr member to store next anonymous mapping address suggestion. (map::get_next_anon_addr): New method. (map::set_next_anon_addr): New method. (mmap64): Don't align offset and length to granularity in case of MAP_ANONYMOUS on NT. Check for already existing mapping only on 9x. Call mmap_record::mmap_record with additional flags argument. (fhandler_base::fixup_mmap_after_fork): Accomodate new parameters. (fhandler_disk_file::mmap): Use NtMapViewOfSection with AT_ROUND_TO_PAGE flag for anonymous mappings on NT. If addr is NULL, try to map adjacent to previous mapping. (fhandler_disk_file::fixup_mmap_after_fork): Add flags argument. Change offset parameter to _off64_t. Use NtMapViewOfSection to re-create anonymous mappings on NT. (fixup_mmaps_after_fork): Accomodate new parameters when calling fhandler's fixup_mmaps_after_fork function. * ntdll.h (AT_ROUND_TO_PAGE): New define.
Corinna Vinschen
2005-02-25 21:23:15 +0000
c68de3a262* mmap.cc (class mmap_record): Declare new map_pages method with address parameter. (mmap_record::map_pages): New method with address parameter. (mmap64): Evaluate access mode before checking if already existing mapping can be used. Only use existing mapping if requested access mode matches the one in the existing mapping. Add check for existing mapping for MAP_FIXED case.
Corinna Vinschen
2005-02-25 11:15:22 +0000
078f08b81a* include/wctype.h (wctrans) Remove _CRTIMP. (towctrans): Likewise. (wctype): Likewise,
Danny Smith
2005-02-25 08:15:46 +0000
b7c201d588* include/wctype.h: Add comment on wctrans, towctrans, wctype.
Danny Smith
2005-02-25 01:48:38 +0000
7e9439a0eb* mingwex/wctype.c: New file. * mingwex/wctrans.c: New file. * mingwex/Makefile.in (DISTFILES): Add wctype.c, wctrans.c. * mingwex/Makefile.in (Q8_OBJS): Add wctype.o, wctrans.o.
Danny Smith
2005-02-25 01:43:43 +0000
2598f908caAdd (int) cast.
Jeff Johnston
2005-02-24 19:02:35 +0000
f4fd7b4c722005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston
2005-02-24 18:50:06 +0000
f2f8a9a2292005-02-24 Ralf Corsepious <ralf.corsepius@rtems.org>
Jeff Johnston
2005-02-24 18:29:31 +0000
45df57e8d8Fix minor typo
Joshua Daniel Franklin
2005-02-24 06:14:44 +0000
f6dbe3872a*README: New file.
Joshua Daniel Franklin
2005-02-24 05:26:33 +0000
4c6344923e* cygpath.cc (usage): Clarify help output to indicate acceptance of multiple file names as arguments.
Joshua Daniel Franklin
2005-02-24 04:32:45 +0000
39fd43d7fa* libc/include/time.h (_timezone): Change to long also for Cygwin. (timezone): Drop cast from definition.
Corinna Vinschen
2005-02-23 22:20:55 +0000
d0578adf88* localtime.cc: Implement setting __tzrule's offset member using newlib's __gettzinfo () interface. (__tzrule): Remove. (timezone): Define as long according to POSIX.
Corinna Vinschen
2005-02-23 22:17:28 +0000
5e4c05da0b* libc/include/sys/unistd.h: Define fdatasync also for Cygwin.
Corinna Vinschen
2005-02-22 15:31:51 +0000
a62f6b806e* cygwin.din (fdatasync): Export. * fhandler.cc (fhandler_base::fsync): Return with EINVAL if no handle is available. * syscalls.cc (fdatasync): Create export alias to fsync. * include/cygwin/version.h: Bump API minor version.
Corinna Vinschen
2005-02-22 15:30:09 +0000
2f707783a2Allow darwin targeted ports to build tk, itcl and libgui.
Nick Clifton
2005-02-22 09:16:10 +0000
4e5a3fa5e2* fhandler.h (fhandler_base::fstat_helper): Declare with additional dwVolumeSerialNumber argument. Drop default values for last three arguments. * fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Pass dwVolumeSerialNumber from GetFileInformationByHandle to fstat_helper. (fhandler_base::fstat_by_name): Pass pc.volser () to fstat_helper. Accomodate dropping default values for last three arguments of fstat_helper. (fhandler_base::fstat_helper): Add dwVolumeSerialNumber argument. Use for st_dev member unless 0 in which case pc.volser () is used.
Corinna Vinschen
2005-02-20 16:14:53 +0000
4944ca2f09* autoload.cc (FindFirstVolumeA): Add. (FindNextVolumeA): Add. (FindVolumeClose): Add. (GetVolumePathNamesForVolumeNameA): Add. * fhandler.h (class fhandler_base): Declare new method fsync. * fhandler.cc (fhandler_base::fsync): New method. * syscalls.cc (fsync): Move functionality into fhandler method fsync. Just call this method from here. (sync_worker): New static function. (sync): Fill with life for NT systems. * wincap.h (wincaps::has_guid_volumes): New element. * wincap.cc: Implement above element throughout.
Corinna Vinschen
2005-02-20 13:28:23 +0000
2b09be25a3* fhandler.h (enum query_state): Add query_write_attributes state. (fhandler_base::status.query_open): Add a bit to make room for more states. (class fhandler_base): Declare new method utimes. (class fhandler_socket): Ditto. (class fhandler_disk_file): Ditto. (fhandler_disk_file::fhandler_disk_file): Add constructor with path_conv parameter. * fhandler.cc (fhandler_base::open): Add query_write_attributes handling. (fhandler_base::utimes): New method. * fhandler_disk_file.cc (fhandler_disk_file::link): Simplify. Open file with query_write_attributes instead of query_write_control. (fhandler_disk_file::utimes): New method. (fhandler_disk_file::fhandler_disk_file): Add constructor with path_conv parameter setting pc member immediately. * fhandler_socket.cc (fhandler_socket::fchmod): Use new fhandler_disk_file constructor. (fhandler_socket::fchown): Ditto. (fhandler_socket::facl): Ditto. (fhandler_socket::link): Ditto. (fhandler_socket::utimes): New method. * times.cc: Include dtable.h. (timeval_to_filetime): Make non-static. (utimes): Move functionality into fhandler method utimes. Just call this method from here. * winsup.h: Simplify declarations of time helper functions. (timeval_to_filetime): Add extern declaration.
Corinna Vinschen
2005-02-20 11:44:32 +0000
731028b326copyright
Christopher Faylor
2005-02-20 04:25:33 +0000
0d75ce965c* fhandler.h (class fhandler_base): Declare new method link. (class fhandler_socket): Ditto. (class fhandler_disk_file): Ditto. * fhandler.cc (fhandler_base::open): Add FILE_WRITE_ATTRIBUTES to query_write_control access flags. (fhandler_base::link): New method. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Don't try to open with O_WRONLY since query_write_control includes FILE_WRITE_ATTRIBUTES. (fhandler_disk_file::fchown): Ditto. (fhandler_disk_file::facl): Ditto. (fhandler_disk_file::link): New method. Touch st_ctime on successful link. * fhandler_socket.cc (fhandler_socket::link): New method. * syscalls.cc (link): Move functionality into fhandler method link. Just call this method from here.
Corinna Vinschen
2005-02-19 21:53:36 +0000
c2d0b9d89a* fhandler.h (class fhandler_socket): Declare new methods fchown, fchmod and facl. * fhandler_socket.cc (fhandler_socket::fstat): Handle AF_LOCAL sockets. (fhandler_socket::fchmod): New method. (fhandler_socket::fchown): New method. (fhandler_socket::facl): New method.
Corinna Vinschen
2005-02-19 20:03:18 +0000
2d7606a594* localtime.cc: Temporary implementation of setting __tzrule's offset member to be used by strftime. (__tzrule): New global variable. (tzparse): Set __tzrule's offset member appropriately.
Corinna Vinschen
2005-02-19 19:58:38 +0000
2cd6f872f3* path.cc (path_conv::check): Set fs flag when a unix-domain socket is detected.
Christopher Faylor
2005-02-17 17:21:11 +0000
3419b5bc2b* fhandler_disk_file.cc (fhandler_disk_file::fstat): Set st_ctime if has_changed flag is set. (fhandler_disk_file::touch_ctime): Reset has_changed flag on success.
Corinna Vinschen
2005-02-17 12:41:49 +0000
b066a19513* times.cc (utimes): Open files with FILE_WRITE_ATTRIBUTES first, if that fails, try opeing with GENERIC_WRITE. Fix comments.
Corinna Vinschen
2005-02-17 12:08:16 +0000
f1d439fc642005-02-16 Eric Blake <ebb9@byu.net>
Jeff Johnston
2005-02-16 21:15:37 +0000
031619634c* path.h (path_conv::issocket): Return true if device == FH_UNIX rather than expecting path_conv to set a flag.
Christopher Faylor
2005-02-16 00:24:38 +0000
90d5a18f39bfd/: 2005-02-15 Nigel Stephens <nigel@mips.com> Maciej W. Rozycki <macro@mips.com>
Maciej W. Rozycki
2005-02-15 19:57:53 +0000
dc1d3ff6a0merge from gcc
DJ Delorie
2005-02-14 12:10:25 +0000
264f41f081white space
Christopher Faylor
2005-02-13 18:17:29 +0000
ba8c69552ffix typo
Christopher Faylor
2005-02-11 22:26:20 +0000
6ed61878bc* mips.h (R_MIPS_max): Use FAKE_RELOC to define.
Maciej W. Rozycki
2005-02-11 20:29:29 +0000
8be730bbb1* fhandler.cc (fhandler_base::raw_write): Mark as changed on successful write. * fhandler.h (fhandler_base::status_flags): Add 'has_changed' flag. * fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call fhandler_disk_file's own open and close instead of open_fs and close_fs. Mark as changed on success. (fhandler_disk_file::fchown): Ditto. (fhandler_disk_file::facl): Ditto. (fhandler_disk_file::ftruncate): Ditto. (fhandler_base::open_fs): Mark as changed when O_TRUNC flag on existing file is set. (fhandler_disk_file::close): Set st_ctime if has_changed flag is set.
Corinna Vinschen
2005-02-11 15:37:26 +0000
cc9440b6f4* cygthread.cc (cygthread::release): Reset ev here if it exists. (cygthread::terminate_thread): Eliminat racy code which reset ev and thread_sync. Remove a few nonsensical inuse checks. Exit at the bottom. (cygthread::detach): Rewrite to again try to ensure that we don't say we're signalled when we are not signalled. * fhandler.cc (fhandler_base::raw_read): Revert to signalling read success quickly. * pipe.cc (fhandler_pipe::close): Use base method to close handle. * sigproc.h (WAIT_SIG_PRIORITY): Just trundle along at normal priority to allow the pipe thread to do its thing if possible. * pinfo.h (pinfo::zap_cwd): Declare new function. (pinfo::zap_cwd): Move 'cd out of the way code' here. (pinfo::exit): Use it here. * spawn.cc (spawn_guts): And here.
Christopher Faylor
2005-02-11 15:24:15 +0000
199bf79367* times.cc (utimes): Open files with GENERIC_WRITE on file systems not supporting ACLs.
Corinna Vinschen
2005-02-11 14:27:36 +0000
3d11bd3e07* include/tchar.h (_tstat64, _tstati64): Add Unicode/ANSI mappings.
Danny Smith
2005-02-11 07:23:44 +0000
ecb313ccee* include/assert.h; Remove header guard. undef assert macro. (_assert): Use __MINGW_ATTRIB_NORETURN define.
Danny Smith
2005-02-11 07:17:00 +0000
e2a12d9f7dAdd Changelog entry from last commit.
Danny Smith
2005-02-11 07:15:00 +0000
ba16f5aa832005-02-11 Gregory W. Chicares <chicares at cox dot net> Danny Smith <dannysmith@users at sourceforge dot net>
Danny Smith
2005-02-11 04:15:17 +0000
ccf32128b3add missing ChangeLog entry
Christopher Faylor
2005-02-10 18:12:56 +0000
b51b23bf82gas/testsuite/ 2005-02-09 Jan Beulich <jbeulich@novell.com>
Jan Beulich
2005-02-09 08:05:43 +0000
39e20d72042005-02-08 Andrew Cagney <cagney@gnu.org>
Andrew Cagney
2005-02-08 22:37:35 +0000
b6bddccad6* times.cc (timeval_to_filetime): Define first parameter const. (utimes): Define second parameter to const according to SUSv3. (utime): Ditto. * include/sys/utime.h (utime) : Change declaration accordingly.
Corinna Vinschen
2005-02-08 20:59:41 +0000
18d3a03bd4* libc/include/pwd.h (struct passwd): Change pw_uid and pw_gid members to uid_t and gid_t according to SUSv3. * libc/include/sys/time.h (utimes): Change second parameter to const according to SUSv3.
Corinna Vinschen
2005-02-08 20:55:18 +0000
1d7dd82d692005-02-08 Antony King <antony.king@st.com>
Jeff Johnston
2005-02-08 19:38:47 +0000
01d9b1612c* cygthread.cc (cygthread::detach): Just test thread handle after signal arrived, don't wait infinitely for it.
Corinna Vinschen
2005-02-08 16:56:02 +0000
f1256beb92* pipe.cc (fhandler_pipe::read): Remove hold over from old read_state implementation.
Christopher Faylor
2005-02-08 16:19:58 +0000