summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * dcrt0.cc (do_exit): Don't bother looking for pgrp children to send SIGHUP ifChristopher Faylor2000-10-256-3/+28
| | | | | | | | | | process has never created any children. * fork.cc (fork): Set flag indicating that there is another process with our process group. * spawn.cc (spawn_guts): Ditto. * pinfo.h (set_has_pgid_children): New methods for setting when process has children in its process group. * syscalls.cc (setpgid): Clear has_gid_children if pgid changes.
* * ntdll.h: New file.Corinna Vinschen2000-10-244-36/+94
| | | | | | | * fhandler_mem.cc: Move ntdll.dll specific definitions and declarations to ntdll.h. * sysconf.cc (sysconf): Add support for _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and _SC_AVPHYS_PAGES.
* * fhandler.cc (fhandler_base::fcntl): Behave properly when passedCorinna Vinschen2000-10-244-10/+18
| | | | | | previous version of O_NDELAY. * syscalls.cc: Move OLD_O_NDELAY to winsup.h. * winsup.h: Define OLD_O_NDELAY now.
* Update "How can I access other drives?" entry with details about ↵David Starks-Browning2000-10-241-7/+17
| | | | | | --change-cygdrive-prefix and some other minor changes.
* Update entry "What's the difference between packages in 'latest' and 'contrib'.David Starks-Browning2000-10-241-0/+4
|
* Add more details to "What if setup fails?" entry.David Starks-Browning2000-10-241-0/+18
|
* * exceptions.cc (signal_exit): Kill any executing child process if we're dying.Christopher Faylor2000-10-246-8/+27
| | | | | | | | | | * path.h: Remove unneeded extern. * spawn.cc (std_suffixes): Make static. Don't set dwProcessId here since it makes the process unsignalable. Set strace flag that this is an execed process stub. * strace.cc (strace::vsprntf): Use strace flag to indicate when to visually flag that this is an exec stub. * include/sys/strace.h (strace): Add 'execing' flag.
* testing.Christopher Faylor2000-10-231-1/+1
|
* * Makefile.common (LIBGCC): Acommodate older gcc's that don't needChristopher Faylor2000-10-231-1/+1
|
* * sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and noChristopher Faylor2000-10-232-1/+6
| | | | processes are available for waiting.
* * fhandler.cc (fhandler_base::fcntl): Setting flags in F_SETFLCorinna Vinschen2000-10-232-12/+18
| | | | branch according to Linux documentation.
* * fcntl.cc (_fcntl): Rearrange as wrapper function. Move allCorinna Vinschen2000-10-235-73/+92
| | | | | | | | functionality except F_DUPFD to fhandler classes. * fhandler.cc (fhandler_base::fcntl): New method. * net.cc (fhandler_socket::fcntl): Ditto. * fhandler.h (class fhandler_base): Add method prototype for fcntl(). (class fhandler_socket): Ditto.
* * sigproc.cc (proc_subproc): Correctly handle flags for WNOHANG case.Christopher Faylor2000-10-232-2/+6
|
* * security.cc: Eliminate C++ comments throughout.Corinna Vinschen2000-10-232-49/+62
|
* * Makefile.common (LIBGCC): Acommodate older gcc's that don't need libstdc++.a.Christopher Faylor2000-10-232-2/+13
|
* * fork.cc (fork): Set sigframe here, since it can pause for a considerableChristopher Faylor2000-10-237-4/+35
| | | | | | | amount of time. * environ.cc (_addenv): Add debugging. * fhandler.cc: Eliminate unneeded include. * smallprint.c: Ditto.
* flip/flop change.Christopher Faylor2000-10-221-2/+2
|
* Minor change.Christopher Faylor2000-10-221-2/+2
|
* Test checkin.Christopher Faylor2000-10-221-2/+2
|
* Minor change.Christopher Faylor2000-10-221-2/+2
|
* * pinfo.cc (pinfo_init): Eliminate call to `set_process_privileges'.Corinna Vinschen2000-10-223-25/+21
| | | | | | * security.cc (write_sd): Call `set_process_privileges' on the first call to `write_sd'. (set_process_privileges): Eliminate adjusting SE_BACKUP_NAME privilege.
* * Makefile.common (LIBGCC): Find libstdc++.a as well as libc.a since builtinChristopher Faylor2000-10-212-2/+7
| | | | functions are in this library in newer gcc's.
* Fix typo.Christopher Faylor2000-10-212-2/+2
|
* * pinfo.cc (pinfo::init): Make PID_EXECED signal creation as well asChristopher Faylor2000-10-212-1/+6
| | | | PID_IN_USE.
* * spawn.cc (spawn_guts): Don't do the reparenting step if we notice that theChristopher Faylor2000-10-212-5/+7
| | | | | child has exited prior to sending the subprocess_ready signal (?).
* * fhandler.h (fhandler_console): Remove tcsetpgrp.Christopher Faylor2000-10-218-36/+57
| | | | | | | | | | | | * fhandler_console.cc (fhandler_console::tcsetpgrp): Eliminate. * fork.cc (fork_parent): Avoid returning same pid twice in a row regardless of OS. * pinfo.cc (pinfo::init): Rename create argument to flags and treat it as such. * signal.cc (set_sigcatchers): New function. (signal): Use set_sigcatchers to increment or decrement sigcatcher tracker. (sigaction): Ditto. Add debugging output. * spawn.cc (spawn_guts): Always quote first argv[0] argument when it's a COMSPEC shell.
* * times.cc (to_time_t): pass zero time as epochDJ Delorie2000-10-203-0/+16
| | | | * fhandler.cc (fstat): copy atime/ctime from mtime if they're zero
* Makefile.in shuffle.Christopher Faylor2000-10-202-160/+104
|
* * external.cc (fillout_pinfo): Pass PID_NOREDIR flag to pinfo init to avoidChristopher Faylor2000-10-205-14/+37
| | | | | | | | finding execed processes twice. * signal.cc (kill_pgrp): Ditto. * spawn.cc (spawn_guts): Avoid passing first argument to CreateProcess when running a windows shell so that CreateProcess will locate the shell. Reorganize so that correct error is returned when CreateProcess fails.
* * Makefile.in: increment VERSION. Change tar file name for dist andEarnie Boyd2000-10-195-479/+916
| | | | | | | | | | | | | | | bindist targets to be more standard. * config.guess: Update with the currently published file. * config.sub: ditto. * configure.in: Use value of build_alias instead of testing for directory names to set BUILDENV. * configure: ditto. * lib/Makefile.in: Change the name of the targets install, install-headers and install-libraries to xinstall, xinstall-headers and xinstall-libraries for system target specified installation. Recreate targets install, install-headers and install-libraries for exec-prefix specified installation. Ditto for the uninstall targets of the same name.
* * Makefile.in: increment VERSION. Change tar file name for dist andEarnie Boyd2000-10-192-4/+21
| | | | | | | | | | | | | | | bindist targets to be more standard. * config.guess: Update with the currently published file. * config.sub: ditto. * configure.in: Use value of build_alias instead of testing for directory names to set BUILDENV. * configure: ditto. * lib/Makefile.in: Change the name of the targets install, install-headers and install-libraries to xinstall, xinstall-headers and xinstall-libraries for system target specified installation. Recreate targets install, install-headers and install-libraries for exec-prefix specified installation. Ditto for the uninstall targets of the same name.
* * dcrt0.cc (sigthread::init): Correct overzealous ifdef.Christopher Faylor2000-10-195-2/+22
| | | | | | * exceptions.cc (call_handler): Avoid calling sigthread acquire lock. * sigproc.h (sigthread): Comment out lock for now. * sync.cc (muto::acquire): Add a minor optimization.
* * Makefile.in: add miscfuncs.ccDJ Delorie2000-10-198-105/+144
| | | | | | | | | | * miscfuncs.cc: new, miscellaneous functions * winsup.h: define table-driven tolower/toupper * environ.cc: use them * fhandler_console.cc: ditto * fhandler_termios: ditto * path.cc: ditto (strncasematch, strcasematch, strcasestr): move to miscfuncs.cc
* * ssp.c: newDJ Delorie2000-10-194-1/+934
| | | | | * ssp.txt: new * Makefile.in: build ssp.exe
* * sigproc.h (sigthread): Eliminate locking for now since per thread signallingChristopher Faylor2000-10-194-9/+17
| | | | | | | is not available. * dcrt0.cc (sigthread::init): Ditto. (dll_crt0_1): Move set_process_privileges call (temporarily?) to pinfo_init. (pinfo_init): Only call set_process_privileges when allow_ntsec.
* * dcrt0.cc (dll_crt0_1): init cygcwd before forkee branchDJ Delorie2000-10-194-6/+57
| | | | | | | | | | * environ.cc (conv_start_chars): Cache a table of "first characters" for environment variables needing conversion. (getwinenv): Use it. (environ_init): Create it, also check first chars for TERM and CYGWIN. * path.cc: Use lookup table for case insensitive comparisons.
* * ps.cc (main): Add some extra space to Windows pid output for Windows 95.Christopher Faylor2000-10-182-2/+7
|
* Update entry "Why are compiled executables so huge?!?", add bit about 'gcc -s'.David Starks-Browning2000-10-181-1/+1
|
* Minor update to "How can I find out which dlls are needed by an executable?",David Starks-Browning2000-10-181-2/+2
| | | | indicate that cygcheck works recursively.
* Update entry "How do anti-virus programs like Cygwin?",David Starks-Browning2000-10-181-10/+18
| | | | adding bit about performance hit and exempting C:\cygwin\bin from scanning.
* Update entry "Why can't I run bash as a shell under NT Emacs?",David Starks-Browning2000-10-181-12/+29
| | | | remove old disclaimer.
* Update entry "Shell scripts aren't running properly from my makefiles?",David Starks-Browning2000-10-181-6/+4
| | | | remove old disclaimer.
* Relevant bits subsumed in what.texinfo, separate mirrors list discarded.David Starks-Browning2000-10-181-106/+0
|
* Update "Is it free software?" entry re. 1.0 CD. All in past tense,David Starks-Browning2000-10-181-12/+16
| | | | no longer shipping, refer to cygwin-cd.html for latest news.
* Minor, mention mirror sites in "Where can I get it?".David Starks-Browning2000-10-181-2/+2
|
* Add new section "Where can I get it?" to what.texinfo.David Starks-Browning2000-10-182-1/+14
| | | | Omit sites.texinfo altogether (mirror list not useful).
* Delete entry "Ancient history of the project", replace with link to ↵David Starks-Browning2000-10-181-34/+3
| | | | history.html.
* * ps.cc (main): Add some extra space to pid output for Windows 95.Christopher Faylor2000-10-182-6/+10
|
* * exceptions.cc (call_handler): Make signal pending if sigsave.sig is stillChristopher Faylor2000-10-186-6/+22
| | | | | | | | | | active. * syscalls.cc (_read): Don't clear errno. * sigproc.cc (wait_sig): Don't scan the waiting process list after a SIGCHLD if there are no zombies to reap. * winsup.h: Use __builtin_strcmp. * environ.cc (posify): Don't initialize len unless it is required (from DJ Delorie <dj@redhat.com>).
* * sigproc.cc (proc_subproc): Remove unneeded test for correct process inChristopher Faylor2000-10-174-14/+18
| | | | | | PROC_ADDCHILD. Return 0 when terminated child has just been reparented. (wait_subproc): Only send SIGCHLD when proc_subproc returns != 0. * strace.cc (strace::vsprntf): Only strip .exe extension from program name.