summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* Tue 24 Jul 2001 02:28:00 PM Trevor Forbes <t4bs@hotmail.com>Robert Collins2001-07-252-1/+7
| | | | | | * thread.cc (verifyable_object_isvalid): Don't validate PTHREAD_MUTEX_INITIALIZER pointer as it will cause an exception in IsBadWritePtr() when running GDB.
* * localtime.c: Changed whole file to become C++ clean. Rename toCorinna Vinschen2001-07-252-140/+62
| | | | | localtime.cc. * localtime.cc (tzload): Preserve errno.
* * cygheap.cc (cygheap_fixup_in_child): Attempt Win95 workaround.Christopher Faylor2001-07-216-7/+25
| | | | | | | | * dtable.cc (dtable::dup_worker): Add debugging output. (dtable::vfork_child_dup): Correctly set close_on_exec. * fhandler.cc (fhandler_base::fork_fixup): Don't mess with handle if there is no need to get it from the parent. * fhandler_tty.cc (fhandler_tty_common::close): Add debugging output.
* * dir.cc (readdir): Protect FindNextFileA against INVALID_HANDLE_VALUE.Corinna Vinschen2001-07-202-0/+8
|
* fix typo.Christopher Faylor2001-07-191-1/+1
|
* * cygheap.cc (_cmalloc): Use correct constants for size calculation.Christopher Faylor2001-07-185-7/+17
| | | | | | | * dcrt0.cc (dll_crt0_1): Move uid initialization earlier. * fork.cc (fork_parent): Move cygheap_setup_in_child to just prior to CreateProcess so that all contents of cygheap are copied. * spawn.cc (spawn_guts): Ditto.
* * security.cc (get_user_groups): Call Net function with NULL serverCorinna Vinschen2001-07-182-17/+47
| | | | | | | name under specific error conditions. (is_group_member): Ditto. (get_user_local_groups): Ditto. (get_user_primary_group): Ditto.
* * syscalls.cc (_unlink): Explicitely check for non-existant file.Corinna Vinschen2001-07-182-2/+13
|
* * delqueue.h: Remove obsolete file.Corinna Vinschen2001-07-172-30/+4
|
* * child_info.h: Bump magic number.Christopher Faylor2001-07-179-132/+180
| | | | | | | | | | | | | | | | (class child_info): Add an element. * cygheap.cc (init_cheap): Allocate cygwin heap in shared memory area. (cygheap_fixup_in_child): Map cygwin heap, passed from parent via shared memory into correct address. (cygheap_setup_for_child): New function. * cygheap.h: Declare new functions. * dcrt0.cc (dll_crt0_1): Accomodate new cygheap_fixup_in_child arguments. Avoid protecting subproc_ready unless it is spawn/nowait. * fork.cc (fork_parent): Use new cygheap_setup_for_child function to setup cygwin heap info. Close passed cygheap shared memory handle. * spawn.cc (spawn_guts): Ditto. Also, reorganize to avoid synchronization between parent and child in non-P_OVERLAY case. * sigproc.cc (wait_sig): Only signal subproc_ready when execing.
* * grp.cc: Add missing Copyright date 2001.Corinna Vinschen2001-07-162-1/+5
|
* Change well_known_admin_sid to well_known_admins_sid throughout.Corinna Vinschen2001-07-157-35/+73
| | | | | | | | | | | | | * sec_acl.cc (setacl): Never set DELETE permission. Set FILE_DELETE_CHILD only on readable and executable directories. * sec_helper.cc: Add constructor for `well_known_null_sid'. * security.cc (get_nt_attribute): Set S_ISVTX for directories if FILE_WRITE_DATA and FILE_EXECUTE but not FILE_DELETE_CHILD is set. Add evaluation of S_ISVTX, S_ISGID and S_ISUID from NULL ACE. (alloc_sd): Never set DELETE permission. Set FILE_DELETE_CHILD only on readable and executable directories. Add creation of NULL ACE for S_ISVTX, S_ISGID and S_ISUID permissions. * security.h: Add extern declaration for `well_known_null_sid'.
* * regtool.cc (find_key): Handle keys with only one subkey.Corinna Vinschen2001-07-152-4/+12
|
* * syscalls.cc (stat_worker): Simplify previous change.Christopher Faylor2001-07-142-6/+7
|
* * syscalls.cc (_unlink): Correct (?) logic which determines when to report anChristopher Faylor2001-07-132-16/+26
| | | | | access violation and when to queue file for eventual deletion. (stat_worker): Check for invalid buf argument.
* * mmap.cc (fhandler_disk_file::mmap): Try to open file mappingsCorinna Vinschen2001-07-102-7/+33
| | | | | by a unified name when running under 9x/ME. If that failes, create the file mapping using the unified name.
* * uinfo.cc (internal_getlogin): Add pointer check.Corinna Vinschen2001-07-092-3/+11
|
* * security.cc (alloc_sd): Don't set inheritance attribute forCorinna Vinschen2001-07-092-0/+21
| | | | permissions given to directories.
* WinME also affected by missing pipe keyDavid Starks-Browning2001-07-061-1/+1
|
* New entry "Why doesn't Cygwin tcl/tk understand Cygwin paths?"David Starks-Browning2001-07-061-0/+9
|
* New entry: "Why don't international (8-bit) characters work?"David Starks-Browning2001-07-061-0/+14
|
* New "Known Problems" entry: Pipe key doesn't work on non-US kbds on Win9x.David Starks-Browning2001-07-061-2/+9
| | | | Some cosmetic changes.
* better instructions for installing cygwin snapshotsDavid Starks-Browning2001-07-051-1/+1
|
* New entry "Where is the su command?"David Starks-Browning2001-07-051-0/+10
|
* "How do I rebuild the tools on my NT box?": texi2html now provided.David Starks-Browning2001-07-041-10/+3
|
* "Why the weird directory structure?": new mount output format.David Starks-Browning2001-07-041-5/+7
| | | | "Why can't I run bash as a shell under NT Emacs?": new title.
* Update "Can I use setup to install snapshots?" (now 'no') with new instructions.David Starks-Browning2001-07-041-14/+25
|
* Add caveat that contents list is always out of date.David Starks-Browning2001-07-041-30/+2
| | | | Remove entry "Setup screwed up my mounts!"
* just a bit more...David Starks-Browning2001-07-041-0/+2
|
* Add more to entry "How do I print under Cygwin"?David Starks-Browning2001-07-041-3/+24
|
* Add apropos and /usr/sbin/makewhatis to "Why doesn't man work?" entry.David Starks-Browning2001-07-041-3/+12
|
* * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Return 0 for success.Christopher Faylor2001-06-292-6/+10
|
* * regtool.cc (find_key): Revert previous change.Christopher Faylor2001-06-282-7/+8
|
* Change check_null_empty_path* to check_null_empty_str* throughout.Christopher Faylor2001-06-2810-54/+88
| | | | | | | | | | | | | | | * path.cc (path_conv::check): Add signal protection here since retrieving info about remote shares can take some time. * path.h (check_null_empty_str_errno): Convert to a function prototype. * path.cc (check_null_empty_str): Move to miscfuncs.cc. * miscfuncs.cc (check_null_empty_str_errno): New function. (__check_null_invalid_struct): Ditto. (__check_null_invalid_struct_errno): Ditto. (check_null_empty_str): Change from VirtualQuery to IsBadWritePtr. * thread.cc (check_valid_pointer): Ditto. * resource.cc (getrlimit): Use check_null_invalid_struct macro for checking validity of pointer. (setrlimit): Ditto.
* * regtool.cc (find_key): Allow '/' as a synonym for '\\'.Christopher Faylor2001-06-272-3/+10
|
* * fhandler.cc (fhandler_disk_file::fstat): Don't rely on exactly 3 charactersChristopher Faylor2001-06-264-5/+28
| | | | | | | | | being read for executable test since we could be checking for less than that. * syscalls.cc (stat_worker): Try opening the file the "correct" way first so that #! processing can potentially happen. If that fails, then use "query open" method. * spawn.cc (spawn_guts): Delay processing of signal until after we've notified parent about reparenting.
* Remove trailing tabs.Christopher Faylor2001-06-262-2/+2
|
* * mmap.cc: Clean up *ResourceLock calls throughout.Christopher Faylor2001-06-2615-460/+484
| | | | | | | * thread.cc (pthread_cond::TimedWait): Check for WAIT_TIMEOUT as well as WAIT_ABANDONED. (__pthread_cond_timedwait): Calculate a relative wait from the abstime parameter.
* forced commitChristopher Faylor2001-06-241-0/+3
|
* Fix typoChristopher Faylor2001-06-241-1/+1
|
* * exceptions.cc (interrupt_setup): Move actions from setup_handler to here.Christopher Faylor2001-06-246-75/+84
| | | | | | | | | (setup_handler): Move actions after a successful interrupt to interrupt_setup. * fork.cc (vfork): Augment debugging output. * sigproc.cc (proc_subproc): Ditto. * spawn.cc (spawn_guts): Ditto. Correctly fill out progname when spawn NO_WAIT. Call signal handler when a signal arrives. * sigproc.h: Declare a function.
* * fhandler.h class fhandler_socket): Declare new methodCorinna Vinschen2001-06-223-0/+17
| | | | | | `set_close_on_exec'. * fhandler_socket.cc (fhandler_socket::set_close_on_exec): New method.
* * fhandler_tape.cc (fhandler_dev_tape::tape_erase): Set sizeCorinna Vinschen2001-06-222-1/+6
| | | | parameter to value expected by GetTapeParameters().
* * fhandler_console.cc (fhandler_console::read): Detect AltGr moreCorinna Vinschen2001-06-222-2/+25
| | | | robustly on WinNT.
* 2001-06-22 Robert Collins rbtcollins@hotmail.comRobert Collins2001-06-212-2/+8
| | | | | | * thread.cc (__pthread_cond_timedwait): Lock the waiting mutex before the condition protect mutex to avoid deadlocking. (Found by Greg Smith). (__pthread_cond_wait): Ditto.
* * fhandler.cc (fhandler_base::open): Work around windows bug whenEgor Duda2001-06-202-0/+17
| | | | | CreateFile() with dwDesiredAccess == 0 called on remote share returns valid handle even if file doesn't exist.
* * fhandler_socket.cc (fhandler_socket::signal_secret_event): NewEgor Duda2001-06-204-15/+44
| | | | | | | | | | | function. * fhandler.h: Declare it. * fhandler_socket.cc (fhandler_socket::create_secret_event): Don't signal secret event immediately. (fhandler_socket::check_peer_secret_event): Do it after peer event was opened. * net.cc (cygwin_connect): Or if socket is non-blocking. (cygwin_accept): Ditto.
* * lib/kernel32.def: Add LanguageGroup and UILanguage symbols.Earnie Boyd2001-06-192-0/+13
| | | | Thanks to Kevin Chase <kevincha99@hotmail.com>.
* * fhandler_tty.cc (fhandler_tty_slave::init): Revert 2001-06-16 change.Christopher Faylor2001-06-184-64/+99
| | | | | | | | | * fork.cc (fork_copy): Print more debugging info. (fork_parent): Change order of arguments to accomdate buggy gcc. (fork): Ditto. * syscalls.cc (_unlink): Reorganize to try harder to delete file with DeleteFile and to recover more gracefully if FILE_FLAG_DELETE_ON_CLOSE doesn't work properly.
* Remove blank line.Christopher Faylor2001-06-181-1/+0
|