]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
22 years ago * fhandler.cc (fhandler_base::open): Set read-only bit in
Corinna Vinschen [Tue, 9 Apr 2002 13:01:00 +0000 (13:01 +0000)]
* fhandler.cc (fhandler_base::open): Set read-only bit in
file_attributes when adequate.

22 years ago2002-04-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 8 Apr 2002 20:33:46 +0000 (20:33 +0000)]
2002-04-08  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/linux/include/setjmp.h: Add sigjmp_buf type,
        siglongjmp prototype, and sigsetjmp macro definition.
        * libc/sys/linux/siglongjmp.c: New file.
        * libc/sys/linux/Makefile.am: Add support for siglongjmp.
        * libc/sys/linux/Makefile.in: Regenerated.

22 years ago* Makefile.in (do-tar-bz2): Delete rule. Replace with ...
Andrew Cagney [Sun, 7 Apr 2002 20:53:57 +0000 (20:53 +0000)]
* Makefile.in (do-tar-bz2): Delete rule.  Replace with ...
(do-tar, do-bz2): New rules.
(taz): Update.  Replace do-tar-bz2 with do-tar and do-bz2.
(gdb-tar): New rule.
(gdb-taz): Rewrite.  Use gdb-tar and do-bz2.
(insight_dejagnu.tar): New rule.
(insight.tar): New rule.
(gdb+dejagnu.tar): New rule.
(gdb.tar): New rule.

22 years ago* MAINTAINERS: Update dejagnu/
Andrew Cagney [Sun, 7 Apr 2002 19:17:07 +0000 (19:17 +0000)]
* MAINTAINERS: Update dejagnu/

22 years ago2002-04-04 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 4 Apr 2002 22:41:11 +0000 (22:41 +0000)]
2002-04-04  Jeff Johnston  <jjohnstn@redhat.com>

        * Makefile.am: Add support for installing crt1.o if one exists.
        * configure.host: Specify crt1.o for linux.
        * configure.in: Expose CRT1 and CRT1_DIR for Makefile.am to use.
        * Makefile.in: Regenerated.
        * configure: Ditto.
        * libc/include/sys/unistd.h (_SC_STREAM_MAX, _SC_PRIORITY_SCHEDULING):
        Added for non-Cygwin, non-RTEMS configurations.
        * libc/sys/linux/Makefile.am: Add support for crt1 and sysconf.
        * libc/sys/linux/Makefile.in: Regenerated.
        * libc/sys/linux/crt1.c: New empty file to override one defaulted
        by gcc.  This fixes problem with reconfiguring linux newlib build.
        * libc/sys/linux/sysconf.c: New file.

22 years ago * include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
Danny Smith [Thu, 4 Apr 2002 08:54:50 +0000 (08:54 +0000)]
* include/math.h (DOMAIN, SING, OVERFLOW, UNDERFLOW,
TLOSS, PLOSS): Move oldname defines back, following
the underscored names.

22 years agonew description for old api.
Christopher Faylor [Thu, 4 Apr 2002 05:28:49 +0000 (05:28 +0000)]
new description for old api.

22 years ago2002-04-03 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 3 Apr 2002 22:46:21 +0000 (22:46 +0000)]
2002-04-03  Jeff Johnston  <jjohnstn@redhat.com>

* configure.host: Add support for machine subdirectory of
sys subdirectory.
* configure.in: Add check for sys machine subdirectory.
* Makefile.am: Ditto.
* configure: Regenerated.
* Makefile.in: Ditto.
* libc/sys/linux/crt0.c: Moved to machine/i386 directory.
* libc/sys/linux/sys/syscall.h: Ditto.
* libc/sys/linux/sleep.c: New file.
* libc/sys/linux/socket.c: Ditto.
* libc/sys/linux/sockops.h: Ditto.
* libc/sys/linux/stack.c: Ditto.
* libc/sys/linux/usleep.c: Ditto.
* libc/sys/linux/machine/Makefile.am: Ditto.
* libc/sys/linux/machine/Makefile.in: Ditto.
* libc/sys/linux/machine/aclocal.m4: Ditto.
* libc/sys/linux/machine/configure: Ditto.
* libc/sys/linux/machine/configure.in: Ditto.
* libc/sys/linux/machine/i386/Makefile.am: Ditto.
* libc/sys/linux/machine/i386/Makefile.in: Ditto.
* libc/sys/linux/machine/i386/aclocal.m4: Ditto.
* libc/sys/linux/machine/i386/configure: Ditto.
* libc/sys/linux/machine/i386/configure.in: Ditto.
* libc/sys/linux/machine/i386/crt0.c: Ditto.
* libc/sys/linux/machine/i386/sigset.c: Ditto.
* libc/sys/linux/machine/i386/sigstack.h: Ditto.
* libc/sys/linux/machine/i386/socketcall.h: Ditto.
* libc/sys/linux/machine/i386/syscall.h: Ditto.
* libc/sys/linux/sys/select.h: Ditto.
* libc/sys/linux/configure.in: Add support for machine directory.
* libc/sys/linux/Makefile.am: Ditto plus add new files above.
* libc/sys/linux/Makefile.in: Regenerated.
* libc/sys/linux/configure: Ditto.
* libc/sys/linux/brk.c: Use machine/syscall.h instead of sys/syscall.h.
* libc/sys/linux/inode.c: Ditto.
* libc/sys/linux/linux.c: Ditto.
* libc/sys/linux/process.c: Ditto.
* libc/sys/linux/systat.c: Ditto.
* libc/sys/linux/time.c: Ditto.
* libc/sys/linux/wait.c: Ditto.
* libc/sys/linux/ids.c: Change header plus add setfsgid/setfsuid.
* libc/sys/linux/io.c: Change header plus add readv/writev.
* libc/sys/linux/signal.c: Change header plus change sigsuspend to
use __sigsuspend syscall.
* libc/sys/linux/select.c: Change header plus change select to
use _newselect syscall.
* libc/sys/linux/sys/cdefs.h: Add a number of standard definitions
used by glibc header files.
* libc/sys/linux/sys/types.h: Add __socklen_t and __useconds_t
types.

22 years ago * include/objidl.h (IRunningObjectTable.Register): Correct
Danny Smith [Tue, 2 Apr 2002 09:00:14 +0000 (09:00 +0000)]
* include/objidl.h (IRunningObjectTable.Register): Correct
prototype.
* include/wtypes.h (ROTFLAGS_REGISTRATIONKEEPSALIVE,
ROTFLAGS_ALLOWANYCLIENT): Add defines.
* include/wtypes.h (enum tagCLSCTX): Change formatting.

22 years ago2002-04-01 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Mon, 1 Apr 2002 23:06:21 +0000 (23:06 +0000)]
2002-04-01  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/sys/reent.h (_REENT_INIT_PTR): New macro for
        initializing a struct _reent that has been dynamically allocated.
        (_REENT_CHECK_MISC): New macro that checks _misc struct for
        _REENT_SMALL and does nothing otherwise.
        (_REENT_STRTOK_LAST): New macro for reentrant strtok.
        (_REENT_MBLEN_STATE): New macro for reentrant mblen.
        (_REENT_MBTOWC_STATE): New macro for reentrant mbtowc.
        (_REENT_WCTOMB_STATE): New macro for reentrant wctomb.
        [_REENT_SMALL](struct _misc_reent): New structure containing
        miscellaneous reentrant areas needed by newlib.
        [_REENT_SMALL](struct _reent): Add _misc pointer.
        [_REENT_SMALL](_REENT_INIT_MISC): New macro.
        * libc/string/strtok (strtok): Change to use _REENT_CHECK_MISC
        and _REENT_STRTOK_LAST macros.
        * libc/stdlib/mblen (mblen): Change to use _REENT_CHECK_MISC
        and _REENT_MBLEN_STATE macros.
        * libc/stdlib/mbtowc (mbtowc): Change to use _REENT_CHECK_MISC
        and _REENT_MBTOWC_STATE macros.
        * libc/stdlib/wctomb (wctomb): Change to use _REENT_CHECK_MISC
        and _REENT_WCTOMB_STATE macros.

22 years ago2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
Jeff Johnston [Mon, 1 Apr 2002 22:29:40 +0000 (22:29 +0000)]
2002-04-01  Till Straumann <strauman@SLAC.Stanford.EDU>

        * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.

22 years agomerge from gcc
DJ Delorie [Mon, 1 Apr 2002 22:01:10 +0000 (22:01 +0000)]
merge from gcc

22 years ago * include/shellapi.h (SHGFI_ATTR_SPECIFIED): Add define.
Danny Smith [Sun, 31 Mar 2002 20:45:38 +0000 (20:45 +0000)]
* include/shellapi.h (SHGFI_ATTR_SPECIFIED): Add define.

22 years ago * include/stdio.h (_snwprintf): Correct spelling.
Danny Smith [Sat, 30 Mar 2002 01:38:27 +0000 (01:38 +0000)]
* include/stdio.h (_snwprintf): Correct spelling.
(_vsnwprintf): Likewise.
* include/wchar.h (_snwprintf): Correct spelling.
(_vsnwprintf): Likewise.

22 years ago * include/wingdi.h (SetPixelFormat): Correct prototype.
Danny Smith [Sat, 30 Mar 2002 01:03:22 +0000 (01:03 +0000)]
* include/wingdi.h (SetPixelFormat): Correct prototype.
* include/richedit.h (EM_SHOWSCROLLBAR): Add define.

22 years ago* times.cc (gettimeofday): Fix typo in previous patch.
Christopher Faylor [Thu, 28 Mar 2002 05:20:53 +0000 (05:20 +0000)]
* times.cc (gettimeofday): Fix typo in previous patch.

22 years ago* times.cc (gettimeofday): Revert to setting timezone info if tz != NULL.
Christopher Faylor [Thu, 28 Mar 2002 04:56:06 +0000 (04:56 +0000)]
* times.cc (gettimeofday): Revert to setting timezone info if tz != NULL.

22 years ago* libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.
Christopher Faylor [Thu, 28 Mar 2002 04:26:49 +0000 (04:26 +0000)]
* libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.

22 years ago * moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL).
Danny Smith [Tue, 26 Mar 2002 22:23:25 +0000 (22:23 +0000)]
* moldname.def.in (__MSVCRT__): Replace with !(__CRTDLL).
(wpopen): Add if !(__CRTDLL).
* Makefile.in (moldname-msvcrt.def rule): Use -C, not -c to
preserve comments.
(moldname-crtdll.def rule): Likewise.
* moldname-msvcrt.def: Regenerate.
* moldname-crtdll.def: Regenerate.
* include/stdio.h (wpopen):Use prototype, not a define.
(_swnprintf): Add prototype.
(_vswnprintf): Likewise.
Tidy up whitespace.
* include/wchar.h (_swnprintf): Add prototype.
(_vswnprintf): Likewise.
Tidy up whitespace.

22 years ago * include/richedit.h (EM_GETSCROLLPOS, EM_SETSCROLLPSPOS):
Danny Smith [Tue, 26 Mar 2002 21:20:53 +0000 (21:20 +0000)]
* include/richedit.h (EM_GETSCROLLPOS, EM_SETSCROLLPSPOS):
Add defines.

22 years ago * libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
Joern Rennecke [Tue, 26 Mar 2002 17:22:16 +0000 (17:22 +0000)]
* libc/machine/sh/memcpy.S (Large): Fix alignment rounding.
Store high part of leading bytes too.

22 years ago * libm/math/ef_hypot.c: Increase scale factor to 68.
Richard Sandiford [Fri, 22 Mar 2002 11:25:15 +0000 (11:25 +0000)]
* libm/math/ef_hypot.c: Increase scale factor to 68.

22 years ago* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
Christopher Faylor [Fri, 22 Mar 2002 04:27:52 +0000 (04:27 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
st_[ug]id to value derived from get_file_attributes.

22 years ago* spawn.cc (find_exec): Return input if file not found.
Christopher Faylor [Fri, 22 Mar 2002 03:24:30 +0000 (03:24 +0000)]
* spawn.cc (find_exec): Return input if file not found.

22 years agoadd eol to end
Christopher Faylor [Thu, 21 Mar 2002 05:52:21 +0000 (05:52 +0000)]
add eol to end

22 years agoexpand entry on dir file, may need to update it after installing packages.
David Starks-Browning [Wed, 20 Mar 2002 23:53:50 +0000 (23:53 +0000)]
expand entry on dir file, may need to update it after installing packages.

22 years agonew subsection "Is there a Cygwin port of GNU Emacs?" with pointer to
David Starks-Browning [Wed, 20 Mar 2002 23:48:16 +0000 (23:48 +0000)]
new subsection "Is there a Cygwin port of GNU Emacs?" with pointer to
cygwin-mount.el, and details about "emacs -nw" vs. "xemacs -nw".

22 years agoadd "cygwish80.exe" to list of tcl/tk apps that do not understand paths
David Starks-Browning [Wed, 20 Mar 2002 23:14:30 +0000 (23:14 +0000)]
add "cygwish80.exe" to list of tcl/tk apps that do not understand paths

22 years agoremove "not yet updated" for preprocessor, GUI programming entries.
David Starks-Browning [Wed, 20 Mar 2002 23:12:26 +0000 (23:12 +0000)]
remove "not yet updated" for preprocessor, GUI programming entries.

22 years agoremove "Where can I get f77 and objc components for B20 EGCS 1.1?"
David Starks-Browning [Wed, 20 Mar 2002 23:02:51 +0000 (23:02 +0000)]
remove "Where can I get f77 and objc components for B20 EGCS 1.1?"
(it can't possibly be relevant any more...)

22 years agoupdate (make problem solved, cvs+ssh problem solved)
David Starks-Browning [Wed, 20 Mar 2002 23:01:09 +0000 (23:01 +0000)]
update (make problem solved, cvs+ssh problem solved)

22 years agoremove "not yet updated" warning for queue slots, df entries.
David Starks-Browning [Wed, 20 Mar 2002 22:34:40 +0000 (22:34 +0000)]
remove "not yet updated" warning for queue slots, df entries.

22 years ago * poll.cc (poll): Add support for invalid descriptors.
Corinna Vinschen [Tue, 19 Mar 2002 17:12:49 +0000 (17:12 +0000)]
    * poll.cc (poll): Add support for invalid descriptors.

22 years ago* mkgroup.c (usage): Use one just fprintf + string concatenation for output
Christopher Faylor [Tue, 19 Mar 2002 15:48:40 +0000 (15:48 +0000)]
* mkgroup.c (usage): Use one just fprintf + string concatenation for output
message.
(print_version): Add void to function type and update copyright.

22 years ago * mkgroup.c (usage): Simplify usage output. Generalize to allow use
Corinna Vinschen [Tue, 19 Mar 2002 15:28:13 +0000 (15:28 +0000)]
* mkgroup.c (usage): Simplify usage output.  Generalize to allow use
for help. Correct '?' typo to 'h'.
(longopts): Add version option.
(opts): Add 'v' version option.
(print_version): New function.
(main): Accommodate new version option.  Accommodate usage parameter
changes.  Use usage to output help message.

22 years ago2002-03-15 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 19 Mar 2002 04:39:01 +0000 (04:39 +0000)]
2002-03-15  Robert Collins  <rbtcollins@hotmail.com>

        * fhandler.h (fhandler_termios::lseek): Override lseek.
        * fhandler_termios.cc (fhandler_termios::lseek): Implement this.

22 years agoAdd AIX 64 shared library support and emulation layer for binutils
Nick Clifton [Mon, 18 Mar 2002 12:46:15 +0000 (12:46 +0000)]
Add AIX 64 shared library support and emulation layer for binutils

22 years ago* ltmain.sh (relink_command): Fix typo in previous change.
Alexandre Oliva [Sat, 16 Mar 2002 14:43:09 +0000 (14:43 +0000)]
* ltmain.sh (relink_command): Fix typo in previous change.

22 years ago[ gas/ChangeLog ]
Chris Demetriou [Sat, 16 Mar 2002 03:09:18 +0000 (03:09 +0000)]
[ gas/ChangeLog ]
2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>

* config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
(mips_opts): Initialize "ase_mips3d" member.
(file_ase_mips3d): New variable.
(CPU_HAS_MIPS3D): New macro.
(md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
based on command line options and configuration defaults.
(macro_build, mips_ip): Accept MIPS-3D instructions if
mips_opts.ase_mips3d is set.
(OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
Add support for "-mips3d" and "-no-mips3d" options.
(OPTION_ELF_BASE): Move to accomodate new options.
(s_mipsset): Support ".set mips3d" and ".set nomips3d".
(mips_elf_final_processing): Add a comment indicating that a
MIPS-3D ASE ELF header flag should be set, when one exists.
* doc/as.texinfo: Document -mips3d and -no-mips3d options.
* doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
nomips3d" directives.

[ gas/testsuite/ChangeLog ]
2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>

* gas/mips/mips64-mips3d.s: New file.
* gas/mips/mips64-mips3d.d: Likewise.
* gas/mips/mips.exp: Run new "mips64-mips3d" test.

[ include/opcode/ChangeLog ]
2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>

* mips.h (INSN_MIPS3D): New definition used to mark MIPS-3D
instructions.
(OPCODE_IS_MEMBER): Adjust comments to indicate that ASE bit masks
may be passed along with the ISA bitmask.

[ opcodes/ChangeLog ]
2002-03-15  Chris G. Demetriou  <cgd@broadcom.com>

* mips-dis.c (mips_isa_type): Add MIPS3D instructions to the ISA
bit masks for bfd_mach_mips_sb1 and bfd_mach_mipsisa64.  Add
comments for bfd_mach_mipsisa32 and bfd_mach_mipsisa64 that
indicate that they should dissassemble all applicable
MIPS-specified ASEs.
* mips-opc.c: Add support for MIPS-3D instructions.
(M3D): New definition.

* mips-opc.c: Update copyright years.

22 years ago* ltmain.sh (taglist): Initialized. Don't let `CC' tag out of it.
Alexandre Oliva [Fri, 15 Mar 2002 23:05:24 +0000 (23:05 +0000)]
* ltmain.sh (taglist): Initialized.  Don't let `CC' tag out of it.
(relink_command): Added --tag flags.
(mode=install): If relinking fails; error out.

22 years ago* cygserver.cc: Include stdlib.h for exit declaration.
Christopher Faylor [Fri, 15 Mar 2002 21:52:05 +0000 (21:52 +0000)]
* cygserver.cc: Include stdlib.h for exit declaration.
* threaded_queue.cc: Ditto.

22 years ago* pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a redirected
Christopher Faylor [Fri, 15 Mar 2002 21:49:12 +0000 (21:49 +0000)]
* pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a redirected
block should be marked as nonexistent.
(winpids::add): Use PID_ALLPIDS when looking for all pids.
* cygwin.h (PID_ALLPIDS): New enum element.

22 years ago2002-03-15 Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Fri, 15 Mar 2002 14:53:55 +0000 (14:53 +0000)]
2002-03-15  Corinna Vinschen  <corinna@vinschen.de>

* mkgroup.c (main): When generating group 513, check for computer's
primary domain instead of current user's domain.

2002-03-14  Corinna Vinschen  <corinna@vinschen.de>

* mkgroup.c (main): When generating group 513, check for domain SID
if computer name isn't mapped to a SID.

22 years ago * glob.c (stat32_to_STAT): New function.
Corinna Vinschen [Fri, 15 Mar 2002 10:12:31 +0000 (10:12 +0000)]
* glob.c (stat32_to_STAT): New function.
(g_lstat): Call user space functions always with 32 bit struct stat
as a workaround.
(g_stat): Ditto.
* include/glob.h (struct glob): Don't prototype function pointers
when compiling Cygwin.

22 years ago* pinfo.cc (pinfo::init): Properly handle execed process stub when PID_NOREDIR
Christopher Faylor [Thu, 14 Mar 2002 23:14:19 +0000 (23:14 +0000)]
* pinfo.cc (pinfo::init): Properly handle execed process stub when PID_NOREDIR
is specified.

22 years agoFix ChangeLog
Christopher Faylor [Thu, 14 Mar 2002 15:34:32 +0000 (15:34 +0000)]
Fix ChangeLog

22 years ago * poll.cc: Remove variable open_fds, rearrange and add code
Corinna Vinschen [Thu, 14 Mar 2002 12:15:31 +0000 (12:15 +0000)]
* poll.cc: Remove variable open_fds, rearrange and add code
to fix settings of revents.

22 years ago* libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
Alexandre Oliva [Thu, 14 Mar 2002 02:41:43 +0000 (02:41 +0000)]
* libc/machine/mips/strlen.c (strlen) [__mips16]: Fix off-by-two
error.

22 years ago * mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails.
Corinna Vinschen [Wed, 13 Mar 2002 20:54:57 +0000 (20:54 +0000)]
* mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails.
(list::erase): New method with no argument.  Erase latest record
added.
(mmap64): Fail if map_map() fails.

22 years ago * include/richedit.h (RICHEDIT_CLASS): UNICODE it.
Danny Smith [Wed, 13 Mar 2002 20:00:16 +0000 (20:00 +0000)]
* include/richedit.h (RICHEDIT_CLASS): UNICODE it.
* include/shlobj.h (IContextMenu2): Put methods in right order.
* include/basetyps.h (REFGUID, REFIID, REFCLSID): Check for
CINTERFACE before defining.

22 years agowhitespace cleanup, update copyright
Christopher Faylor [Wed, 13 Mar 2002 02:34:05 +0000 (02:34 +0000)]
whitespace cleanup, update copyright

22 years ago * Makefile.in (NOTPARALLEL): New. Use it instead of explicit
Richard Henderson [Wed, 13 Mar 2002 01:19:29 +0000 (01:19 +0000)]
    * Makefile.in (NOTPARALLEL): New.  Use it instead of explicit
        .NOTPARALLEL tag.
        (do-check): Rename from check.
        (check): Allow parallel check.

22 years ago2002-03-12 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Tue, 12 Mar 2002 21:31:56 +0000 (21:31 +0000)]
2002-03-12  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/sys/go32/access.c: Change license to relaxed license
        used in identical file throughout newlib/libgloss.

22 years ago2002-03-12 Richard Earnshaw <rearnsha@arm.com>
Jeff Johnston [Tue, 12 Mar 2002 21:25:12 +0000 (21:25 +0000)]
2002-03-12  Richard Earnshaw  <rearnsha@arm.com>

        * libc/sys/arm/access.c: New file.
        * libc/sys/arm/Makefile.am (lib_a_SOURCES): Add access.c.
        * libc/sys/arm/Makefile.in: Regenerate.
        * libc/sys/arm/syscalls.c (_stat): New function.

22 years ago * sysconf.cc (sysconf): Fix condition.
Corinna Vinschen [Tue, 12 Mar 2002 08:57:22 +0000 (08:57 +0000)]
    * sysconf.cc (sysconf): Fix condition.

22 years agoremove erroneous part of comment
Christopher Faylor [Tue, 12 Mar 2002 03:36:01 +0000 (03:36 +0000)]
remove erroneous part of comment

22 years ago * Makefile.in (.NOTPARALLEL): Add fake tag.
Richard Henderson [Tue, 12 Mar 2002 01:07:47 +0000 (01:07 +0000)]
    * Makefile.in (.NOTPARALLEL): Add fake tag.

22 years agoFix my last ChangeLog entry.
Danny Smith [Mon, 11 Mar 2002 20:58:00 +0000 (20:58 +0000)]
Fix my last ChangeLog entry.

22 years ago * mmap.cc (msync): Check area given by addr and len for being a
Corinna Vinschen [Mon, 11 Mar 2002 20:23:09 +0000 (20:23 +0000)]
* mmap.cc (msync): Check area given by addr and len for being a
contigeous mmap'd region.

22 years ago* kill.cc (usage): Move to top of file.
Christopher Faylor [Mon, 11 Mar 2002 18:33:02 +0000 (18:33 +0000)]
* kill.cc (usage): Move to top of file.
(getsig): Ditto.
(forcekill): Ditto.

22 years ago * fork.cc (fork_child): Call fixup_mmaps_after_fork() before
Corinna Vinschen [Mon, 11 Mar 2002 17:57:22 +0000 (17:57 +0000)]
* fork.cc (fork_child): Call fixup_mmaps_after_fork() before
closing parent process handle.  Call fixup_mmaps_after_fork()
with parent process handle as parameter.
* mmap.cc (mmap_record::access): New method.
(fixup_mmaps_after_fork): Take process handle as parameter.
In case of FILE_MAP_COPY access, copy valid memory regions to child.
* pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly.

22 years agoAdd MIPS specific string/memory functions
Michael Meissner [Mon, 11 Mar 2002 15:44:35 +0000 (15:44 +0000)]
Add MIPS specific string/memory functions

22 years agogdb/:
Daniel Jacobowitz [Mon, 11 Mar 2002 00:01:11 +0000 (00:01 +0000)]
gdb/:
2002-03-10  Daniel Jacobowitz  <drow@mvista.com>

        * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
        * defs.h: Include "gdb/signals.h".
        (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.

include/gdb:
2002-03-10  Daniel Jacobowitz  <drow@mvista.com>

        * signals.h: New file, split from gdb/defs.h.

22 years ago * include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
Danny Smith [Sat, 9 Mar 2002 09:04:10 +0000 (09:04 +0000)]
* include/accctrl.h, aclapi.h, basetsd.h, basetyps.h, cderr.h,
cguid.h, commctrl.h, commdlg.h, cpl.h, cplext.h, custcntl.h,
dbt.h, dde.h, ddeml.h, dlgs.h, excpt.h, httpext.h, imagehlp.h,
imm.h, initguid.h, intshcut.h, ipexport.h, iphlpapi.h,
ipifcons.h, iprtrmib.h, iptypes.h, isguids.h, largeint.h, lm.h,
lmaccess.h, lmalert.h, lmapibuf.h, lmat.h, lmaudit.h,
lmbrowsr.h, lmchdev.h, lmconfig.h, lmcons.h, lmerr.h,
lmerrlog.h, lmmsg.h, lmremutl.h, lmrepl.h, lmserver.h,
lmshare.h, lmsname.h, lmstats.h, lmsvc.h, lmuse.h, lmuseflg.h,
lmwksta.h, lzexpand.h, mapi.h, mciavi.h, mcx.h, mmsystem.h,
mswsock.h, nb30.h, nddeapi.h, nspapi.h, ntdef.h, ntsecapi.h,
ntsecpkg.h, oaidl.h, objbase.h, objfwd.h, objidl.h, odbcinst.h,
ole.h, ole2.h, ole2ver.h, oleauto.h, olectl.h, olectlid.h,
oledlg.h, oleidl.h, pbt.h, prsht.h, psapi.h, rapi.h, ras.h,
raserror.h, rassapi.h, regstr.h, richedit.h, richole.h, rpc.h,
rpcdce.h, rpcdce2.h, rpcdcep.h, rpcndr.h, rpcnsi.h, rpcnsip.h,
rpcnterr.h, rpcproxy.h, schannel.h, schnlsp.h, scrnsave.h,
security.h, setupapi.h, shellapi.h, shlguid.h, shlobj.h, sql.h,
sqlext.h, sqltypes.h, sqlucode.h, sspi.h, subauth.h,
tlhelp32.h, unknwn.h, userenv.h, w32api.h, winbase.h, wincon.h,
wincrypt.h, windef.h, windows.h, windowsx.h, winerror.h,
wingdi.h, wininet.h, winioctl.h, winnetwk.h, winnls.h, winnt.h,
winperf.h, winreg.h, winresrc.h, winsock.h, winsock2.h,
winspool.h, winsvc.h, winuser.h, winver.h, ws2tcpip.h,
wsnetbs.h, wtypes.h, zmouse.h: Add #pragma GCC system_header
if __GNUC__ >= 3.
* include/mapi.h: Change header guard name to _MAPI_H  for
consistency.

22 years ago * include/accctrl.h (_ACCCTRL_H): Correct typo.
Danny Smith [Fri, 8 Mar 2002 08:17:19 +0000 (08:17 +0000)]
* include/accctrl.h (_ACCCTRL_H): Correct typo.
Remove unnecessary inclusion of <wtypes.h>
* ChangeLog: Fix omission of name in recent entries.

* include/initguid.h (DEFINE_GUID): Add GUID_EXT to define.

22 years ago2002-03-07 H.J. Lu (hjl@gnu.org)
H.J. Lu [Thu, 7 Mar 2002 17:47:03 +0000 (17:47 +0000)]
2002-03-07  H.J. Lu  (hjl@gnu.org)

* configure.in: Enable gprof for mips*-*-linux*.

22 years ago * autoload.cc (NetGetDCName): Add symbol.
Corinna Vinschen [Thu, 7 Mar 2002 14:32:53 +0000 (14:32 +0000)]
* autoload.cc (NetGetDCName): Add symbol.
(NetServerEnum): Remove symbol.
* security.cc (get_lsa_srv_inf): Call NetGetDCName() instead of
NetServerEnum() since it's faster.  Don't call it at all if machine
is not a domain member.

22 years ago* cygcheck.cc: Reformat.
Christopher Faylor [Thu, 7 Mar 2002 03:13:17 +0000 (03:13 +0000)]
* cygcheck.cc: Reformat.

22 years ago* cygcheck.cc (longopts): Use correct short option for --version.
Christopher Faylor [Thu, 7 Mar 2002 03:06:28 +0000 (03:06 +0000)]
* cygcheck.cc (longopts): Use correct short option for --version.

22 years ago* cygpath.cc: Reformat.
Christopher Faylor [Thu, 7 Mar 2002 03:00:14 +0000 (03:00 +0000)]
* cygpath.cc: Reformat.
* cygpath.cc (print_version): New function.
(main): Accommodate new version function.  Initialize 'o' to prevent warning.
* cygcheck.cc (main): Eliminate non-GNU formatting glitch.

22 years ago* path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
Christopher Faylor [Thu, 7 Mar 2002 01:31:08 +0000 (01:31 +0000)]
* path.cc (normalize_posix_path): Avoid runs of '.'s > 2.

22 years ago2002-03-06 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Wed, 6 Mar 2002 23:14:17 +0000 (23:14 +0000)]
2002-03-06  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/machine/i386/Makefile.am: Add $(oext) for setjmp
        object so it works for shared library or statici library.
        * libc/machine/i386/Makefile.in: Regenerated.

22 years ago * include/mswsock.h: Group winsock2 dependants
Danny Smith [Wed, 6 Mar 2002 11:31:47 +0000 (11:31 +0000)]
* include/mswsock.h: Group winsock2 dependants
together and protect with #ifdef _WINSOCK2_H.
* lib/test.c: Only test ws2tcpip.h if winsock2.h
has been included.

22 years ago * Makefile.am (lib_a_SOURCES, SH64 case): Add memcpy.S, memset.S
Joern Rennecke [Wed, 6 Mar 2002 10:43:18 +0000 (10:43 +0000)]
* Makefile.am (lib_a_SOURCES, SH64 case): Add memcpy.S, memset.S
and strcpy.S.
* Makefile.in: Regenerate.
* asm.h (_ENTRY): Set SH5 alignment to 8 bytes.
(SHHI, SHLO): Define.
* memcpy.S: Add code for SH5.
* memset.S: Likewise.
* strcpy.S: Likewise.

22 years agoRemove floatformat_arm_ext.
Andrew Cagney [Wed, 6 Mar 2002 06:29:41 +0000 (06:29 +0000)]
Remove floatformat_arm_ext.

22 years ago * include/mswsock.h (TP_*): Add new defines.
Danny Smith [Tue, 5 Mar 2002 22:40:30 +0000 (22:40 +0000)]
* include/mswsock.h (TP_*): Add new defines.
(TRANSMIT_PACKETS_ELEMENT): Define new structure.
(WSAMSG): Likewise.
(WSACMSGHDR): Likewise.
(DisconnectEx): Add new prototype.
(WSARecvMsg): Likewise.
(WSA_CMSG_*) Add empty macros, guarded by #if 0.

22 years ago* errno.cc: Change EPERM associated text to "Operation not permitted"
Christopher Faylor [Tue, 5 Mar 2002 18:11:20 +0000 (18:11 +0000)]
* errno.cc: Change EPERM associated text to "Operation not permitted"
throughout.

22 years agoUpdate copyright.
Christopher Faylor [Tue, 5 Mar 2002 18:03:32 +0000 (18:03 +0000)]
Update copyright.

22 years ago* fhandler_socket.cc (fhandler_socket::close): Respond to signals while
Christopher Faylor [Tue, 5 Mar 2002 18:02:53 +0000 (18:02 +0000)]
* fhandler_socket.cc (fhandler_socket::close): Respond to signals while
looping, waiting for socket to close.  Superstitiously clear last error when
WSAEWOULDBLOCK.

22 years ago2002-03-05 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Tue, 5 Mar 2002 12:58:24 +0000 (12:58 +0000)]
2002-03-05  Robert Collins  <rbtcollins@hotmail.com>

        * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
        Always init - until static members work correctly.
        * shm.cc (shmget): Initialize the security descriptor - thanks Corinna!
        * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem
        control constants.

22 years ago * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro.
Corinna Vinschen [Tue, 5 Mar 2002 08:15:28 +0000 (08:15 +0000)]
* include/sys/termios.h: Define _POSIX_VDISABLE.  Define CCEQ macro.
* fhandler_termios.cc: Include <sys/termios.h>.
(line_edit): Recognize disabled c_cc[] chars.  Ignore VDISCARD when
not in ICANON mode.

22 years ago * pdp11.h: Add format codes for float instruction formats.
Alan Modra [Tue, 5 Mar 2002 03:09:01 +0000 (03:09 +0000)]
* pdp11.h: Add format codes for float instruction formats.

22 years agobump copyright
Christopher Faylor [Tue, 5 Mar 2002 02:23:39 +0000 (02:23 +0000)]
bump copyright

22 years ago * syscalls.cc (truncate64): Use ftruncate64 directly to not lose
Corinna Vinschen [Mon, 4 Mar 2002 16:47:41 +0000 (16:47 +0000)]
* syscalls.cc (truncate64): Use ftruncate64 directly to not lose
upper 32 bits.

22 years ago2002-03-04 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Mon, 4 Mar 2002 08:45:40 +0000 (08:45 +0000)]
2002-03-04  Robert Collins  <rbtcollins@hotmail.com>

        * cygserver_shm.cc (delete_shmnode): New function.
        (client_request_shm::serve): Use it.

22 years ago2002-03-04 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Mon, 4 Mar 2002 08:12:53 +0000 (08:12 +0000)]
2002-03-04  Robert Collins  <rbtcollins@hotmail.com>

        * cygserver_shm.cc (client_request_shm::serve): Implement SHM_DETACH.
        * shm.cc (shmdt): Implement.

22 years ago2002-03-04 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Mon, 4 Mar 2002 07:22:08 +0000 (07:22 +0000)]
2002-03-04  Robert Collins  <rbtcollins@hotmail.com>

        * cygserver_shm.cc: Run indent.
        (deleted_head): New global for storing shm id's pending deletion.
        (client_request_shm::serve): Return ENOSYS for invalid request types.
        Implement SHM_DEL - delete a shm id.
        * cygserver_shm.h (SHM_DEL): New type value.
        * shm.cc (delete_inprocess_shmds): New function, does what it's name implies.
        (shmctl): Implement shm_rmid control type.

22 years ago2002-03-04 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 3 Mar 2002 21:46:38 +0000 (21:46 +0000)]
2002-03-04  Robert Collins  <rbtcollins@hotmail.com>

        * Makefile.in (install): Remove install-bin to allow make install to work.

22 years ago2002-03-03 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 3 Mar 2002 12:52:59 +0000 (12:52 +0000)]
2002-03-03  Robert Collins  <rbtcollins@hotmail.com>

        * shm.cc (shmat): Prevent a compile error.
        (shmdt): Set errno as this function is incomplete.

22 years agofix reg key typo "Red Hat, Inc." -> "Cygnus Solutions"
David Starks-Browning [Sun, 3 Mar 2002 11:44:46 +0000 (11:44 +0000)]
fix reg key typo "Red Hat, Inc." -> "Cygnus Solutions"

22 years agoadd details about missing cygintl.dll, cygreadline5.dll, ...
David Starks-Browning [Sun, 3 Mar 2002 11:37:35 +0000 (11:37 +0000)]
add details about missing cygintl.dll, cygreadline5.dll, ...

22 years agoupdate bash+nt-emacs entry for Emacs 21.1 and JDE->JDEE.
David Starks-Browning [Sun, 3 Mar 2002 11:13:21 +0000 (11:13 +0000)]
update bash+nt-emacs entry for Emacs 21.1 and JDE->JDEE.

22 years ago"setup.exe" -> "Cygwin Setup" throughout. Other minor changes throughout.
David Starks-Browning [Sun, 3 Mar 2002 10:57:57 +0000 (10:57 +0000)]
"setup.exe" -> "Cygwin Setup" throughout.  Other minor changes throughout.

22 years ago * ChangeLog: Fix typo in last entry.
Danny Smith [Sat, 2 Mar 2002 10:49:56 +0000 (10:49 +0000)]
* ChangeLog: Fix typo in last entry.
* include/winsock2.h (IPPROTO_*): Add IPv6 defines.
* include/ws2tcpip.h: (IP_*): Add new defines.
(INET_ADDRSTRLEN, INET6_ADDRSTRLEN): Add defines.
(NI_*): Add getnameinfo constants and bitmasks.
(AI_*): Add getaddrinfo flags.
(EAI_*): Add getaddrinfo error codes.
(ip_mreq_source): Add new structure.
(ip_msfilter): Add new structure.
(IP_MSFILTER_SIZE): Add new macro.
(in_pktinfo): Add new structure.
Add preliminary IPv6 support.
(in6_addr): Add new structure and some defines.
(sockaddr_in6): Add new structure.
(in6addr_any, in6addr_loopback): Declare extern structures.
(IN6ADDR_ANY_INIT,IN6ADDR_LOOPBACK_INIT): Add
initialization macros for above.
(IN6_ARE_ADDR_EQUAL): Define macro.
(IN6_IS_ADDR_*): Define address testing macros.
(socklen_t) Add new typedef.
(ipv6_mreq): Add new structure.
(in6_pktinfo): Same.
(addrinfo): Same.
(freeaddrinfo):Add new prototype.
(getaddrinfo): Same.
(gai_strerror[AW]): Same.
(getnameinfo): Same.
(sockaddr_in6_old): Add structure.
(sockaddr_gen): Add union definition.
(INTERFACE_INFO): Use sockaddr_gen as members.
(INTERFACE_INFO_OLD): Add comment on workaround for problems
with INTERFACE_INFO on NT4 prior to sp4.
.

22 years ago* overview.sgml: Fix 'more more' typo.
Christopher Faylor [Fri, 1 Mar 2002 21:40:45 +0000 (21:40 +0000)]
* overview.sgml: Fix 'more more' typo.

22 years ago* configure.in (libstdcxx_flags): Don't add libstdc++-v3 flags for
Alexandre Oliva [Fri, 1 Mar 2002 00:52:59 +0000 (00:52 +0000)]
* configure.in (libstdcxx_flags): Don't add libstdc++-v3 flags for
libjava.
(CXX_FOR_TARGET): Add -shared-libgcc for libstdc++-v3 and libjava.

22 years ago* times.cc: Remove if 0'd code. Clean up slightly.
Christopher Faylor [Thu, 28 Feb 2002 19:36:11 +0000 (19:36 +0000)]
* times.cc: Remove if 0'd code.  Clean up slightly.

22 years ago* times.cc: Remove if 0'd code. Clean up slightly.
Christopher Faylor [Thu, 28 Feb 2002 19:06:42 +0000 (19:06 +0000)]
* times.cc: Remove if 0'd code.  Clean up slightly.

22 years ago2002-02-28 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Thu, 28 Feb 2002 14:30:38 +0000 (14:30 +0000)]
2002-02-28  Robert Collins  <rbtcollins@hotmail.com>

* Merged cygwin_daemon into head minus the new shm and ipc exports.

2002-02-28  Robert Collins  <rbtcollins@hotmail.com>

* fhandler_tty.cc (fhandler_tty_slave::open): More debugging.
(fhandler_tty_slave::read): Fix printf type for the handle.
* tty.cc (tty::common_init): Add a FIXME for security.

2002-01-29  Robert Collins  <rbtcollins@hotmail.com>

* Makefile.in (OBJS): Remove duplicate localtime.o.

2002-01-17  Robert Collins  <rbtcollins@hotmail.com>

* cygserver.cc (check_and_dup_handle): Consolidate the two variants for
simplicity.
Add Some basic debug output.
(client_request_attach_tty::serve): Use the new debug_printf for clarity.
Mark the duplicated handles as inheritable - fixup_after_fork() doesn't reopen
tty's.

2002-01-16  Robert Collins  <rbtcollins@hotmail.com>

* cygserver.cc (transport): Correct scope.
(client_request_attach_tty::serve): Add more debug information.
Fix erroneous use of transport instead of conn.
* cygserver_transport_pipes.cc (transport_layer_pipes::close): More debug.
(transport_layer_pipes::read): Ditto.
(transport_layer_pipes::write): Ditto.
(transport_layer_pipes::impersonate_client): Ditto.

Mon Oct  8  7:41:00 2001  Robert Collins <rbtcollins@hotmail.com>

* cygserver.cc (server_request::process): Rename client_request_shm_get to
client_request_shm.
* cygserver_process.cc (process_cache::add): Rename to add_task.
Use process_cleanup instead of process_request.
(process_cache::remove_process): New method.
(process::process): Initialize new members.
(process::~process): New member.
(process::cleanup): New method.
(process::add_cleanup_routine): New method.
(process_request::process): Rename to process_cleanup.
Call the process object's cleanup method and then delete it.
(process_process_param::request_loop): Remove the signalling process.
* cygserver_shm.cc: Globally rename client_request_shm_get to client_request_shm.
(client_request_shm_get::serve): Handle attach request counting.
* cygserver_shm.h: Globally rename client_request_shm_get to client_request_shm.
(class shm_cleanup): New class.
* shm.cc: Globally rename client_request_shm_get to client_request_shm.
(client_request_shm::client_request_shm): New constructor for attach requests.
(shmat): Use it.
* include/cygwin/cygserver_process.h (class process_request): Rename to
process_cleanup.
(class cleanup_routine): New class.
(class process): New members and methods to allow calling back when the process
terminates.

Thu Oct  4 14:12:00 2001  Robert Collins <rbtcollins@hotmail.com>
* cygserver.cc (request_loop): Make static.
(main): Use new cache constructor syntax.
Start cache worker threads.
Cleanup the cache at shutdown.
* cygserver_process.cc: Run indent.
(process_cache::process_cache): Add a trigger to use when adding a process.
(process_cache::process): Move process_entry to process.
Insert at the end of the list.
Trigger the request loop when new process's inserted.
(process_cache::process_requests): Do it.
(process_cache::add): New method.
(process_cache::handle_snapshot): New method.
(process::process): Merge in the process_entry fields.
(process::handle): Make a stub function.
(process::exit_code): New method.
(process_request::process): New method.
(process_process_param::request_loop): New method.
* cygserver_shm.cc: New header dependency - threaded_queue.h.
* threaded_queue.cc (threaded_queue::cleanup): Clearer messages.
(queue_process_param::stop): Short spinlock on interruptible threads.
* threaded_queue.h (class threaded_queue): New constructor.
* include/cygwin/cygserver_process.h (process_request): New class.
(process_entry): Remove.
(process): Merge in process_entry.
(process_cache): Inherit from threaded_queue.

Tue Oct  2 23:24:00 2001  Robert Collins <rbtcollins@hotmail.com>

* cygserver.cc (class server_process_param): Use new constructor syntax.
* cygserver_process.cc (process_cache::~process_cache): New function.
* threaded_queue.cc: Define condition debug_printf.
Run indent.
(threaded_queue::cleanup): Move queue_process_param guts to a method.
(threaded_queue::process_requests): Ditto.
(queue_process_param::queue_process_param): New method.
(queue_process_param::~queue_process_param): Ditto.
(queue_process_param::start): Ditto.
(queue_process_param::stop): Ditto.
* threaded_queue.h (class queue_process_param): Add support for
interruptible request loops.
* cygwin/include/cygwin/cygserver_process.h (class process_cache): Add
destructor.

Tue Oct  2 23:24:00 2001  Robert Collins <rbtcollins@hotmail.com>

* cygserver_client.cc: New flag allow_daemon to disable the daemon completely.
(cygserver_request): Check it.
(cygserver_init): Ditto.
* environ.cc (parse_thing): Add (no)daemon option.

Tue Oct  2 23:00:00 2001  Robert Collins <rbtcollins@hotmail.com>

* shm.cc: Update to handle include changes from HEAD.

Tue Oct  2 16:06:00 2001  Robert Collins <rbtcollins@hotmail.com>

* Makefile.in: Remove cygserver_shm.o from cygwin1.dll.
Rename cygserver_shm_outside.o to cygserver_shm.o.
* cygserver.cc (server_request::process): Use the new client_request
constructor.
* cygserver_client.cc: Remove the #ifdef's stubs for the server method
within cygwin.
(client_request_attach_tty::client_request_attach_tty): Use the new
client_request constructor.
(client_request_shutdown::client_request_shutdown): Ditto.
(client_request::client_request): Ditto.
* cygserver_shm.cc (client_request_shm_get::serve): Remove the
#ifdef'd stub for in-cygwin builds.
(client_request_shm_get::client_request_shm_get): Use the new
client_request constructor, and remove the in-cygwin variants.
* cygserver_shm.h (class client_request_shm_get): #ifndef test the
serve method - it's only used in cygserver.
* shm.cc (client_request_shm_get::client_request_shm_get): New function.
* include/cygwin/cygserver.h (request_header): New constructor.
(class client_request): Use it.
New constructor accepting the header size.
#ifndef test the server method - it's only used within cygserver.
(client_request_get_version): #ifdef test the server method.
(client_request_shutdown): Ditto.
(client_request_attach_tty): Ditto.

Tue Oct  2  9:57:00 2001  Robert Collins <rbtcollins@hotmail.com>

* Makefile.in: add threaded_queue.o to cygserver.exe.
* cygserver.cc: Include threaded_queue.h
(class server_request): Inherit from queue_request.
(class server_process_param): Inherit from queue_process_param.
(class server_request_queue): Inherit from threaded_queue.
(request_loop): Adjust for new types.
(server_request_queue::process_requests): Remove guts to
threaded_queue::process_requests.
(server_request::server_request): Adjust for new types.
(worker_function): Delete.
(server_request_queue::create_workers): Delete.
(server_request_queue::cleanup): Delete.
(server_request_queue::add): Move guts to threaded_queue::add.
* threaded_queue.cc: New file.
* threaded_queue.h: New file.

Mon Oct  1 12:38:00 2001  Robert Collins <rbtcollins@hotmail.com>

* cygserver.cc (client_request::serve): New function.
* cygserver_process.cc: Inlude <pthread.h> for pthread_once.
(process_cache::process_cache): Initialise a crtiical section for write access.
(process_cache::process): Use the critical section. Also add missing entries to
the cache.
(do_process_init): New function to initalise class process static variables.
(process::process): Ensure that the process access critical section is
initialised.
(process::handle): Close the handle of old process's when they have terminated
and we are returning the handle for a process with the same pid.
* cygserver_shm.cc: Run indent.
Include cygserver_process.h to allow process cache functionality.
(client_request_shm_get::serve): New parameter for process cache support.
Use the process cache, not OpenProcess to get a handle to the originating process.
Fix a handle leak with token_handle.
* cygserver_shm.h (class client_request_shm_get): Update ::serve for process
cache support.
* cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG.
* include/cygwin/cygserver.h: Do not implement client_request::serve in the
header.
* include/cygwin/cygserver_process.h (class process_cache): Add a write access
critical section to prevent races when requests from a  multithreaded
application arrive.

Sun Sep 30 23:41:00 2001  Robert Collins <rbtcollins@hotmail.com>

* Makefile.in: Add cygserver_process.o to cygserver.exe.
* cygserver.cc: Include signal.h and cygwin_version.h.
Define debug_printf as a macro.
Define DEBUG to a value.
(client_request_attach_tty::serve): Add beginning of process cache support.
Change from #ifdef DEBUG to work with new DEBUG style.
(client_request_get_version::serve): Add beginning of process cache support.
(class server_request): New prototype for support of process cache.
(class queue_process_param): New class to allow request loop threading.
(class server_request_queue): Add beginning of process cache support.
Allow request loop threading.
(request_loop): Thread function for request loops.
(server_request_queue::process_requests): Initiator for threaded request loops.
(client_request_shutdown::serve): Add beginning of process cache support.
(server_request::server_request): Ditto.
(server_request::process): Use debug_printf. Add beginning of process cache
support.
(server_request_queue::cleanup): Kill off any request loop threads.
(server_request_queue::add): Add beginning of process cache support.
(handle_signal): Trigger a shutdown.
(main): Print out some useful info at startup - version, date time.
Add process cache support.
Spawn a separate thread for the transport request loop, thus allowing concurrent
support for multiple transports.
* cygserver_client.cc (client_request_get_version::serve): Add process cache
support.
(client_request_attach_tty::serve): Add process cache support.
(client_request_shutdown::serve): Add process cache support.
* cygsserver_process.cc: New file with the process cache support.
* cygserver_shm.cc: Redefine debug_printf to allow conditional output.
* cygwin.din: Export shmdt().
* shm.cc: Run indent.
Update FIXME's.
(shmdt): New function.
* include/cygwin/cygserver.h (class client_request): Add process cache support.
(class client_request_get_version): Ditto.
(class client_request_shutdown): Ditto.
(class client_request_attach_tty): Ditto.
* include/cygwin/cygserver_process.h: New header for process cache support.

Sun Sep 30  8:52:00 2001  Robert Collins <rbtcollins@hotmail.com>

* include/cygwin/cygserver_transport.h: Add copyright header.
* include/cygwin/cygserver_transport_pipes.h: Ditto.
* include/cygwin/cygserver_transport_sockets.h: Ditto.

Sat Sep 29 20:40:00 2001  Robert Collins <rbtcollins@hotmail.com>

* Makefile.in: Add cygserver_transport_sockets.o to DLL_OFILES.
Add cygserver_transport_sockets_outside.o to cygserver.exe.
* cygserver.cc: Include new include files.
* cygserver_client.cc: Ditto.
* cygserver_shm.h: No need to include <sys/socket.h> now.
* cygerver_transport.cc: Include new include files.
(transport_layer_base::transport_layer_base): Strip back to a stub.
(transport_layer_base::listen): Ditto.
(transport_layer_base::accept): Ditto.
(transport_layer_base::close): Ditto.
(transport_layer_base::read): Ditto.
(transport_layer_base::write): Ditto.
(transport_layer_base::connect): Ditto.
* cygserver_transport_pipes.cc: Include new header
"cygwin/cygserver_transport_pipes.h".
* cygserver_transport_sockets.cc: New file.
* dcrt0.cc: No need to include <sys/socket.h> now.
* fhandler_tty.cc: Ditto.
* tty.cc: Ditto.
* include/cygwin/cygserver_transport.h: Strip the base class to a stub.
Remove the cygserver_transport_pipes class.
* include/cygwin/cygserver_transport_pipes.h: New file.
* include/cygwin/cygserver_transport_sockets.h: New file.

Tue Sep 25 16:22:00 2001  Robert Collins <rbtcollins@hotmail.com>

* autoload.cc: Add dynamic load statement for 'ImpersonateNamedPipeClient'.
* Makefile.in: Add new object files, and build instructions for cygserver.exe.
* cygwin.din: Export ftok, shmat, shmctl and shmget.
* dcrt0.cc: Additional includes for cygserver support.
(dll_crt0_1): Initialise the cygserver client.
* fhandler.h (fhandler_tty): New method cygserver_attach_tty.
* fhandler_tty.cc: Additional includes for cygserver support.
(fhandler_tty_slave::open): Attempt to use the cygserver when obtaining
handles from the parent process. On failure or 9x use the current method.
(fhandler_tty_slave::cygserver_attach_tty): New function.
* fork.cc (fork_child): Fixup shm memory mapped areas.
* pinfo.h: Declare fixup_shms_after_fork().
* security.h: Declare alloc_sd().
* tty.cc: Additonal includes to support cygserver.
(tty::common_init): Don't allow others to open us if the cygserver is running.
* winsup.h: Declare cygserver_running.
* cygserver.cc: New file.
* cygserver_client.cc: New file.
* cygserver_shm.cc: New file.
* cygserver_shm.h: New file.
* cygserver_transport.cc: New file.
* cygserver_transport_pipes.cc: New file.
* ipc.cc: New file.
* shm.cc: New file.
* include/cygwin/cygserver.h: New file.
* include/cygwin/cygserver_transport.h: New file.
* include/sys/ipc.h: New file.
* include/sys/shm.h: New file.

2002-02-28  Robert Collins  <rbtcollins@hotmail.com>

* thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1.
(__sem_wait): Ditto.
(__sem_trywait): Ditto.

22 years ago2002-02-28 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Thu, 28 Feb 2002 13:50:41 +0000 (13:50 +0000)]
2002-02-28  Robert Collins  <rbtcollins@hotmail.com>

        * thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1.
        (__sem_wait): Ditto.
        (__sem_trywait): Ditto.

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