summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * Makefile.in: Accomodate newer gcc's which require linking of c++ programsChristopher Faylor2000-10-286-53/+63
| | | | | | | | with g++. Fixup output for some compilations. * cygcheck.cc: Respond to compiler warnings. * dumper.cc (main): Ditto. * parse_pe.cc (exclusion::sort_and_check): Ditto. * setfacl.cc (getaclentry): Ditto.
* Cleanup formatting on some files. Remove excessive whitespace.Christopher Faylor2000-10-2815-686/+764
|
* * strace.cc (main): Add a '-b' option.Christopher Faylor2000-10-282-2/+14
|
* * autoload.cc: New file keeping all autoload stuff.Corinna Vinschen2000-10-277-329/+326
| | | | | | | | * Makefile.in: Add autoload.o to dependencies. * dcrt0.cc: Move all autoload stuff to autoload.cc. * fhandler_mem.cc: Ditto. * net.cc: Ditto. * uinfo.cc: Ditto.
* * sigproc.cc (wait_sig): Add braces to avoid confusion.Christopher Faylor2000-10-273-5/+11
|
* * fhandler_socket.cc: New file.Corinna Vinschen2000-10-276-300/+324
| | | | | | | * Makefile.in: Add fhandler_socket.o to dependencies. * fhandler.h: Change comment. * net.cc Move all fhandler_socket methods to fhandler_socket.cc. * winsup.h: Add declaration for `ws2_32_handle'.
* * dtable.cc (dtable::release): Check for socket. ChangeCorinna Vinschen2000-10-267-42/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cnt_need_fixup_before accordingly. (dtable::dup2): Ditto. (dtable::fixup_before_fork): New method. (dtable::fixup_before_exec): Ditto. * dtable.h (class dtable): Add member `cnt_need_fixup_before'. Add definition for methods `dec_need_fixup_before', `inc_need_fixup_before', `need_fixup_before', `fixup_before_exec' and `fixup_before_fork'. * fhandler.h (class fhandler_base): Slight rearrangements. Add definitions for methods `fixup_before_fork_exec'. (class fhandler_socket): Eliminate superfluous constructor. Add member `prot_info_ptr'. Add destructor. Add definitions for methods `dup', `fixup_before_fork_exec', `fixup_after_fork' and `fixup_after_exec'. * fork.cc (fork_parent): Care for file types which need a fixup before fork. Start child in suspended state then. * net.cc: New global variable `ws2_32_handle' and `wsadata'. (fdsock): Check for Winsock version. Call `set_socket_inheritance' only if Winsock version < 2.0. Care for `need_fixup' count in fdtab. (cygwin_socket): Eliminate call to `set_socket_inheritance'. (cygwin_accept): Ditto. (cygwin_rcmd): Ditto. (cygwin_rresvport): Ditto. (cygwin_rexec): Ditto. (socketpair): Ditto. (fhandler_socket::fhandler_socket): Set `need_fork_fixup'. Allocate space for the WSAPROTOCOL_INFOA struct used in fixup. (fhandler_socket::~fhandler_socket): New destructor. (fhandler_socket::fixup_before_fork_exec): New method. (fhandler_socket::fixup_after_fork): Ditto. (fhandler_socket::dup): Ditto. (wsock_init): New static function. (LoadDLLinitfunc (wsock32)): Rearranged. (LoadDLLinitfunc (ws2_32)): New function. (dummy_autoload): Add autoload statemants for `WSADuplicateSocketA' and `WSASocketA'. * spawn.cc (spawn_guts): Care for file types which need a fixup before exec. Start child in suspended state then.
* * ntsec.sgml: Slight changes. Fix some errors.Corinna Vinschen2000-10-262-11/+16
|
* * ntsec.sgml: Changed the (now incorrect) hint that ntsec onlyCorinna Vinschen2000-10-262-1/+8
| | | | uses access allowed ACEs.
* * signal.cc (kill_pgrp): Don't limit sending of signals to stopped processesChristopher Faylor2000-10-262-3/+7
| | | | | when sig < 0. (kill_worker): Only send SIGCONT to stopped processes when sendSIGCONT.
* * exceptions.cc (sig_handle): Just make sure that wait_sig loops when receivingChristopher Faylor2000-10-252-1/+7
| | | | a SIGCONT. Don't block waiting for completion that will never occur.
* Add comment.Christopher Faylor2000-10-251-0/+1
|
* * dtable.cc (dtable::fixup_after_exec): Use variable rather than constantlyChristopher Faylor2000-10-252-7/+14
| | | | | indexing into fds array. (dtable::fixup_after_fork): Ditto.
* * fhandler.cc (fhandler_base::fcntl): Treat O_NONBLOCK and OLD_O_NDELAYCorinna Vinschen2000-10-253-10/+28
| | | | | as exactly the same. If one is set, both are set. * net.cc (fhandler_socket::fcntl): Ditto.
* * dcrt0.cc (do_exit): Remove debugging statement.Christopher Faylor2000-10-252-2/+4
|
* * 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.
* * libc/include/sys/unistd.h: Add defines for sysconf valuesCorinna Vinschen2000-10-242-22/+32
| | | | | _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.
* Add mail submission addresses for autoconf and config.{guess,sub}.Ben Elliston2000-10-241-0/+2
|
* forced checkin.Christopher Faylor2000-10-240-0/+0
|
* testing.Christopher Faylor2000-10-231-1/+1
|
* * Makefile.common (LIBGCC): Acommodate older gcc's that don't needChristopher Faylor2000-10-231-1/+1
|
* Forced checkin.Christopher Faylor2000-10-230-0/+0
|
* * 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
|
* Forced checkin.Christopher Faylor2000-10-220-0/+0
|
* * 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
* gas/Jakub Jelinek2000-10-202-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config/tc-sparc.c (sparc_ip): Fix a bug which caused v9_arg_p instructions to loose any special insn->architecture mask. * config/tc-sparc.c (v9a_asr_table): Add v9b ASRs. (sparc_md_end, sparc_arch_types, sparc_arch, sparc_elf_final_processing): Handle v8plusb and v9b architectures. (sparc_ip): Handle siam mode operands. Support v9b ASRs (and request v9b architecture if they are used). bfd/ * elf32-sparc.c (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p, elf32_sparc_final_write_processing): Support v8plusb. * elf64-sparc.c (sparc64_elf_merge_private_bfd_data, sparc64_elf_object_p): Support v9b. * archures.c: Declare v8plusb and v9b machines. * bfd-in2.h: Ditto. * cpu-sparc.c: Ditto. include/opcode/ * sparc.h (enum sparc_opcode_arch_val): Add SPARC_OPCODE_ARCH_V9B. Note that '3' is used for siam operand. opcodes/ * sparc-dis.c (v9a_asr_reg_names): Add v9b ASRs. (compute_arch_mask): Add v8plusb and v9b machines. (print_insn_sparc): siam mode decoding, accept ASRs up to 25. * opcodes/sparc-opc.c: Support for Cheetah instruction set. (prefetch_table): Add #invalidate.
* 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.