summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
* * cygwin.din: Declare strtok_r for the import lib. Already in the DLL.Corinna Vinschen2000-12-072-1/+7
|
* * winsup/cygwin/include/sys/uio.h: readv: Correct prototypeCorinna Vinschen2000-12-062-2/+7
| | | | writev: ditto.
* * include/sys/uio.h: Include <sys/cdefs.h>. Use __BEGIN_DECL andCorinna Vinschen2000-12-052-7/+15
| | | | | __END_DECL. Add declarations for `readv' and `writev'.
* * Makefile.in: Change `-nostartfiles' to `-nostdlib' to avoidCorinna Vinschen2000-12-042-2/+8
| | | | | automatic linking with default libraries when linking new-cygwin1.dll. Link with libgcc.a and libstdc++.a explicitly.
* * path.cc (normalize_win32_path): Handle UNC paths better.Christopher Faylor2000-12-032-3/+16
| | | | (slash_unc_prefix_p): Allow backslash UNC paths.
* * Makefile.in: Remove some extra cruft.Christopher Faylor2000-12-032-5/+6
|
* * Makefile.in: Use CXX to build the DLL.Christopher Faylor2000-12-035-61/+183
| | | | | | | | * configure.in: Find correct c++ compiler. * configure: Regenerate. * path.cc (normalize_posix_path): Put correct drive at beginning of \foo style paths. (chdir): Don't send non-posix path to cygcwd.set.
* * net.cc (get_inet_addr ): Close AF_UNIX socket file after reading.Corinna Vinschen2000-12-022-14/+22
|
* * cygheap.cc (chgheap_root::operator =): Check root dir properly.Corinna Vinschen2000-11-292-1/+5
|
* * net.cc (cygwin_inet_aton): Return nonzero if the addressCorinna Vinschen2000-11-292-2/+7
| | | | is valid, zero if not according to Linux man page.
* * mmap.cc (munmap): Check that mmap and munmap length match.Christopher Faylor2000-11-282-3/+6
|
* * fhandler.cc (fhandler_disk_file::open): Check for buggy CreateFileCorinna Vinschen2000-11-284-3/+37
| | | | | | | | | condition. * path.cc (path_conv::check): Get file system type in call to GetVolumeInformation to check for file systems with buggy CreateFile. * path.h (enum path_types): Add PATH_HASBUGGYOPEN. (class path_conv): Add methods `has_buggy_open' and `set_has_buggy_open'.
* * fhandler.cc (is_at_eof): New function.Christopher Faylor2000-11-262-0/+30
| | | | | | (fhandler_base::raw_read): Detect special case where last error == ERROR_NOACCESS but the file is at EOF. Most UNIXes do not consider this to be an error.
* * include/cygwin/version.h: Bump DLL minor version number to 7.Christopher Faylor2000-11-262-1/+5
|
* * include/cygwin/version.h: Bump minor API version due to addingCorinna Vinschen2000-11-252-1/+7
| | | | inet_aton.
* * net.cc (cygwin_inet_aton): New function.Corinna Vinschen2000-11-253-2/+22
| | | | * cygwin.din: Export cygwin_inet_aton as inet_aton.
* * path.cc (mount_info::read_cygdrive_info_from_registry): Read system cygdriveChristopher Faylor2000-11-242-14/+20
| | | | | prefix with KEY_READ. (mount_info::get_cygdrive_info): Ditto.
* * Makefile.in: new-temp.a -> new-templib.aChristopher Faylor2000-11-222-1/+5
|
* * spawn.cc (spawn_guts): Quoting was still wrong. Keep trying to fix it.Christopher Faylor2000-11-202-6/+25
|
* * spawn.cc (spawn_guts): YA tweak for dealing with arcane rules of quoting inChristopher Faylor2000-11-204-9/+22
| | | | | | "normal" Microsoft programs. * child_info.h: Bump fork magic number. * include/sys/mount.h: Add an entry for mixed mode.
* *** empty log message ***Christopher Faylor2000-11-191-1/+3
|
* * path.cc (normalize_posix_path): Special care for root directoryCorinna Vinschen2000-11-172-1/+10
| | | | in case of files beginning with a dot.
* * syslog.cc (syslog): Add users SID to NT syslog entry.Corinna Vinschen2000-11-172-1/+6
|
* Fix typo.Christopher Faylor2000-11-171-1/+1
|
* * fhandler_console.cc: New member variable `dwBufferSize' for `info'.Christopher Faylor2000-11-172-2/+11
| | | | | | (fillin_info): Set `dwBufferSize' to the size of the console buffer. (clear_screen): Use width of console buffer to calculate how many spaces to clear.
* * Makefile.in: Make import library creation 'make -j2' friendly.Christopher Faylor2000-11-162-7/+13
|
* * uinfo.cc (uinfo_init): Call `cygwin_set_impersonation_token' toCorinna Vinschen2000-11-162-1/+7
| | | | reset `cygheap->user.token' to INVALID_HANDLE_VALUE.
* Update ChangeLog.Christopher Faylor2000-11-162-6/+3
|
* * sigproc.cc (wait_sig): Remove unneeded for loop iteration.Christopher Faylor2000-11-165-35/+35
| | | | | | | | | | | * exceptions.cc (interrupt_setup): Don't set signal mask here or races occur with main thread. Set it in sigdelayed instead. (sigreturn): Reflect change in stack order of ebp and flags. (sigdelayed): Set stack frame correctly. Call set_process_mask here with flags for last trapped signal. (signal_dispatch): Add newmask. * sigproc.cc (wait_sig): Eliminate ill-considered attempt to halt looping signal processors.
* * uinfo.cc (internal_getlogin): Change parameter list to reflectCorinna Vinschen2000-11-153-11/+18
| | | | | | that `token' is member of cygheap_user now. (uinfo_init): Use modified internal_getlogin. * syscalls.cc (seteuid): Ditto.
* * cygheap.h: Move `token' and `impersonated' from class _pinfoCorinna Vinschen2000-11-159-41/+55
| | | | | | | | | | | | | to class cygheap_user. * pinfo.h: Ditto. * fork.cc (fork_child): Change usage of `token' and `impersonated' accordingly. (fork_parent): Ditto. * security.cc (cygwin_set_impersonation_token): Ditto. * sigproc.cc (proc_subproc): Ditto. * spawn.cc (spawn_guts): Ditto. * syscalls.cc (seteuid): Ditto. * uinfo.cc (uinfo_init): Ditto.
* * spawn.cc (spawn_guts): Revert patch to ignore chroot settingsCorinna Vinschen2000-11-152-6/+6
| | | | on creating native Win32 environment.
* * fork.cc (slow_pid_reuse): Off-by-one.Christopher Faylor2000-11-152-4/+10
|
* Throughout use myself->ppid_handle rather than parent_alive.Christopher Faylor2000-11-1513-119/+144
| | | | | | | | | | | | | | | | * child_info.h (child_info): Eliminate parent_alive. * dcrt0.cc (dll_crt0_1): Call fork_init for debugging pid creation. * fork.cc (fork_child): Reflect change to fixup_mmaps_after_fork arguments. (slow_pid_reuse): New function to grab last 'n' pids to prevent pid reuse. (fork_parent): Move last_fork_proc into slow_pid_reuse. Handle fork_pids debugging. Eliminate unnecessary call to set_child_mmap_ptr. (fork_init): New debugging function. * mmap.cc (fixup_mmaps_after_fork): Renamed from recreate_mmaps_after_fork. Rely on copied data after a fork. (set_child_mmap_ptr): Eliminate. * pinfo.h (_pinfo): Eliminate parent_alive, mmap_ptr and reflect above changes. * spawn.cc (spawn_guts): Eliminate vestiges of "old way" of sending new hProc to parent process.
* Fix formatting.Corinna Vinschen2000-11-151-1/+1
|
* * cygheap.cc (cygheap_root::cygheap_root): New function.Corinna Vinschen2000-11-1516-138/+287
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (cygheap_root::~cygheap_root): Ditto. (cygheap_root::operator=): Ditto. (cygheap_user::~cygheap_user): Ditto. (cygheap_user::set_name): Ditto. (cygheap_user::set_logsrv): Ditto. (cygheap_user::set_domain): Ditto. (cygheap_user::set_sid): Ditto. * cygheap.h (cygheap_root): New class. (cygheap_user): Ditto. (init_cygheap): Change type of `root' member to cygheap_root. Add `user' member. * dir.cc (opendir): Use new `cygheap_root' class. * dcrt0.cc (dll_crt0_1): Use new `cygheap_user' class. * fork.cc (fork_parent): Ditto. * grp.cc (getgroups): Ditto. * passwd.cc (search_for): Ditto. * path.cc: Use new `cygheap_root' class throughout. * pinfo.h (_pinfo): Remove `use_psid'. Move `username', `psid', `logsrv', `domain', `orig_{uid,gid}' and `real_{uid,gid}' to cygheap_user class. * security.cc: Use new `cygheap_user' class throughout. * shared.cc (sec_user): Ditto. * sigproc.cc (proc_subproc): Remove copy statements for user related information moved to `cygheap_user' class. * spawn.cc (spawn_guts): Invalidate current chroot settings when creating Windows environment. Use new `cygheap_user' class. * syscalls.cc: Use new `cygheap_user' class throughout. * uinfo.cc: Ditto. * uinfo.cc (internal_getlogin): Change parameters to reflect the move of user information to cygheap.
* * dir.cc (rewinddir): Always set __d_position = 0, so nextCorinna Vinschen2000-11-142-1/+6
| | | | call to readdir() will restart the directory scan.
* * cygheap.h (init_cygheap): New struct holding values that live in the CygwinChristopher Faylor2000-11-1412-87/+122
| | | | | | | | | | | | | | | | | | | | | heap. * child_info.h (child_info): Change pointer type of cygheap to init_cygheap. * cygheap.cc (init_cheap): Point cygheap_max after contents of cygheap. Move some stuff into cygheap.h. * dir.cc (opendir): Change to use root and rootlen in cygheap rather than in myself. (mkdir): Change to use umask in cygheap rather than in myself. * path.cc: Ditto, throughout. * syscalls.cc (_open): Ditto. Change to use umask in cygheap rather than in myself. (chroot): Change to allocate root dir on the cygwin heap. (umask): Change to use umask in cygheap rather than in myself. (cygwin_bind): Ditto. * sigproc.cc (proc_subproc): Don't copy umask or root stuff as this happens automatically now. * pinfo.h (_pinfo): Migrate stuff out of here and into init_cheap. * dcrt0.cc (dll_crt0_1): Call cygheap_init later in startup for first cygwin process.
* * path.cc (get_device_number): Allow /dev/ttySn to designate a com port.Christopher Faylor2000-11-136-6/+13
|
* * path.h: Add __attribute__ ((regparm(x))) to commonly used functions.Christopher Faylor2000-11-125-12/+17
| | | | | | * pinfo.h: Ditto. * sigproc.h: Ditto. * sync.h: Ditto.
* * dcrt0.cc: New global variable `ignore_case_with_glob'.Christopher Faylor2000-11-114-10/+75
| | | | | | | | (dll_crt0_1): Disable case-insensitive globbing before calling `main'. * environ.cc (glob_init): New static function to set or clear `ignore_case_with_glob'. (known): Changed "glob" entry to call `glob_init'. * glob.c (match): Use case-insensitive globbing if needed.
* remove include/rapi.hChristopher Faylor2000-11-091-64/+0
|
* * dir.cc (readdir): Avoid reading from the beginning whenCorinna Vinschen2000-11-092-1/+7
| | | | readdir is called after a previous call has returned NULL.
* Increase cygwin heap size.Christopher Faylor2000-11-091-1/+1
|
* * select.cc (peek_pipe): Deal with pending newline in pty_master.Christopher Faylor2000-11-092-5/+20
|
* * environ.cc (_addenv): malloc space for setenv if cygwin1.dll is used inChristopher Faylor2000-11-088-9/+88
| | | | | | | | | | | | | | | | | | conjunction with older binaries. (environ_init): Ditto. * external.cc (get_cygdrive_info): New function. * external.cc (get_cygdrive_prefixes): Change to use get_cygdrive_info but toss the user and system flags. * external.cc (cygwin_internal): Add new CW_GET_CYGDRIVE_INFO case. * path.cc (mount_info::get_cygdrive_prefixes): Remove method. * path.cc (mount_info::get_cygdrive_info): New method. Actually, get_cygdrive_info is really an enhanced version of get_cygdrive_prefixes renamed to get_cygdrive_info that also gets the user and system flags. * shared_info.h (get_cygdrive_prefixes): Remove method. * shared_info.h (get_cygdrive_info): New method. * include/cygwin/version.h: Bump minor API version due to adding CW_GET_CYGDRIVE_INFO to cygwin_internal. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GET_CYGDRIVE_INFO.
* * autoload.cc: Add autoload statement for `WSASetLastError'.Corinna Vinschen2000-11-073-1/+15
| | | | | * net.cc (cygwin_connect): Change error code to WSAEINPROGRESS when connect returns WSAEWOULDBLOCK.
* Fix typos.Christopher Faylor2000-11-071-3/+3
|
* Update copyright.Christopher Faylor2000-11-071-1/+1
|
* * dcrt0.cc (sigthread::init): Reinstitute sigthread lock as a critical section.Christopher Faylor2000-11-065-79/+71
| | | | | | | | | | | | (dll_crt0_1): Move sigthread lock initialization to earlier in startup. * exceptions.cc (interrupt_on_return): Remove previous kludgy attempt to detect an invalid frame. (call_handler): Eliminate inner for loop. Grab signal critical section lock where appropriate. * sigproc.cc (proc_subproc): Restore uid setting. * sigproc.h (sigthread): Reinstitute sigthread lock as a critical section. (sigframe): Grab the sigthread lock before clearing frame to avoid having the signal thread use an invalid frame.