summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * 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.
* * fhandler_clipboard.cc: new fileDJ Delorie2000-10-177-2/+136
| | | | | | | | | | | * Makefile.in: include fhandler_clipboard.o in DLL_OFILES list. * fhandler.h: add FH_CLIPBOARD to the devices enum. (fhandler_dev_clipboard): new * path.cc (windows_device_names): add "\\dev\\clipboard" (get_device_number): check for "clipboard" * dcrt0.cc: declare a few more functions from winuser.h * dtable.cc (dtable::build_fhandler): check for FH_CLIPBOARD in switch().
* * debug.cc (add_handle): Issue warning on attempts to add the same handle moreChristopher Faylor2000-10-175-9/+35
| | | | | | | | | | | | than once. * fhandler_tty.cc (fhandler_tty_slave::open): Protect some handles. (fhandler_tty_common::close): Use proper name when closing handles. (fhandler_pty_master::close): Don't close to_slave or from_slave since they've already been closed earlier in the function. * sigproc.cc (proc_subproc): Don't protect vchild->hProcess. Expect that the caller will do this, instead. * tty.cc (tty_list::terminate): Use proper name when closing handles. (tty::make_pipes): Protect some handles.
* * Makefile.in: Remove some obsolete stuff.Christopher Faylor2000-10-1633-431/+322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * dcrt0.cc (dll_crt0_1): Call signal_fixup_after_exec where appropriate. Set myself->uid from parent version. Just use ThreadItem Init method. Close or store hexec_proc as appropriate. (_dll_crt0): Store user_data->forkee here so that proper tests can be made subsequently. (do_exit): Remove hExeced stuff. * environ.cc (environ_init): Accept environ count as well as environ pointer. * environ.h: Reflect above change. * pinfo.cc (pinfo_init): Ditto. Accept environ count. (fixup_in_spawned_child): Remove. * spawn.cc (spawn_guts): Move signal code to dll_crt0_1. Don't suspend execing process since it is no longer necessary. Store envc. * exceptions.cc (signal_fixup_after_exec): New function. (call_handler): Remove hExeced test. * child_info.h (cygheap_exec_info): Store envc as well as envp. (child_info_spawn): Store hexec_proc so that it can be closed in child. * path.cc (normalize_posix_path): Avoid intermediate use of temporary cwd buf. (normalize_win32_path): Ditto. (cwdstuff::get_initial): Always set lock. * sigproc.h: Remove hExeced. * strace.cc (strace::vsprntf): Modify to accomodate for lack of hExeced. * thread.cc (MTinterface::Init): Merge Init1 and ClearReent into this method. (MTinterface::Init1): Eliminate. (MTinterface::ClearReent): Eliminate. * thread.h: Reflect above changes. * include/sys/strace.h (strace): Make microseconds() public. Make various functions 'regparm', throughout. * pinfo.h (_pinfo): Inline simple signal manipulation functions. Requires inclusion of thread.h which was removed from .cc files, where appropriate. throughout. * pinfo.cc: Eliminate signal manipulation functions. (_pinfo::exit): Calculate total rusage for exiting process here. * cygheap.cc (size2bucket): Eliminate. (init_buckets): Ditto. (_cmalloc): Calculate size and bits in a loop rather than going through a function call. (_crealloc): Use stored array index to calculate allocated size. * spawn.cc (spawn_guts): Use _pinfo exit method to exit, calculating cpu usage.
* * cygcheck.cc (main): Fix argument counting.Corinna Vinschen2000-10-162-3/+8
|
* * ps.cc (main): Accomodate new PID_ constant.Christopher Faylor2000-10-153-4/+13
|
* * exceptions.cc (set_console_handler): Don't allocateChristopher Faylor2000-10-1519-277/+359
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | console_handler_thread_waiter. It is obsolete. (ctrl_c_handler): Don't use console_handler_thread_waiter. * path.cc (hash_path_name): Fix handling of relative names. Make case insensitive. * path.h (suffix_info): Use initializers. * pinfo.h (_pinfo): Avoid initializers for null case. * resource.cc (fill_rusage): Zero rest of rusage structure. * security.cc (set_process_privileges): Don't reopen parent process. Just use hMainProc. * signal.cc (signal): Track when a signal handler has been used. (sigaction): Ditto. * sigproc.cc (pchildren): Use default initializer. (zombies): Ditto. (sigproc_terminate): Avoid closing handles that will be closed on exit anyway. (wait_sig): Send signal to "parent" on EXECing, not FORKing. (wait_subproc): Send SIGCHLD here rather than in proc_wait to avoid potential muto conflicts. * sigproc.h (sigthread): Don't initialize to zero. It's the default. * spawn.cc (spawn_guts): Fill in resources from exec parent prior to termination. * sync.h (muto): Don't initialize to zero. * syscalls.cc (close_all_files): Use one lock around entire loop and call fhandler close/release stuff directly. (_read): Don't use ready_for_read if there are not signal handlers active. * dcrt0.cc (dll_crt0_1): Fix display of "title". (do_exit): Use pinfo exit method to exit. (__api_fatal): Ditto. * exceptions.cc (signal_exit): Ditto. * fork.cc (fork_child): Remove debugging stuff. Use pinfo_fixup_after fork in place of exec_fixup_after_fork. * pinfo.cc (pinfo_fixup_after_fork): New method. (pinfo_fixup_in_spawned_child): Ditto. (_pinfo::exit): New method. (_pinfo::init): Remove recursion. Detect pathological case where pinfo structure already exists for new pid. * pinfo.h (_pinfo): Reorganize slightly. Add new method and new function declarations. * sigproc.cc (proc_exists): Previous simplification was a little to simple. Try harder to detect if a process exists. (proc_terminate): Use PID_EXITED setting to determine if process is still around. (WFSO): Remove debugging statement. (WFMO): Ditto. * spawn.cc (exec_fixup_after_fork): Eliminate. (spawn_guts): Always set old_title to NULL. Is it really needed? Move hexec_proc to pinfo.cc. Call pinfo_fixup_in_spawned_child to eliminate handle link after a spawn. * include/sys/cygwin.h: Remove PID_NOT_IN_USE. Add PID_EXITED.
* Forgot to commit ChangeLogCorinna Vinschen2000-10-141-0/+10
|
* * cygwin.din: Add symbol hstrerror.Corinna Vinschen2000-10-144-9/+54
| | | | | | | | | * net.cc: Change meaning of member `s' of struct host_errmap. (set_host_errno): Fix error in loop condition. (hstrerror): Ditto. (herror): Add appropriate functionality. * include/netdb.h: Add declaration of hstrerror. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 29.
* * cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied fromChristopher Faylor2000-10-149-243/+153
| | | | | | | | | | | | | | | | | | parent. * dcrt0.cc (do_exit): Don't cleanup pinfo on exit. That happens automatically now. * exceptions.cc (signal_exit): Ditto. * fork.cc (fork_parent): Use stack_here value passed in from fork(). (fork): Figure out top of stack here and pass it to fork_parent. * pinfo.cc (_pinfo::record_death): Eliminate. * pinfo.h (_pinfo): Ditto. * sigproc.cc (proc_exists): Simplify. (proc_terminate): Ditto. (remove_zombie): Don't cleanup pinfo stuff. (wait_sig): Send subproc_ready signal whether execed or spawned. * spawn.cc (spawn_guts): Always create subproc_ready event. Use it for both exec and spawn. (_spawnve): Send proper mode to spawn_guts when mode != _P_OVERLAY.
* Add comment.Christopher Faylor2000-10-141-0/+1
|
* * dtable.cc (dtable::fixup_after_fork): Revert thinko below.Christopher Faylor2000-10-133-4/+7
| | | | * pinfo.cc (set_myself): Show pid in initial strace line.
* * child_info: Bump child_info "version".Christopher Faylor2000-10-1213-399/+407
| | | | | | | | | | | | | | | | | | | | | | (child_info): Move some fields from child_info_spawn to here. * cygheap.cc: Make cygheap pointers NOCOPY. * dcrt0.cc (dll_crt0_1): Copy cygwin heap here regardless of whether we've been forked or execed. * dtable.cc (dtable::fixup_after_fork): Just release close-on-exec fds. * exceptions.cc (stackdump): Respond to C warning. * fork.cc: Reorganize to minimize stack copying. (fork_child): New function. (fork_parent): Ditto. (sync_with_child): Don't suspend the forkee. (sync_with_parent): Ditto. Make into a function. * heap.cc (heap_init): Add some debugging output. * path.cc (path_conv::check): Add an assertion. (has_suffix): Ditto. * security.cc (get_pw_sid): Defend against NULL. * sigproc.cc (proc_subproc): Fix debugging output. (wait_sig): Ditto. * strace.cc: Make statics NO_COPY throughout. (strace::vsprntf): Defend against NULL.
* * strace.cc (proc_child): Handle exceptions correctly.Christopher Faylor2000-10-122-2/+10
|
* * errno.cc (seterrno_from_win_error): Fix debugging output.Christopher Faylor2000-10-1211-29/+89
| | | | | | | | | | | | | | * fhandler.cc (fhandler_base::fstat): Move to inline method in fhandler.h. (fhandler_base::set_io_handle): Ditto. * fhandler.h (fhandler_base): Make some methods inline. * fhandler_console.cc (fhandler_console::write_normal): Make buffer larger. * sigproc.h (sigframe::sigframe): Actually use set ebp parameter correctly. * spawn.cc (spawn_guts): Set dwProcessId when exec'ing. Just exit immediately after reparenting. * syscalls.cc: Sprinkle sigframe stuff throughout. * wait.cc (wait4): Set signal frame here. * dcrt0.cc (__api_fatal): Don't rely on small_printf to display errors. Always display problems to the console, if possible.
* merge from gcc repositoryDJ Delorie2000-10-122-1/+11
|
* * path.cc (cwdstuff::get): Set EINVAL when length is zero.Christopher Faylor2000-10-102-3/+16
|
* * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarationsChristopher Faylor2000-10-102-0/+7
| | | | for __CYGWIN__.
* * path.cc (mount_info::cygdrive_posix_path): Handle e:foo constructionChristopher Faylor2000-10-092-1/+11
| | | | correctly.
* * fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Fix debug output.Corinna Vinschen2000-10-092-2/+7
|
* * fhandler_mem.cc: Eliminate unused include statements.Corinna Vinschen2000-10-092-3/+12
| | | | (fhandler_dev_mem::fhandler_dev_mem): Check for 9X/ME.
* * fhandler.h (fhandler_dev_mem): Erase member `init_phase' andCorinna Vinschen2000-10-093-36/+62
| | | | | | | | | | | | | | member function `init'. * fhandler_mem.cc: Add typedefs for NT internal data types `SYSTEM_INFORMATION_CLASS' and `SYSTEM_BASIC_INFORMATION'. Add prototype for `NtQuerySystemInformation' function. (fhandler_dev_mem::fhandler_dev_mem): Takes over initialization task from `init'. Use `NtQuerySystemInformation' function to evaluate the size of physical memory instead of interval search. (fhandler_dev_mem::init): Eliminated. (fhandler_dev_mem::open): Don't call `init'. (fhandler_dev_mem::read): Eliminate check for `init_phase'. (dummy_autoload): Add load statement for `NtQuerySystemInformation'.
* * include/iprtrmib.h: Further layout changes according to standard.Corinna Vinschen2000-10-096-25/+33
| | | | | | | * include/iptypes.h: Ditto. * include/ntdef.h: Ditto. * include/ntsecapi.h: Ditto. * include/subauth.h: Ditto.
* * include/ntsecapi.h: Fix PLSA_UNICODE_STRING define.Corinna Vinschen2000-10-092-1/+5
|
* I forgot 'iprtrmib.h' in the ChangeLogCorinna Vinschen2000-10-091-1/+2
|