]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
23 years agoCleanup formatting on some files. Remove excessive whitespace.
Christopher Faylor [Sat, 28 Oct 2000 05:00:00 +0000 (05:00 +0000)]
Cleanup formatting on some files.  Remove excessive whitespace.

23 years ago* strace.cc (main): Add a '-b' option.
Christopher Faylor [Sat, 28 Oct 2000 00:21:41 +0000 (00:21 +0000)]
* strace.cc (main): Add a '-b' option.

23 years ago * autoload.cc: New file keeping all autoload stuff.
Corinna Vinschen [Fri, 27 Oct 2000 18:53:56 +0000 (18:53 +0000)]
    * autoload.cc: New file keeping all autoload stuff.
        * 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.

23 years ago* sigproc.cc (wait_sig): Add braces to avoid confusion.
Christopher Faylor [Fri, 27 Oct 2000 15:38:32 +0000 (15:38 +0000)]
* sigproc.cc (wait_sig): Add braces to avoid confusion.

23 years ago * fhandler_socket.cc: New file.
Corinna Vinschen [Fri, 27 Oct 2000 09:50:33 +0000 (09:50 +0000)]
    * fhandler_socket.cc: New file.
        * 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'.

23 years ago * dtable.cc (dtable::release): Check for socket. Change
Corinna Vinschen [Thu, 26 Oct 2000 10:13:41 +0000 (10:13 +0000)]
    * dtable.cc (dtable::release): Check for socket. Change
        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.

23 years ago * ntsec.sgml: Slight changes. Fix some errors.
Corinna Vinschen [Thu, 26 Oct 2000 08:01:39 +0000 (08:01 +0000)]
    * ntsec.sgml: Slight changes. Fix some errors.

23 years ago * ntsec.sgml: Changed the (now incorrect) hint that ntsec only
Corinna Vinschen [Thu, 26 Oct 2000 07:37:26 +0000 (07:37 +0000)]
    * ntsec.sgml: Changed the (now incorrect) hint that ntsec only
uses access allowed ACEs.

23 years ago* signal.cc (kill_pgrp): Don't limit sending of signals to stopped processes
Christopher Faylor [Thu, 26 Oct 2000 00:51:50 +0000 (00:51 +0000)]
* signal.cc (kill_pgrp): Don't limit sending of signals to stopped processes
when sig < 0.
(kill_worker): Only send SIGCONT to stopped processes when sendSIGCONT.

23 years ago* exceptions.cc (sig_handle): Just make sure that wait_sig loops when receiving
Christopher Faylor [Wed, 25 Oct 2000 17:57:43 +0000 (17:57 +0000)]
* exceptions.cc (sig_handle): Just make sure that wait_sig loops when receiving
a SIGCONT.  Don't block waiting for completion that will never occur.

23 years agoAdd comment.
Christopher Faylor [Wed, 25 Oct 2000 14:18:56 +0000 (14:18 +0000)]
Add comment.

23 years ago* dtable.cc (dtable::fixup_after_exec): Use variable rather than constantly
Christopher Faylor [Wed, 25 Oct 2000 14:17:27 +0000 (14:17 +0000)]
* dtable.cc (dtable::fixup_after_exec): Use variable rather than constantly
indexing into fds array.
(dtable::fixup_after_fork): Ditto.

23 years ago * fhandler.cc (fhandler_base::fcntl): Treat O_NONBLOCK and OLD_O_NDELAY
Corinna Vinschen [Wed, 25 Oct 2000 08:47:23 +0000 (08:47 +0000)]
* fhandler.cc (fhandler_base::fcntl): Treat O_NONBLOCK and OLD_O_NDELAY
as exactly the same. If one is set, both are set.
* net.cc (fhandler_socket::fcntl): Ditto.

23 years ago* dcrt0.cc (do_exit): Remove debugging statement.
Christopher Faylor [Wed, 25 Oct 2000 03:59:07 +0000 (03:59 +0000)]
* dcrt0.cc (do_exit): Remove debugging statement.

23 years ago* dcrt0.cc (do_exit): Don't bother looking for pgrp children to send SIGHUP if
Christopher Faylor [Wed, 25 Oct 2000 03:54:50 +0000 (03:54 +0000)]
* dcrt0.cc (do_exit): Don't bother looking for pgrp children to send SIGHUP if
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.

23 years ago * ntdll.h: New file.
Corinna Vinschen [Tue, 24 Oct 2000 18:44:56 +0000 (18:44 +0000)]
    * ntdll.h: New file.
        * 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.

23 years ago * libc/include/sys/unistd.h: Add defines for sysconf values
Corinna Vinschen [Tue, 24 Oct 2000 18:27:54 +0000 (18:27 +0000)]
    * libc/include/sys/unistd.h: Add defines for sysconf values
        _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
        _SC_AVPHYS_PAGES.

23 years ago * fhandler.cc (fhandler_base::fcntl): Behave properly when passed
Corinna Vinschen [Tue, 24 Oct 2000 18:15:25 +0000 (18:15 +0000)]
    * fhandler.cc (fhandler_base::fcntl): Behave properly when passed
        previous version of O_NDELAY.
        * syscalls.cc: Move OLD_O_NDELAY to winsup.h.
        * winsup.h: Define OLD_O_NDELAY now.

23 years agoUpdate "How can I access other drives?" entry with details about --change-cygdrive...
David Starks-Browning [Tue, 24 Oct 2000 16:43:50 +0000 (16:43 +0000)]
Update "How can I access other drives?" entry with details about --change-cygdrive-prefix
and some other minor changes.

23 years agoUpdate entry "What's the difference between packages in 'latest' and 'contrib'.
David Starks-Browning [Tue, 24 Oct 2000 15:24:16 +0000 (15:24 +0000)]
Update entry "What's the difference between packages in 'latest' and 'contrib'.

23 years agoAdd more details to "What if setup fails?" entry.
David Starks-Browning [Tue, 24 Oct 2000 15:20:18 +0000 (15:20 +0000)]
Add more details to "What if setup fails?" entry.

23 years ago* exceptions.cc (signal_exit): Kill any executing child process if we're dying.
Christopher Faylor [Tue, 24 Oct 2000 02:25:27 +0000 (02:25 +0000)]
* exceptions.cc (signal_exit): Kill any executing child process if we're dying.
* 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.

23 years agoAdd mail submission addresses for autoconf and config.{guess,sub}.
Ben Elliston [Tue, 24 Oct 2000 01:08:11 +0000 (01:08 +0000)]
Add mail submission addresses for autoconf and config.{guess,sub}.

23 years agoforced checkin.
Christopher Faylor [Tue, 24 Oct 2000 00:00:51 +0000 (00:00 +0000)]
forced checkin.

23 years agotesting.
Christopher Faylor [Mon, 23 Oct 2000 23:50:27 +0000 (23:50 +0000)]
testing.

23 years ago* Makefile.common (LIBGCC): Acommodate older gcc's that don't need
Christopher Faylor [Mon, 23 Oct 2000 23:45:32 +0000 (23:45 +0000)]
* Makefile.common (LIBGCC): Acommodate older gcc's that don't need

23 years agoForced checkin.
Christopher Faylor [Mon, 23 Oct 2000 23:39:04 +0000 (23:39 +0000)]
Forced checkin.

23 years ago* sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and no
Christopher Faylor [Mon, 23 Oct 2000 20:50:36 +0000 (20:50 +0000)]
* sigproc.cc (proc_subproc): Don't send a false positive if WNOHANG and no
processes are available for waiting.

23 years ago * fhandler.cc (fhandler_base::fcntl): Setting flags in F_SETFL
Corinna Vinschen [Mon, 23 Oct 2000 20:29:31 +0000 (20:29 +0000)]
    * fhandler.cc (fhandler_base::fcntl): Setting flags in F_SETFL
        branch according to Linux documentation.

23 years ago * fcntl.cc (_fcntl): Rearrange as wrapper function. Move all
Corinna Vinschen [Mon, 23 Oct 2000 20:16:52 +0000 (20:16 +0000)]
    * fcntl.cc (_fcntl): Rearrange as wrapper function. Move all
        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.

23 years ago* sigproc.cc (proc_subproc): Correctly handle flags for WNOHANG case.
Christopher Faylor [Mon, 23 Oct 2000 16:50:21 +0000 (16:50 +0000)]
* sigproc.cc (proc_subproc): Correctly handle flags for WNOHANG case.

23 years ago* security.cc: Eliminate C++ comments throughout.
Corinna Vinschen [Mon, 23 Oct 2000 08:02:38 +0000 (08:02 +0000)]
* security.cc: Eliminate C++ comments throughout.

23 years ago* Makefile.common (LIBGCC): Acommodate older gcc's that don't need libstdc++.a.
Christopher Faylor [Mon, 23 Oct 2000 04:50:32 +0000 (04:50 +0000)]
* Makefile.common (LIBGCC): Acommodate older gcc's that don't need libstdc++.a.

23 years ago* fork.cc (fork): Set sigframe here, since it can pause for a considerable
Christopher Faylor [Mon, 23 Oct 2000 03:35:50 +0000 (03:35 +0000)]
* fork.cc (fork): Set sigframe here, since it can pause for a considerable
amount of time.
* environ.cc (_addenv): Add debugging.
* fhandler.cc: Eliminate unneeded include.
* smallprint.c: Ditto.

23 years agoflip/flop change.
Christopher Faylor [Sun, 22 Oct 2000 22:43:47 +0000 (22:43 +0000)]
flip/flop change.

23 years agoMinor change.
Christopher Faylor [Sun, 22 Oct 2000 22:32:15 +0000 (22:32 +0000)]
Minor change.

23 years agoTest checkin.
Christopher Faylor [Sun, 22 Oct 2000 22:27:29 +0000 (22:27 +0000)]
Test checkin.

23 years agoMinor change.
Christopher Faylor [Sun, 22 Oct 2000 22:03:59 +0000 (22:03 +0000)]
Minor change.

23 years agoForced checkin.
Christopher Faylor [Sun, 22 Oct 2000 22:02:12 +0000 (22:02 +0000)]
Forced checkin.

23 years ago * pinfo.cc (pinfo_init): Eliminate call to `set_process_privileges'.
Corinna Vinschen [Sun, 22 Oct 2000 10:13:30 +0000 (10:13 +0000)]
    * pinfo.cc (pinfo_init): Eliminate call to `set_process_privileges'.
        * security.cc (write_sd): Call `set_process_privileges' on the first
        call to `write_sd'.
        (set_process_privileges): Eliminate adjusting SE_BACKUP_NAME privilege.

23 years ago* Makefile.common (LIBGCC): Find libstdc++.a as well as libc.a since builtin
Christopher Faylor [Sat, 21 Oct 2000 22:01:55 +0000 (22:01 +0000)]
* Makefile.common (LIBGCC): Find libstdc++.a as well as libc.a since builtin
functions are in this library in newer gcc's.

23 years agoFix typo.
Christopher Faylor [Sat, 21 Oct 2000 20:57:40 +0000 (20:57 +0000)]
Fix typo.

23 years ago* pinfo.cc (pinfo::init): Make PID_EXECED signal creation as well as
Christopher Faylor [Sat, 21 Oct 2000 19:28:49 +0000 (19:28 +0000)]
* pinfo.cc (pinfo::init): Make PID_EXECED signal creation as well as
PID_IN_USE.

23 years ago* spawn.cc (spawn_guts): Don't do the reparenting step if we notice that the
Christopher Faylor [Sat, 21 Oct 2000 05:53:43 +0000 (05:53 +0000)]
* spawn.cc (spawn_guts): Don't do the reparenting step if we notice that the
child has exited prior to sending the subprocess_ready signal
(?).

23 years ago* fhandler.h (fhandler_console): Remove tcsetpgrp.
Christopher Faylor [Sat, 21 Oct 2000 04:53:49 +0000 (04:53 +0000)]
* fhandler.h (fhandler_console): Remove tcsetpgrp.
* 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.

23 years ago* times.cc (to_time_t): pass zero time as epoch
DJ Delorie [Fri, 20 Oct 2000 21:45:50 +0000 (21:45 +0000)]
* times.cc (to_time_t): pass zero time as epoch
* fhandler.cc (fstat): copy atime/ctime from mtime if they're zero

23 years agogas/
Jakub Jelinek [Fri, 20 Oct 2000 10:38:47 +0000 (10:38 +0000)]
gas/
* 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.

23 years agoMakefile.in shuffle.
Christopher Faylor [Fri, 20 Oct 2000 04:39:21 +0000 (04:39 +0000)]
Makefile.in shuffle.

23 years ago* external.cc (fillout_pinfo): Pass PID_NOREDIR flag to pinfo init to avoid
Christopher Faylor [Fri, 20 Oct 2000 04:20:21 +0000 (04:20 +0000)]
* external.cc (fillout_pinfo): Pass PID_NOREDIR flag to pinfo init to avoid
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.

23 years ago * Makefile.in: increment VERSION. Change tar file name for dist and
Earnie Boyd [Thu, 19 Oct 2000 20:56:51 +0000 (20:56 +0000)]
    * Makefile.in: increment VERSION.  Change tar file name for dist and
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.

23 years ago * Makefile.in: increment VERSION. Change tar file name for dist and
Earnie Boyd [Thu, 19 Oct 2000 20:56:50 +0000 (20:56 +0000)]
    * Makefile.in: increment VERSION.  Change tar file name for dist and
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.

23 years ago* dcrt0.cc (sigthread::init): Correct overzealous ifdef.
Christopher Faylor [Thu, 19 Oct 2000 17:57:28 +0000 (17:57 +0000)]
* dcrt0.cc (sigthread::init): Correct overzealous ifdef.
* 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.

23 years ago* Makefile.in: add miscfuncs.cc
DJ Delorie [Thu, 19 Oct 2000 03:12:44 +0000 (03:12 +0000)]
* Makefile.in: add miscfuncs.cc
* 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

23 years ago* ssp.c: new
DJ Delorie [Thu, 19 Oct 2000 02:13:52 +0000 (02:13 +0000)]
* ssp.c: new
* ssp.txt: new
* Makefile.in: build ssp.exe

23 years ago* sigproc.h (sigthread): Eliminate locking for now since per thread signalling
Christopher Faylor [Thu, 19 Oct 2000 00:53:25 +0000 (00:53 +0000)]
* sigproc.h (sigthread): Eliminate locking for now since per thread signalling
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.

23 years ago* dcrt0.cc (dll_crt0_1): init cygcwd before forkee branch
DJ Delorie [Thu, 19 Oct 2000 00:45:39 +0000 (00:45 +0000)]
* dcrt0.cc (dll_crt0_1): init cygcwd before forkee branch

* 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.

23 years ago* ps.cc (main): Add some extra space to Windows pid output for Windows 95.
Christopher Faylor [Wed, 18 Oct 2000 22:58:34 +0000 (22:58 +0000)]
* ps.cc (main): Add some extra space to Windows pid output for Windows 95.

23 years agoUpdate entry "Why are compiled executables so huge?!?", add bit about 'gcc -s'.
David Starks-Browning [Wed, 18 Oct 2000 15:32:50 +0000 (15:32 +0000)]
Update entry "Why are compiled executables so huge?!?", add bit about 'gcc -s'.

23 years agoMinor update to "How can I find out which dlls are needed by an executable?",
David Starks-Browning [Wed, 18 Oct 2000 15:16:45 +0000 (15:16 +0000)]
Minor update to "How can I find out which dlls are needed by an executable?",
indicate that cygcheck works recursively.

23 years agoUpdate entry "How do anti-virus programs like Cygwin?",
David Starks-Browning [Wed, 18 Oct 2000 14:36:07 +0000 (14:36 +0000)]
Update entry "How do anti-virus programs like Cygwin?",
adding bit about performance hit and exempting C:\cygwin\bin from scanning.

23 years agoUpdate entry "Why can't I run bash as a shell under NT Emacs?",
David Starks-Browning [Wed, 18 Oct 2000 14:15:09 +0000 (14:15 +0000)]
Update entry "Why can't I run bash as a shell under NT Emacs?",
remove old disclaimer.

23 years agoUpdate entry "Shell scripts aren't running properly from my makefiles?",
David Starks-Browning [Wed, 18 Oct 2000 13:43:56 +0000 (13:43 +0000)]
Update entry "Shell scripts aren't running properly from my makefiles?",
remove old disclaimer.

23 years agoRelevant bits subsumed in what.texinfo, separate mirrors list discarded.
David Starks-Browning [Wed, 18 Oct 2000 13:12:14 +0000 (13:12 +0000)]
Relevant bits subsumed in what.texinfo, separate mirrors list discarded.

23 years agoUpdate "Is it free software?" entry re. 1.0 CD. All in past tense,
David Starks-Browning [Wed, 18 Oct 2000 13:04:27 +0000 (13:04 +0000)]
Update "Is it free software?" entry re. 1.0 CD.  All in past tense,
no longer shipping, refer to cygwin-cd.html for latest news.

23 years agoMinor, mention mirror sites in "Where can I get it?".
David Starks-Browning [Wed, 18 Oct 2000 12:48:31 +0000 (12:48 +0000)]
Minor, mention mirror sites in "Where can I get it?".

23 years agoAdd new section "Where can I get it?" to what.texinfo.
David Starks-Browning [Wed, 18 Oct 2000 12:34:41 +0000 (12:34 +0000)]
Add new section "Where can I get it?" to what.texinfo.
Omit sites.texinfo altogether (mirror list not useful).

23 years agoDelete entry "Ancient history of the project", replace with link to history.html.
David Starks-Browning [Wed, 18 Oct 2000 11:52:15 +0000 (11:52 +0000)]
Delete entry "Ancient history of the project", replace with link to history.html.

23 years ago* ps.cc (main): Add some extra space to pid output for Windows 95.
Christopher Faylor [Wed, 18 Oct 2000 04:55:01 +0000 (04:55 +0000)]
* ps.cc (main): Add some extra space to pid output for Windows 95.

23 years ago* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
Christopher Faylor [Wed, 18 Oct 2000 04:53:37 +0000 (04:53 +0000)]
* exceptions.cc (call_handler): Make signal pending if sigsave.sig is still
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>).

23 years ago* sigproc.cc (proc_subproc): Remove unneeded test for correct process in
Christopher Faylor [Tue, 17 Oct 2000 18:55:58 +0000 (18:55 +0000)]
* sigproc.cc (proc_subproc): Remove unneeded test for correct process in
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.

23 years ago* fhandler_clipboard.cc: new file
DJ Delorie [Tue, 17 Oct 2000 01:46:26 +0000 (01:46 +0000)]
* fhandler_clipboard.cc: new file
* 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().

23 years ago* debug.cc (add_handle): Issue warning on attempts to add the same handle more
Christopher Faylor [Tue, 17 Oct 2000 01:42:04 +0000 (01:42 +0000)]
* debug.cc (add_handle): Issue warning on attempts to add the same handle more
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.

23 years ago* Makefile.in: Remove some obsolete stuff.
Christopher Faylor [Mon, 16 Oct 2000 23:55:58 +0000 (23:55 +0000)]
* Makefile.in: Remove some obsolete stuff.
* 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.

23 years ago * cygcheck.cc (main): Fix argument counting.
Corinna Vinschen [Mon, 16 Oct 2000 23:12:58 +0000 (23:12 +0000)]
    * cygcheck.cc (main): Fix argument counting.

23 years ago* ps.cc (main): Accomodate new PID_ constant.
Christopher Faylor [Sun, 15 Oct 2000 03:43:48 +0000 (03:43 +0000)]
* ps.cc (main): Accomodate new PID_ constant.

23 years ago* exceptions.cc (set_console_handler): Don't allocate
Christopher Faylor [Sun, 15 Oct 2000 01:37:07 +0000 (01:37 +0000)]
* exceptions.cc (set_console_handler): Don't allocate
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.

23 years agoForgot to commit ChangeLog
Corinna Vinschen [Sat, 14 Oct 2000 08:56:17 +0000 (08:56 +0000)]
Forgot to commit ChangeLog

23 years ago * cygwin.din: Add symbol hstrerror.
Corinna Vinschen [Sat, 14 Oct 2000 08:55:44 +0000 (08:55 +0000)]
    * cygwin.din: Add symbol hstrerror.
        * 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.

23 years ago* cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied from
Christopher Faylor [Sat, 14 Oct 2000 05:52:38 +0000 (05:52 +0000)]
* cygheap.cc (cygheap_fixup_in_child): Don't page round cygheap copied from
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.

23 years agoAdd comment.
Christopher Faylor [Sat, 14 Oct 2000 01:03:01 +0000 (01:03 +0000)]
Add comment.

23 years ago* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
Christopher Faylor [Fri, 13 Oct 2000 03:13:59 +0000 (03:13 +0000)]
* dtable.cc (dtable::fixup_after_fork): Revert thinko below.
* pinfo.cc (set_myself): Show pid in initial strace line.

23 years ago* child_info: Bump child_info "version".
Christopher Faylor [Thu, 12 Oct 2000 22:15:47 +0000 (22:15 +0000)]
* child_info: Bump child_info "version".
(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.

23 years ago* strace.cc (proc_child): Handle exceptions correctly.
Christopher Faylor [Thu, 12 Oct 2000 06:22:30 +0000 (06:22 +0000)]
* strace.cc (proc_child): Handle exceptions correctly.

23 years ago* errno.cc (seterrno_from_win_error): Fix debugging output.
Christopher Faylor [Thu, 12 Oct 2000 04:38:29 +0000 (04:38 +0000)]
* errno.cc (seterrno_from_win_error): Fix debugging output.
* 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.

23 years agomerge from gcc repository
DJ Delorie [Thu, 12 Oct 2000 02:15:49 +0000 (02:15 +0000)]
merge from gcc repository

23 years ago* path.cc (cwdstuff::get): Set EINVAL when length is zero.
Christopher Faylor [Tue, 10 Oct 2000 19:24:32 +0000 (19:24 +0000)]
* path.cc (cwdstuff::get): Set EINVAL when length is zero.

23 years ago* libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarations
Christopher Faylor [Tue, 10 Oct 2000 00:28:49 +0000 (00:28 +0000)]
* libc/include/sys/unistd.h: Add getdtablesize and setdtablesize declarations
for __CYGWIN__.

23 years ago* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
Christopher Faylor [Mon, 9 Oct 2000 18:10:53 +0000 (18:10 +0000)]
* path.cc (mount_info::cygdrive_posix_path): Handle e:foo construction
correctly.

23 years ago* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Fix debug output.
Corinna Vinschen [Mon, 9 Oct 2000 14:49:25 +0000 (14:49 +0000)]
* fhandler_mem.cc (fhandler_dev_mem::fhandler_dev_mem): Fix debug output.

23 years ago * fhandler_mem.cc: Eliminate unused include statements.
Corinna Vinschen [Mon, 9 Oct 2000 14:02:25 +0000 (14:02 +0000)]
    * fhandler_mem.cc: Eliminate unused include statements.
        (fhandler_dev_mem::fhandler_dev_mem): Check for 9X/ME.

23 years ago * fhandler.h (fhandler_dev_mem): Erase member `init_phase' and
Corinna Vinschen [Mon, 9 Oct 2000 13:19:41 +0000 (13:19 +0000)]
    * fhandler.h (fhandler_dev_mem): Erase member `init_phase' and
        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'.

23 years ago * include/iprtrmib.h: Further layout changes according to standard.
Corinna Vinschen [Mon, 9 Oct 2000 09:51:46 +0000 (09:51 +0000)]
    * include/iprtrmib.h: Further layout changes according to standard.
        * include/iptypes.h: Ditto.
        * include/ntdef.h: Ditto.
        * include/ntsecapi.h: Ditto.
        * include/subauth.h: Ditto.

23 years ago * include/ntsecapi.h: Fix PLSA_UNICODE_STRING define.
Corinna Vinschen [Mon, 9 Oct 2000 09:34:04 +0000 (09:34 +0000)]
    * include/ntsecapi.h: Fix PLSA_UNICODE_STRING define.

23 years agoI forgot 'iprtrmib.h' in the ChangeLog
Corinna Vinschen [Mon, 9 Oct 2000 09:19:57 +0000 (09:19 +0000)]
I forgot 'iprtrmib.h' in the ChangeLog

23 years ago* ps.cc (main): Change order of reporting slightly so that windows pids are
Christopher Faylor [Mon, 9 Oct 2000 03:31:10 +0000 (03:31 +0000)]
* ps.cc (main): Change order of reporting slightly so that windows pids are
more obvious.
* strace.cc (add_child): Just add child's pid directly.
(remove_child): No need to close the child process pid since ContinueDebugEvent
does that automatically.
(proc_child): Ditto for child thread.

23 years ago* dtable.cc (set_std_handle): Use std_consts array to control SetStdHandle
Christopher Faylor [Mon, 9 Oct 2000 02:53:44 +0000 (02:53 +0000)]
* dtable.cc (set_std_handle): Use std_consts array to control SetStdHandle
settings.
(dtable::fixup_after_fork): Ditto.
* exceptions.cc (set_sig_errno): Remove some debugging output.
* path.cc (path_conv::check): Don't OR need_directory with flags sent to
symlink_info::check.
(symlink_info::check): Use PATH_ALL_EXEC to determine when a file is
executable.
* path.h (path_types): Add PATH_ALL_EXEC.
(isexec): Use PATH_ALL_EXEC so that cygexec types will be considered
executable.
* pinfo.h (_pinfo): Add a process handle that is kept open throughout the life
of a cygwin pid.
* sigproc.cc (proc_exists): Remove hopefully obsolete stuff.
(proc_subproc): Set up process handle that is kept open throughout the life of
a cygwin pid.  Reorganize PROC_WAIT stuff to use common code.
(proc_terminate): Close pid lifetime process handle.
(checkstate): Cleanup.
(stopped_or_terminated): Move zombie cleanup.
(remove_zombie): To here.
* spawn.cc (spawn_guts): Reorganize reparenting code for 1247th time.

23 years ago * include/ntsecapi.h: New file.
Corinna Vinschen [Sun, 8 Oct 2000 16:55:29 +0000 (16:55 +0000)]
    * include/ntsecapi.h: New file.
        * include/subauth.h: Ditto.
        * include/ipexport.h: Fix global header define not to contain
        trailing underscore. Change layout according to standard.
        * include/iphlpapi.h: Ditto.
        * include/ipifcons.h: Ditto.
        * include/iptypes.h: Ditto.
        * include/ntdef.h: Ditto. Define conditional datatypes dependent
        of inclusion of ntdecapi.h and subauth.h.
        * lib/secur32.def: New stub for secur32.dll.

23 years ago* fhandler.h (fhandler_base): Remove obsolete _rpos and _rsize elements.
Christopher Faylor [Sat, 7 Oct 2000 18:12:11 +0000 (18:12 +0000)]
* fhandler.h (fhandler_base): Remove obsolete _rpos and _rsize elements.
* fhandler.cc (fhandler_base::open): Ditto.
* fhandler.cc (fhandler_base::fhandler_base): Ditto.
(fhandler_base::read): Ditto.  Add more debugging output.  Don't issue a \r
when \r\n detected.
* pipe.cc (make_pipe): Streamline slightly.  Make debug output more
interesting.
* strace.cc (strace::vsprintf): Use __progname where appropriate to distinguish
strace output when exec'ing.

23 years ago * fhandler.h (fhandler_dev_mem): Add methods mmap, munmap and msync.
Corinna Vinschen [Sat, 7 Oct 2000 17:35:36 +0000 (17:35 +0000)]
    * fhandler.h (fhandler_dev_mem): Add methods mmap, munmap and msync.
        Add `unit' member.
        * fhandler_mem.cc (fhandler_dev_mem): Initialize `unit' as well.
        (init): Care for differences between /dev/mem, /dev/kmem (not
        implemented yet) and /dev/port.
        (open): Change debug message to reflect the device.
        (mmap): New function.
        (munmap): Ditto.
        (msync): Ditto.
        (fstat): Use unit when setting st_dev in stat structure.
        * mmap.cc (mmap): Handle MAP_ANONYMOUS flag.
        Change error handling slightly.
        * path.cc (get_device_number): Handle /dev/port.

23 years ago* syscalls.cc (_read): Behave properly when passed previous version of
Christopher Faylor [Sat, 7 Oct 2000 03:25:38 +0000 (03:25 +0000)]
* syscalls.cc (_read): Behave properly when passed previous version of
O_NDELAY.  Fix up debugging output.

This page took 0.065196 seconds and 5 git commands to generate.