summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * security.cc (cygwin_logon_user): Run LogonUser in the primaryCorinna Vinschen2005-06-082-6/+20
| | | | process token context. Fix potential handle leak.
* * pinfo.cc (pinfo::init): Define sa_buf as PSECURITY_ATTRIBUTES andCorinna Vinschen2005-06-0710-23/+57
| | | | | | | | | | | | | | | | | | | | | | | | allocate dynamically. (pinfo::set_acl): Replace sa_buf by dynamically allocated acl_buf. * sec_acl.cc (setacl): Allocate acl dynamically. * sec_helper.cc (sec_acl): Add test for alignment of acl when DEBUGGING is defined. (__sec_user): Same for sa_buf. * security.cc (verify_token): Define sd_buf as PSECURITY_DESCRIPTOR and allocate dynamically. (alloc_sd): Allocate acl dynamically. security.h (sec_user_nih): Change first parameter to SECURITY_ATTRIBUTES *. (sec_user): Ditto. * sigproc.cc (wait_sig): Define sa_buf as PSECURITY_ATTRIBUTES and allocate dynamically. * syscalls.cc (seteuid32): Define dacl_buf as PACL and allocate dynamically. * uinfo.cc (cygheap_user::init): Define sa_buf as PSECURITY_ATTRIBUTES and allocate dynamically. * winbase.h (ilockincr): Mark first argument of inline assembly as earlyclobber. (ilockdecr): Ditto.
* * cygthread.cc (cygthread::detach): Make error message a little more detailed.Christopher Faylor2005-06-077-9/+33
| | | | | | | | | * fhandler.cc (fhandler_base::raw_read): Ditto for debug message. * dcrt0.cc (do_exit): Add some more synchronization tests. * fhandler_fifo.cc (fhandler_fifo::dup): Don't duplicate a nonexistent handle. Use derived return value rather than always retuning 0. * fhandler_netdrive.cc (fhandler_netdrive::exists): Wnet -> WNet. * winsup.h (exit_states): Add a couple of new exit states.
* * cygload/cygload.exp: .cpp -> .cc.Christopher Faylor2005-06-062-1/+5
|
* * Makefile.in: Test cygload.Christopher Faylor2005-06-067-1/+882
| | | | | | | | | * cygload: New directory. * cygload/README: New file. * cygload/Makefile: Ditto. * cygload/cygload.h: Ditto. * cygload/cygload.cc: Ditto. * cygload/cygload.exp: Ditto.
* reformat ChangeLog entry slightly.Christopher Faylor2005-06-061-2/+2
|
* * path.cc (symlink_info::check): If GetFileAttributes returnsCorinna Vinschen2005-06-062-2/+16
| | | | with ERROR_SHARING_VIOLATION, the file exists.
* * uname.cc (uname): Change "amd64" to "x86_64" as on Linux.Corinna Vinschen2005-06-062-1/+5
|
* * uname.cc (uname): Add missing break.Corinna Vinschen2005-06-062-0/+5
|
* * include/_mingw.h (__MINGW_ATTRIBUTE_NONNULL): Fix typoDanny Smith2005-06-062-3/+8
| | | | in GNUC version guard.
* * Makefile.in: Build sync.o with -fomit-frame-pointer and -O3.Christopher Faylor2005-06-052-0/+5
|
* * sync.cc (muto::acquire): Remove unneeded brackets and fix whitespace.Christopher Faylor2005-06-052-10/+12
|
* * malloc.cc: Update to Doug Lea's malloc v2.8.0.Christopher Faylor2005-06-052-4416/+3787
|
* Slight rearragementJoshua Daniel Franklin2005-06-052-24/+26
|
* * how-programming.texinfo: Add "How do I load cygwin1.dll dynamically from aChristopher Faylor2005-06-042-0/+21
| | | | Visual Studio or MinGW application?"
* * dcrt0.cc (cygwin_dll_init): Now initializes main_environ and cygtls. CommentChristopher Faylor2005-06-044-3/+95
| | | | | to explain the caveats of this method. * how-cygtls-works.txt: New file.
* * dlfcn.cc (get_full_path_of_dll): Use a relative path when converting so thatChristopher Faylor2005-06-031-0/+7
| | | | | the standard Windows rules for finding a library will be used if no path is given. Stop explicitly searching /usr/bin since that is now in effect.
* Revert 2005-05-30 close_all_files changes.Christopher Faylor2005-06-029-10/+18
| | | | | * spawn.cc (spawn_guts): When execing, close all files after the child has synced with us.
* * fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that disk openChristopher Faylor2005-06-022-1/+6
| | | | is called in case we're passed in a non-existent device.
* * include/machine/stdlib.h: New file.Christopher Faylor2005-06-012-0/+26
|
* * thread.h (List_remove): Revert most of 2005-05-30 change.Christopher Faylor2005-06-012-3/+5
|
* * cygwin.sc: Don't output .reloc or .rsrc sections. Clean up stuff aroundChristopher Faylor2005-06-012-4/+12
| | | | | .cygheap and use a workaround to get things working with newer (broken?) binutils.
* * cygheap.cc (cygheap_end): Remove bogus section attribute.Christopher Faylor2005-06-013-3/+7
| | | | * cygwin.sc: Make __cygheap_mid absolute. Remove unused _cygheap_foo.
* * child_info.h (child_info::cygheap_h): Delete.Christopher Faylor2005-06-0114-280/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (child_info::dwProcessId): New field. * cygheap.cc (init_cheap): Delete. (dup_now): Ditto. (cygheap_setup_for_child): Ditto. (cygheap_setup_for_child_cleanup): Ditto. (cygheap_fixup_in_child): Simplify. Use new "child_copy" function to copy heap from parent. (_csbrk): Don't attempt allocation if within cygheap section. Fix so that more than one allocation will succeed. (cygheap_init): Reset possibly-nonzero region to zero. * cygheap.h (cygheap_setup_for_child): Delete declaration. (cygheap_setup_for_child_cleanup): Ditto. (cygheap_start): Define as an array. * cygwin.sc: Modernize. Remove unneeded sections. Define cygheap here. * dcrt0.cc (do_exit): Reflect argument change to close_all_files. * dtable.cc (dtable::vfork_parent_restore): Ditto. * dtable.h: Ditto. * fhandler.h: Ditto. * fork.cc (fork_copy): Call ReadProcessMemory if there is no thread (indicating that we're execing). (fork_child): Don't mess with hParent. (fork_parent): Remove hParent stuff. It happens earlier now. Remove call to cygheap_setup_for_child* stuff. (fork): Put child_info_stuff in grouped structure. Issue error if parent handle is not set. (child_copy): New function. * sigproc.cc (child_info::child_info): Put cygheap settings here. Set parent handle. (child_info::~child_info): Close parent handle if it exists. * spawn.cc (spawn_guts): Reorganize so that ciresrv is allocated at only the last minute so that cygheap changes are reflected. Delete cygheap_setup* calls. * syscalls.cc (close_all_files): Add an argument to flag when the fd entry should be released. * winsup.h (close_all_files): Add an argument to close_all_files declaration. Declare child_copy.
* * thread.h (List_remove): Make node parameter const. Use simple comparison andChristopher Faylor2005-05-302-2/+10
| | | | | assignment rather than InterlockedCompareExchangePointer since access is already synchronized.
* * dlfcn.cc (set_dl_error): Use UNIX error rather than Windows error.Christopher Faylor2005-05-302-1/+5
|
* * cygcheck.cc (dump_sysinfo): Recognize XP Media Center and Tablet PCCorinna Vinschen2005-05-302-17/+31
| | | | | Editions. Change .NET to 2003 throughout. Recognize 2003 Web Server and Datacenter Server. Report when running in terminal server session.
* * cygmagic: Remove debugging cruft missed on 2005-05-21.Christopher Faylor2005-05-302-1/+5
|
* * path.cc (path_conv::check): Move component to function scope. SetCorinna Vinschen2005-05-292-4/+24
| | | | | PATH_RO only on *real* FH_NETDRIVEs or on non-FH_NETDRIVE virtual paths. Allow non-retrievable shares to be handled as files.
* * include/limits.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Always define.Corinna Vinschen2005-05-292-2/+4
|
* * thread.h (pthread_key::set): Inline.Christopher Faylor2005-05-293-20/+10
| | | | | | (pthread_key::get): Ditto. * thread.cc (pthread::set): Delete. (pthread::get): Ditto.
* * cygwin.din: Remove signal front end from pthread_[gs]etspecific.Christopher Faylor2005-05-292-2/+6
|
* * fhandler_tty.cc (fhandler_tty_slave:tcflush): Use signed comparison.Christopher Faylor2005-05-292-1/+5
|
* * times.cc (time_ms::usecs): Coerce comparison to signed or whole test is aChristopher Faylor2005-05-282-1/+6
| | | | no-op.
* * how-using.texinfo : Update the mkdir -p sectionJoshua Daniel Franklin2005-05-282-13/+9
|
* white spaceChristopher Faylor2005-05-271-1/+1
|
* * cygheap.h: Reference _cygheap_start via .cygheap section.Christopher Faylor2005-05-273-3/+13
| | | | | * environ.cc: Fix force_into_environment typo throughout. (spenvs): Export CYGWIN_DEBUG if DEBUGGING.
* * cygcheck.cc (load_cygwin): Make half-hearted attempt to work with older DLLs.Christopher Faylor2005-05-273-34/+39
| | | | * strace.cc (load_cygwin): Ditto.
* * include/cygwin/version.h: Bump DLL minor number to 18.Christopher Faylor2005-05-262-1/+5
|
* * ChangeLog: Remove accidentally checked in entry.Corinna Vinschen2005-05-251-17/+0
|
* * fhandler.h (fhandler_base::mkdir): New virtual method.Christopher Faylor2005-05-256-98/+161
| | | | | | | | | | | | | | (fhandler_base::rmdir): Ditto. (fhandler_disk_file:mkdir): New method. (fhandler_disk_file:rmdir): Ditto. * dir.cc (mkdir): Implement with fhandlers. (rmdir): Ditto. * fhandler.cc (fhandler_base::mkdir): New virtual method. (fhandler_base::rmdir): Ditto. (fhandler_disk_file::mkdir): New method. (fhandler_disk_file::rmdir): Ditto. fhandler_random.cc: white space.
* * include/cygwin/version.h: Bump API minor number to 129.Christopher Faylor2005-05-252-1/+6
|
* Add top commentChristopher Faylor2005-05-251-0/+6
|
* * cygwin.din: Export mkdtemp.Christopher Faylor2005-05-254-2/+190
| | | | | * mktemp.cc: New file. * Makefile.in (DLL_OFILES): Add mktemp.o
* * include/stdint.h (INTMAX_C, UINTMAX_C): Fix definition.Corinna Vinschen2005-05-232-2/+23
|
* * cygcheck.cc (dump_sysinfo_services): Add new function that usesCorinna Vinschen2005-05-232-1/+101
| | | | | | new cygrunsrv options to dump service info. (dump_sysinfo): Call dump_sysinfo_services if running under NT. Change 'Cygnus' to 'Cygwin' in output.
* * spawn.cc (find_exec): Accept a PATH-like string in place of an environmentChristopher Faylor2005-05-226-8/+38
| | | | | | | | | | variable. * dlfcn.cc (get_full_path_of_dll): Search /usr/bin (for windows compatibility) and /usr/lib (for UNIX compatibility) when looking for shared libraries. * environ.cc (conv_envvars): Put back LD_LIBRARY_PATH since it is used by get_full_path_of_dll(). * errno.cc (errmap): Map MOD_NOT_FOUND to ENOENT. * cygmagic: Remove debugging cruft.
* * cygcheck.cc (load_cygwin): Remove debugging statement.Christopher Faylor2005-05-202-1/+4
|
* * cygcheck.cc (dump_sysinfo): Don't attempt to use path if it is not set.Christopher Faylor2005-05-202-20/+34
| | | | | (nuke): Fix off by one error in allocation of environment variable. (load_cygwin): Always set PATH even if cygwin environment is empty.
* * crt1.c (_gnu_exception_handler): Handle illegal instructionDanny Smith2005-05-192-0/+24
| | | | OS exception as a signal if user has defined a SIGILL handler.