]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
23 years ago * uinfo.cc (internal_getlogin): Formatting change.
Corinna Vinschen [Mon, 30 Apr 2001 18:27:24 +0000 (18:27 +0000)]
    * uinfo.cc (internal_getlogin): Formatting change.

23 years ago * grp.cc: Eliminate MAX_DOMAIN_NAME define.
Corinna Vinschen [Mon, 30 Apr 2001 18:21:48 +0000 (18:21 +0000)]
    * grp.cc: Eliminate MAX_DOMAIN_NAME define.
        (read_etc_group): Substitute MAX_DOMAIN_NAME by
        INTERNET_MAX_HOST_NAME_LENGTH.
        * passwd.cc (parse_pwd): Don't force pw_name to be lower case.
        * sec_helper.cc: Substitute MAX_USER_NAME by UNLEN,
        MAX_COMPUTERNAME_LENGTH by INTERNET_MAX_HOST_NAME_LENGTH throughout.
        (lookup_name): Slight cleanup.
        * security.cc (alloc_sd): Substitute MAX_USER_NAME by UNLEN.
        * security.h: Define DEFAULT_UID as DOMAIN_USER_RID_ADMIN and
        DEFAULT_GID as DOMAIN_ALIAS_RID_ADMINS.
        * shared.cc (memory_init): Substitute MAX_USER_NAME by UNLEN.
        * thread.h: Ditto.
        * uinfo.cc (internal_getlogin): Substitute MAX_USER_NAME by UNLEN.
        Substitute MAX_COMPUTERNAME_LENGTH and MAX_HOST_NAME by
        INTERNET_MAX_HOST_NAME_LENGTH.
        * winsup.h: Include lmcons.h. Eliminate MAX_USER_NAME and
        MAX_HOST_NAME. Move DEFAULT_UID and DEFAULT_GID to security.h.

23 years ago* path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS
Christopher Faylor [Mon, 30 Apr 2001 16:52:53 +0000 (16:52 +0000)]
* path.cc (path_conv::check): Don't use path_flags when converting to MS-DOS
syntax unless parsing tail of path component.  Stop parsing path when we reach
the 'root' of the path.  Correctly copy tail to path component.

23 years ago* exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.
Christopher Faylor [Mon, 30 Apr 2001 03:09:19 +0000 (03:09 +0000)]
* exceptions.cc (INIT_EXCEPTION_HANDLER): Eliminate.
(init_exceptions): Just use init_exception_handler.
(open_stackdumpfile): New function.
(stack_info::first_time): Eliminate.
(stack_info::init): Set up fields to avoid "first_time" consideration.
(stack_info::walk): Remove "first_time" consideration.
(stackdump): Change arguments to accept initial frame pointer and open stack
file flag.
(stack): Eliminate.
(cygwin_stackdump): Use stackdump() rather than stack().
(try_to_debug): Remove all synchronization logic.  Just keep looping in
exception handler until debugger notices us.  Return 1 if successfully started
debugger.
(handle_exceptions): Just return if we know that we're debugging.  Reorganize
to avoid creating a stackdump file if we are starting a debugger.  Return from
exception handler if debugger started successfully.
(sig_handle): Create a stackdump only if debugger wasn't started.
* winsup.h (try_to_debug): Add an argument.

23 years ago* path.cc (symlink_info::check): Remove extra arguments, move functionality
Christopher Faylor [Mon, 30 Apr 2001 01:46:31 +0000 (01:46 +0000)]
* path.cc (symlink_info::check): Remove extra arguments, move functionality
back to path_conv::check.  Clear symlink bit from pflags argument before
detecting if this is a symlink.
(path_conv::check): Convert posix path here instead of symlink_info::check.
Only grab volflags when using ntsec.
(symlink_info::check_case): Just replace appropriate part of input path.

23 years agominor formatting changes.
Christopher Faylor [Sun, 29 Apr 2001 02:54:36 +0000 (02:54 +0000)]
minor formatting changes.

23 years ago* passwd.cc (ttymnam): New function.
Christopher Faylor [Sun, 29 Apr 2001 02:32:18 +0000 (02:32 +0000)]
* passwd.cc (ttymnam): New function.
(main): Use ttynam() to report name of tty.

23 years agoThroughout, change 'tty_attached' to 'real_tty_attached', for clarity.
Christopher Faylor [Sat, 28 Apr 2001 23:48:28 +0000 (23:48 +0000)]
Throughout, change 'tty_attached' to 'real_tty_attached', for clarity.
Throughout, change 'OutputStopped' to 'output_stopped', for consistency.
* dtable.cc (stdio_init): Set controlling tty if not set by stdio opens.
* exceptions.cc (ctrl_c_handler): Avoid special pgid checking if no tty is
associated with the process.
(Suggested by Tim Baker <dbaker@direct.ca>)
* external.cc (fillout_pinfo): Return actual tty number for ctty.
* fhandler_console.cc (get_tty_stuff): Set ctty when shared memory is
allocated.  Accept flags input from open().
(set_console_ctty): New function.
(fhandler_console::open): Pass flags to get_tty_stuff and rely on this function
to set the ctty, if appropriate.
* fhandler_termios.cc (fhandler_termios::set_ctty): Move to tty_min class.
* fhandler_tty.cc (fhandler_tty_slave::open): Use tc field to access
set_ctty().
* tty.h (TTY_CONSOLE): Move to include/sys/cygwin.h.
(tty_min): Add set_ctty class here.
* include/sys/cygwin.h (TTY_CONSOLE): New home here.
* path.cc (symlink_info): Make contents an actual buffer.  Pass more flags to
case_check.
(path_conv::check): Reorganize to do parsing based on posix path rather than
native path.
(symlink_info::check): Expect posix path as input.  Translate to native path
here.  Accept path_conv flags.  Stop parsing if not a symlink regardless of
whether previous path was a symlink.

23 years ago2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Apr 2001 21:59:44 +0000 (21:59 +0000)]
2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): Initialize new_exp local var.

23 years ago2001-04-27 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 27 Apr 2001 20:43:42 +0000 (20:43 +0000)]
2001-04-27  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdlib.h: Add prototype for _strtod_r.

23 years ago* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
Christopher Faylor [Fri, 27 Apr 2001 18:50:59 +0000 (18:50 +0000)]
* thread.cc (thread_init_wrapper): Use _REENT_INIT to initialize the reent
structure of newlib.
* sigproc.h (sig_send): Add exception parameter to sig_send.
* sigproc.cc (sig_send): Ditto.  Use it when setting frame info.
* exceptions.cc (handle_exceptions): Use exception flag when calling sig_send.

23 years agoAdd openRISC support in opcodes
Nick Clifton [Fri, 27 Apr 2001 13:33:26 +0000 (13:33 +0000)]
Add openRISC support in opcodes

23 years ago * winsup.api/mmaptest04.c: Take care for binmode explicitely.
Corinna Vinschen [Fri, 27 Apr 2001 10:46:49 +0000 (10:46 +0000)]
    * winsup.api/mmaptest04.c: Take care for binmode explicitely.

23 years ago* tty.cc (tty::make_pipes): Set to_slave pipe mode to nonblocking.
Egor Duda [Fri, 27 Apr 2001 06:27:28 +0000 (06:27 +0000)]
* tty.cc (tty::make_pipes): Set to_slave pipe mode to nonblocking.
* fhandler_tty.cc (fhandler_pty_master::accept_input): If pipe buffer
is full, give slave a chance to read data.

23 years ago * security.cc (alloc_sd): Add unrelated ACCESS_ALLOWED_ACE behind
Corinna Vinschen [Thu, 26 Apr 2001 09:21:33 +0000 (09:21 +0000)]
    * security.cc (alloc_sd): Add unrelated ACCESS_ALLOWED_ACE behind
        the `everyone' ACE.

23 years ago* configure.in (noconfigdirs): Don't reset it from scratch in the
Alexandre Oliva [Thu, 26 Apr 2001 05:42:15 +0000 (05:42 +0000)]
* configure.in (noconfigdirs): Don't reset it from scratch in the
target case; only append to it.

23 years ago* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
Alexandre Oliva [Thu, 26 Apr 2001 05:32:29 +0000 (05:32 +0000)]
* configure.in (noconfigdirs) [hppa*-*-*, mips*-*-irix6*,
sparc-*-solaris2.8]: Disable ${libgcj}.

23 years ago* configure.in (libgcj_saved): Copy from $libgcj.
Alexandre Oliva [Wed, 25 Apr 2001 21:41:21 +0000 (21:41 +0000)]
* configure.in (libgcj_saved): Copy from $libgcj.
(libgcj): Zero out if --enable-libgcj; add to noconfigdirs is
--disable-libgcj.

23 years ago* sigproc.h [sigthread]: Add exception field.
Christopher Faylor [Wed, 25 Apr 2001 19:11:37 +0000 (19:11 +0000)]
* sigproc.h [sigthread]: Add exception field.
[sigframe::~sigframe]: Clear exception field.
[sigframe::set]: Set exception field from caller.
* sigproc.cc (sig_send): Set exception field when frame pointer is passed in.
* exceptions.cc (interrupt_on_return): Always treat exception as interruptible.

23 years ago* cygwin.din: Export asctime_r, ctime_r, gmtime_r, localtime_r
Egor Duda [Wed, 25 Apr 2001 16:18:43 +0000 (16:18 +0000)]
* cygwin.din: Export asctime_r, ctime_r, gmtime_r, localtime_r
* include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 39

23 years ago* include/cygwin/version.h: Bump minor version number.
Christopher Faylor [Wed, 25 Apr 2001 14:59:49 +0000 (14:59 +0000)]
* include/cygwin/version.h: Bump minor version number.
* childinfo.h: Bump child structure magic number.

23 years ago * uinfo.cc (internal_getlogin): Return pointer to struct passwd.
Corinna Vinschen [Wed, 25 Apr 2001 12:54:21 +0000 (12:54 +0000)]
    * uinfo.cc (internal_getlogin): Return pointer to struct passwd.
        (uinfo_init): Accommodate the above change.
        * syscalls.cc (seteuid): Ditto.

23 years ago * autoload.cc: Add LoadDLLfunc statements for SetTokenInformation@16.
Corinna Vinschen [Wed, 25 Apr 2001 09:43:25 +0000 (09:43 +0000)]
    * autoload.cc: Add LoadDLLfunc statements for SetTokenInformation@16.
        * cygheap.cc: Include security.h.
        * grp.cc (internal_getgrent): New function.
        (getgroups): Rearranged using `internal_getgrent' and the new
        `cygsid' class.
        * passwd.cc (internal_getpwent): New function.
        * sec_acl.cc: Use new `cygsid' class throughout.
        (acl_access): Use `internal_getgrent' instead of `getgrent'.
        * sec_helper.cc: Use new `cygsid' class throughout.
        (get_id_from_sid): Use `internal_getgrent' instead of `getgrent'.
        Use `internal_getpwent' instead of `getpwent'.
        * security.cc: Use new `cygsid' class throughout.
        * security.h: Move `MAX_SID_LEN' from winsup.h to here.
        Add extern declarations for `internal_getgrent' and `internal_getpwent'.
        (class cygsid): New class.
        * shared.cc (sec_user): Use new `cygsid' class.
        * syscalls.cc (seteuid): Try to set owner to user and primary group to
        current group in impersonation token before performing impersonation.
        (setegid): Try to set primary group in process token to the new group
        if ntsec is on.
        * uinfo.cc (internal_getlogin): Use new `cygsid' class.
        Try to set owner to user and primary group to current group in process
        token if the process has been started from a non cygwin process.
        (uinfo_init): Set primary group only if the process has been started
        from a non cygwin process.
        * winsup.h: Move define for `MAX_SID_LEN' to security.h.

23 years ago * fhandler_dsp.cc: Improved handling of 8 bit playback modes.
Corinna Vinschen [Wed, 25 Apr 2001 07:26:54 +0000 (07:26 +0000)]
    * fhandler_dsp.cc: Improved handling of 8 bit playback modes.
        Put in mock support for SNDCTL_DSP_SETFRAGMENT.

23 years ago* lib/Makefile.in: Install libraries in /usr/lib/w32api when building for
Christopher Faylor [Wed, 25 Apr 2001 03:51:06 +0000 (03:51 +0000)]
* lib/Makefile.in: Install libraries in /usr/lib/w32api when building for
cygwin.

23 years ago2001-04-24 Charles Wilson <cwilson@ece.gatech.edu
Jeff Johnston [Tue, 24 Apr 2001 22:09:21 +0000 (22:09 +0000)]
2001-04-24  Charles Wilson  <cwilson@ece.gatech.edu

        * libc/stdio/vprintf.c (vprintf): fix signature to use _DEFUN
        * libc/stdio/vprintf.c (_vprintf_r): new function
        * libc/stdio/vsnprintf.c (vsnprintf): fix signature to use _DEFUN
        * libc/stdio/vsnprintf.c (_vsnprintf_r): fix signature to use
        _DEFUN, and call _vfprintf_r, not vfprintf.
        * libc/stdio/vsprintf.c (vsprintf.c): fix signature to use _DEFUN
        * libc/stdio/vsprintf.c (_vsprintf_r): fix signature to use
        _DEFUN, and call _vfprintf_r, not vfprintf.

23 years ago * passwd.cc (getpwnam_r): Add pw_passwd handling as well.
Corinna Vinschen [Tue, 24 Apr 2001 21:52:57 +0000 (21:52 +0000)]
    * passwd.cc (getpwnam_r): Add pw_passwd handling as well.
        (getpwuid_r): Ditto.

23 years ago * passwd.cc (getpwnam_r): Use correct offsets into buffer.
Corinna Vinschen [Tue, 24 Apr 2001 21:45:20 +0000 (21:45 +0000)]
    * passwd.cc (getpwnam_r): Use correct offsets into buffer.
        Copy pw_gecos field as well.
        (getpwuid_r): Ditto.

23 years ago* include/winsock2.h: Protect one *more* newlib defines when compiling cygwin.
Christopher Faylor [Tue, 24 Apr 2001 20:20:01 +0000 (20:20 +0000)]
* include/winsock2.h: Protect one *more* newlib defines when compiling cygwin.

23 years ago* sparc.h: Fix typo.
DJ Delorie [Tue, 24 Apr 2001 18:32:27 +0000 (18:32 +0000)]
* sparc.h: Fix typo.

23 years ago* dlmalloc.c: New file. Port of Doug Lea's malloc
Egor Duda [Tue, 24 Apr 2001 15:25:31 +0000 (15:25 +0000)]
* dlmalloc.c: New file. Port of Doug Lea's malloc
* dlmalloc.h: Ditto.
* Makefile.in: Add support for MALLOC_DEBUG
* config.h.in: Ditto.
* winsup.h: Ditto.
* configure.in: Add --enable-malloc-debugging option.
* configure: Regenerate.
* debug.h: Include declarations for debugging malloc.
* tty.cc (grantpt): Fix definition.
(unlockpt): Ditto.

23 years agoAdd OpenRISC support
Nick Clifton [Tue, 24 Apr 2001 15:08:16 +0000 (15:08 +0000)]
Add OpenRISC support

23 years ago* include/winsock2.h: Protect some more newlib defines when compiling cygwin
Christopher Faylor [Tue, 24 Apr 2001 03:41:37 +0000 (03:41 +0000)]
* include/winsock2.h: Protect some more newlib defines when compiling cygwin

23 years agoRemove trailing underscore from fhandler_base and friends, throughout.
Christopher Faylor [Tue, 24 Apr 2001 02:07:58 +0000 (02:07 +0000)]
Remove trailing underscore from fhandler_base and friends, throughout.
* fhandler.h (fhandler_base::set_open_status): New method.  Stores original
open status.
(fhandler_base::get_open_status): New method.  Retrieves original open status.
(fhandler_base::reset_to_open_binmode): New method.
* fhandler.cc (fhandler_base::open): Save open status.
(fhandler_base::init): Ditto.
* fhandler_clipboard.cc (fhandler_clipboard::open): Ditto.
* fhandler_console.cc (fhandler_console::open): Ditto.
* fhandler_dsp.cc (fhandler_dsp::open): Ditto.
* fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_dev_random.cc (fhandler_dev_random::open): Ditto.
* fhandler_serial.cc (fhandler_serial::open): Ditto.
* fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto.
* fhandler_tty_master.cc (fhandler_tty_master::open): Ditto.
* fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto.
* syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open
state.
* fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when
converting from deciseconds to milliseconds.

23 years ago* fhandler.h (fhandler_base::clear_r_binary): New method.
Christopher Faylor [Mon, 23 Apr 2001 17:29:33 +0000 (17:29 +0000)]
* fhandler.h (fhandler_base::clear_r_binary): New method.
(fhandler_base::clear_w_binary): New method.
* syscalls.cc (setmode): Accept 0 as mode value.  Resets text/binary behavior
for fd to default.

23 years ago* include/winsock.h: Protect some more newlib defines when compiling cygwin.
Christopher Faylor [Mon, 23 Apr 2001 17:19:24 +0000 (17:19 +0000)]
* include/winsock.h: Protect some more newlib defines when compiling cygwin.

23 years ago* net.cc [errmap]: Add '0' condition.
Christopher Faylor [Mon, 23 Apr 2001 16:46:30 +0000 (16:46 +0000)]
* net.cc [errmap]: Add '0' condition.
(find_winsock_errno): Don't translate no error to EPERM.

23 years ago2001-04-23 Bo Thorsen <bo@suse.de>
Andreas Jaeger [Mon, 23 Apr 2001 08:00:14 +0000 (08:00 +0000)]
2001-04-23  Bo Thorsen  <bo@suse.de>

* x86-64.h: Add vtable support.

2001-04-23  Bo Thorsen  <bo@suse.de>

* elf64-x86-64.c: Add c++ vtable hack.
Small whitespace and comment changes.

23 years agospacing changes.
Christopher Faylor [Mon, 23 Apr 2001 02:56:19 +0000 (02:56 +0000)]
spacing changes.

23 years ago* include/cygwin/version.h: Bump Cygwin version and API version.
Christopher Faylor [Mon, 23 Apr 2001 00:48:23 +0000 (00:48 +0000)]
* include/cygwin/version.h: Bump Cygwin version and API version.

23 years agoMon Apr 23 9:27:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sun, 22 Apr 2001 23:59:15 +0000 (23:59 +0000)]
Mon Apr 23  9:27:00 2001  Robert Collins <rbtcollins@hotmail.com>

       * thread.cc (MTinterface::Init): Always initialise per process variables.

23 years ago* libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
Christopher Faylor [Sun, 22 Apr 2001 23:52:06 +0000 (23:52 +0000)]
* libc/include/sys/unistd.h [X_OK]: Use better protection against Cygwin X_OK
definitions in sys/file.h.

23 years ago* features.h: Reinstate as wrapper for sys/features.h.
Christopher Faylor [Sun, 22 Apr 2001 23:18:28 +0000 (23:18 +0000)]
* features.h: Reinstate as wrapper for sys/features.h.

23 years ago * security.cc (alloc_sd): Reformat comment.
Corinna Vinschen [Sun, 22 Apr 2001 22:12:12 +0000 (22:12 +0000)]
    * security.cc (alloc_sd): Reformat comment.
        * shared.cc: Drop function declarations already in security.h.

23 years ago* shortcut.c (check_shortcut): Close input file handle before returning.
Christopher Faylor [Sun, 22 Apr 2001 16:19:27 +0000 (16:19 +0000)]
* shortcut.c (check_shortcut): Close input file handle before returning.
* path.cc (check_sysfile): Ditto.
(symlink_info::check): Rely on opened file handle being closed by symlink
checking routines.  Set ext_tacked_on when .lnk is detected.

23 years ago* thread.cc (MTinterface::Init): Remove accidentally checked in code.
Christopher Faylor [Sat, 21 Apr 2001 23:26:14 +0000 (23:26 +0000)]
* thread.cc (MTinterface::Init): Remove accidentally checked in code.

23 years agoSun Apr 22 20:22:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 21 Apr 2001 14:23:47 +0000 (14:23 +0000)]
Sun Apr 22 20:22:00 2001  Robert Collins <rbtcollins@hotmail.com>

* passwd.cc (getpwuid): Check for thread cancellation.
(getpwuid_r): Ditto.
(getpwname): Ditto.
(getpwnam_r): Ditto.
* thread.h (pthread_mutex): New constructors for pshared operation.
(MTinterface): Associative array for pshared mutex's.
* thread.cc (MTinterface::Init): Initailize pshared mutex array.
(pthread_cond::BroadCast): Implementation notes.
(pthread_cond::TimedWait): Remove use of SignalObjectAndWait on non-NT systems.
(pthread_mutex::pthread_mutex(unsigned short)): New function.
(pthread_mutex::pthread_mutex (pthread_mutex_t *, pthread_mutexattr *)):New function.
(pthread_mutex::pthread_mutex(pthread_mutexattr *)): Fail on pshared mutex's.
(__pthread_mutex_getpshared): New function.
(__pthread_join): Check for thread cancellation.
(__pthread_cond_timedwait): Support pshared mutex's.
(__pthread_cond_wait): Ditto.
(__pthread_condattr_setpshared): Error on PROCESS_SHARED requests.
(__pthread_mutex_init): Support pshared mutex's.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutexattr_setpshared): Support PTHREAD_PROCESS_PSHARED requests.

23 years ago* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,
Christopher Faylor [Sat, 21 Apr 2001 03:22:47 +0000 (03:22 +0000)]
* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,
too.

23 years ago2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Sat, 21 Apr 2001 01:17:33 +0000 (01:17 +0000)]
2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>

        * acinclude.m4: Added --enable-malloc-debugging configure flag.
        * configure.host: For Cygwin specify -DMALLOC_PROVIDED if
        --enable-malloc-debugging selected.
        * aclocal.m4 configure: Regenerated.
          libm/aclocal.m4 libm/configure: Ditto.
        * libc/aclocal.m4 libc/configure: Ditto.
        * libc/machine/aclocal.m4 libc/machine/configure: Ditto.
        * libc/machine/*/aclocal.m4 libc/machine/*/configure: Ditto.
        * libc/sys/aclocal.m4 libc/sys/configure: Ditto.
        * libc/sys/*/aclocal.m4 libc/sys/*/configure: Ditto.
        * doc/aclocal.m4 doc/configure: Ditto.

23 years ago* cygwin.din: Add *scanf and *scan_r functions.
Christopher Faylor [Fri, 20 Apr 2001 23:38:43 +0000 (23:38 +0000)]
* cygwin.din: Add *scanf and *scan_r functions.

23 years ago2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 20 Apr 2001 22:50:51 +0000 (22:50 +0000)]
2001-04-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/include/stdio.h[!_REENT_ONLY]: Moved various functions together
        into one list.
        [!__STRICT_ANSI__]: Moved non-ANSI I/O functions in this list.
        (vfscanf, vscanf, vsscanf, _vfscanf_r, _vscanf_r, _vsscanf_r): New
        function prototypes.
        (_fscanf_r, _sscanf_r): Ditto.
        * libc/include/stdlib.h: Added _strtod_r prototype.
        * libc/stdio/Makefile.am: Add new v*scanf functions.
        * libc/stdio/Makefile.in: Regenerate.
        * libc/stdio/fscanf.c: Reorganized so HAVE_STDC only affects prototype
        and code is shared.  Added reentrant _fscanf_r which calls __svfscanf_r.        * libc/stdio/scanf.c: Changed to call __svfscanf_r.
        * libc/stdio/sscanf.c: Changed documentation to add reentrant routines.
        (sscanf): Changed to call __svfscanf_r with _REENT argument.
        (_sscanf_r): New routine.
        * libc/stdio/local.h: Removed __svfscanf prototype and replaced it
        with __svfscanf_r prototype.
        * libc/stdio/vfscanf.c (vfscanf, _vfscanf_r: New
        routines.
        (__svfscanf_r): Reentrant version of __svfscanf which takes reetrancy
        structure as argument as calls reentrant versions of helper functions
        (e.g. _strtol_r, _strtoul_r). Also replaced calls to atol and atof
        to _strtol_r and _strtod_r respectively.
        * libc/stdio/vfscanf.c: Also changed __svfscanf to call __svfscanf_r.
        * libc/stdlib/strtod.c (strtod): Changed to call _strtod_r with
        _REENT argument.
        * libc/stdio/vscanf.c: New file.
        * libc/stdio/vsscanf.c: Ditto.

23 years ago * security.cc (set_process_privileges): Swap out.
Corinna Vinschen [Fri, 20 Apr 2001 20:36:13 +0000 (20:36 +0000)]
    * security.cc (set_process_privileges): Swap out.
        * sec_helper.cc (set_process_privilege): Rename from
        `set_process_privileges'. Takes the privilege to enable or disable
        as parameter now.
        * security.h: Add prototype for `set_process_privileges'.

23 years ago* path.cc (path_conv::check): Always initialize member variables.
Christopher Faylor [Fri, 20 Apr 2001 16:40:04 +0000 (16:40 +0000)]
* path.cc (path_conv::check): Always initialize member variables.

23 years ago* include/sys/file.h: More cleanup for X_OK.
Christopher Faylor [Fri, 20 Apr 2001 16:36:17 +0000 (16:36 +0000)]
* include/sys/file.h: More cleanup for X_OK.

23 years ago* include/sys/file.h: Move X_OK protection earlier.
Christopher Faylor [Fri, 20 Apr 2001 15:50:03 +0000 (15:50 +0000)]
* include/sys/file.h: Move X_OK protection earlier.
* dtable.cc (dtable::vfork_child_fixup): Avoid closing already closed handles.

23 years ago * grp.cc (getgroups): Change so that SIDs get compared instead
Corinna Vinschen [Fri, 20 Apr 2001 14:30:22 +0000 (14:30 +0000)]
    * grp.cc (getgroups): Change so that SIDs get compared instead
        of strings to SIDs.

23 years ago * Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'.
Corinna Vinschen [Fri, 20 Apr 2001 13:02:32 +0000 (13:02 +0000)]
    * Makefile.in: Add object files `sec_helper.cc' and `sec_acl.cc'.
        * security.cc: Swap out several functions.
        * sec_acl.cc: New file. Move Sun compatibel ACL functions from
        `security.cc' to here.
        * sec_helper.cc: New file. Move security helper functions from
        `security.cc' to here.
        * security.h: Changed to accomodate the above changes.

        * grp.cc: Replace `group_in_memory_p' by `group_state'.
        Eliminate group_sem throughout.
        (enum grp_state): New enumeration type.
        (read_etc_group): Make race safe.
        * security.cc: Eliminate group_sem throughout.

23 years ago* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
Alexandre Oliva [Fri, 20 Apr 2001 09:28:05 +0000 (09:28 +0000)]
* ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
1.641.2.228.

23 years ago2001-04-19 Robert Collins <rbtcollins@hotmail.com>
Jeff Johnston [Thu, 19 Apr 2001 15:54:47 +0000 (15:54 +0000)]
2001-04-19  Robert Collins  <rbtcollins@hotmail.com>

        * include/time.h[__CYGWIN__]:  Define tzname to _tzname if not defined.
        Define daylight to _daylight if it is not defined
        Prepare a variable export of timezone based on timezonevariable.
        (Cannot be used with the timezone() function.)

23 years ago* dumper.cc (dumper::init_core_dump): Set architecture field in dump
Egor Duda [Thu, 19 Apr 2001 14:22:30 +0000 (14:22 +0000)]
* dumper.cc (dumper::init_core_dump): Set architecture field in dump
header.

23 years ago * winsup.api/mmaptest02.c: New test.
Corinna Vinschen [Thu, 19 Apr 2001 09:16:40 +0000 (09:16 +0000)]
    * winsup.api/mmaptest02.c: New test.
        * winsup.api/mmaptest03.c: Ditto.
        * winsup.api/mmaptest04.c: Ditto.

23 years ago * mmap.cc (mmap): Drop usage of the same memory area if the same
Corinna Vinschen [Thu, 19 Apr 2001 07:44:34 +0000 (07:44 +0000)]
    * mmap.cc (mmap): Drop usage of the same memory area if the same
        region of the same file is mapped twice.

23 years ago* Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate
Christopher Faylor [Thu, 19 Apr 2001 03:55:02 +0000 (03:55 +0000)]
* Makefile.in: Add -U_WIN32 to CFLAGS compile line to avoid inappropriate
Windows-isms.

23 years ago* configure.in: Add bz2lib.
Christopher Faylor [Wed, 18 Apr 2001 22:45:27 +0000 (22:45 +0000)]
* configure.in: Add bz2lib.

23 years agoThroughout, change fdtab references to cygheap->fdtab.
Christopher Faylor [Wed, 18 Apr 2001 21:10:15 +0000 (21:10 +0000)]
Throughout, change fdtab references to cygheap->fdtab.
* child_info.h (cygheap_exec_info): Eliminate special fdtab stuff.
* spawn.cc (spawn_guts): Ditto.
* cygheap.cc (cygheap_init): Initialize fdtab, if appropriate.
* cygheap.h (CYGHEAPSIZE): Include size of init_cygheap.
(_cmalloc_entry): Include fdtab here.
* dtable.h (dtable): Declare/define new methods.
* dtable.cc (dtable::vfork_child_fixup): New method.
(dtable::fixup_after_exec): Remove unneeded extra arguments.
* dcrt0.cc (dll_crt0_1): Ditto.
* environ.cc (getwinenv): Use case sensitive comparison.
(winenv): Make a copy of environment cache to avoid realloc problems when
duplicate environment variables exist in the environment.  (From Egor Duda)
* net.cc (cygwin_socket): Revert Apr 14 change.
* include/sys/file.h: Protect against previous X_OK definition.
* passwd.cc: Eliminate passwd_sem throughout.
* security.cc: Ditto.
* cygwin.din: Export New functions.
* passwd.cc (read_etc_passwd): Make race safe.
(getpwuid_r): New function.
(getpwnam_r): New function.

23 years ago*** empty log message ***
Christopher Faylor [Wed, 18 Apr 2001 20:00:34 +0000 (20:00 +0000)]
*** empty log message ***

23 years ago * grp.cc (getgroups): Avoid crash if passwd field if /etc/group is
Corinna Vinschen [Wed, 18 Apr 2001 14:52:07 +0000 (14:52 +0000)]
    * grp.cc (getgroups): Avoid crash if passwd field if /etc/group is
        empty.

23 years ago* path.h (path_conv::add_ext_from_sym): Declare.
Christopher Faylor [Tue, 17 Apr 2001 23:12:11 +0000 (23:12 +0000)]
* path.h (path_conv::add_ext_from_sym): Declare.
* path.cc (path_conv::add_ext_from_sym): Convert to pure inline method.

23 years ago2001-04-17 Stephen L. Moshier <moshier@moshier.ne.mediaone.net>
Jeff Johnston [Tue, 17 Apr 2001 17:13:00 +0000 (17:13 +0000)]
2001-04-17  Stephen L. Moshier  <moshier@moshier.ne.mediaone.net>

        * newlib/libm/math/ef_asin.c (pio2_hi, pio2_lo, pio4_hi):
         Correct the numerical values.

23 years ago * path.cc (windows_device_names): Add missing NULL element.
Corinna Vinschen [Tue, 17 Apr 2001 16:52:09 +0000 (16:52 +0000)]
    * path.cc (windows_device_names): Add missing NULL element.

23 years ago* path.cc (windows_device_names): Move dsp to proper location.
Christopher Faylor [Tue, 17 Apr 2001 16:16:27 +0000 (16:16 +0000)]
* path.cc (windows_device_names): Move dsp to proper location.

23 years ago * include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION
Earnie Boyd [Tue, 17 Apr 2001 12:58:06 +0000 (12:58 +0000)]
* include/windows.h: Define _ANONYMOUS_STRUCT and _ANONYMOUS_UNION
as __extenstion__ when appropriate.
* include/mmsystem.h: Mark anonymous structs and unions as
__extension__ to prevent compiler warning when invoked with
-pedantic
* include/oaidl.h: Ditto.
* include/objidl.h: Ditto.
* include/olectl.h: Ditto.
* include/prsht.h: Ditto.
* include/shlobj.h: Ditto.
* include/winbase.h: Ditto.
* include/winnt.h: Ditto.
* include/wtypes.h: Ditto.

23 years agoForgot the ChangeLog...
Corinna Vinschen [Tue, 17 Apr 2001 11:49:19 +0000 (11:49 +0000)]
Forgot the ChangeLog...

23 years ago * path.cc (path_conv::check): Set case_clash even if pcheck_case
Corinna Vinschen [Tue, 17 Apr 2001 11:47:37 +0000 (11:47 +0000)]
    * path.cc (path_conv::check): Set case_clash even if pcheck_case
        is set to PCHECK_ADJUST when a case clash is given for the last
        component in path.
        (symlink_info::case_check): Ditto.
        * syscalls.cc (_rename): Avoid overwriting an already existing file
        if a case clash is given even if pcheck_case is set to PCHECK_ADJUST.

23 years ago Add missing ChangeLog entry.
Corinna Vinschen [Tue, 17 Apr 2001 08:51:34 +0000 (08:51 +0000)]
Add missing ChangeLog entry.

23 years agoTurn NEWVFORK off.
Christopher Faylor [Tue, 17 Apr 2001 06:07:07 +0000 (06:07 +0000)]
Turn NEWVFORK off.

23 years ago* path.h (cwdstuff): Move class.
Christopher Faylor [Tue, 17 Apr 2001 03:52:08 +0000 (03:52 +0000)]
* path.h (cwdstuff): Move class.
* cygheap.h (cwdstuff): To here.
(init_cygheap): Add cwd field.
* child_info.h (cygheap_exec_info): Eliminate cwd stuff.
(child_info_spawn): Ditto.
* dcrt0.cc (dll_crt0_1): Remove cygcwd.fixup_after_exec call.  Convert cygcwd
reference to cygheap->cwd.
* path.cc: Ditto, throughout.
(cwdstuff::copy): Eliminate.
(cwdstuff::fixup_after_exec): Ditto.
* spawn.cc (spawn_guts): Eliminate call to cygcwd.copy.
* fhandler.h (FH_OSS_DSP): Move into "fast" device category.

23 years ago * mmap.cc: Move fh_paging_file from some functions to be
Corinna Vinschen [Mon, 16 Apr 2001 17:26:04 +0000 (17:26 +0000)]
    * mmap.cc: Move fh_paging_file from some functions to be
        a global static variable.
        (class mmap_record): Add `devtype_' member to remember
        the device type of the file. Add declaration for methods
        `get_device', `alloc_fh' and `free_fh'.
        (mmap_record::mmap_record): Initialize `devtype_' correctly.
        (mmap_record::alloc_fh): New method.
        (mmap_record::free_fh): Ditto.
        (munmap): Use new mmap_record::alloc_fh and mmap_record::free_fh
        methods to create a correct fhandler.
        (msync): Ditto.
        (fixup_mmaps_after_fork): Ditto.

23 years ago2001-04-15 Daniel Berlin <dan@cgsoftware.com>
Daniel Berlin [Mon, 16 Apr 2001 14:10:14 +0000 (14:10 +0000)]
2001-04-15  Daniel Berlin  <dan@cgsoftware.com>

* ternary.c: New file - Ternary search tree implementation.

2001-04-15  Daniel Berlin  <dan@cgsoftware.com>

* ternary.h: New file - Ternary search tree header.

23 years ago * grp.cc (getgroups): If `allow_ntsec' is set, use the process token
Corinna Vinschen [Mon, 16 Apr 2001 14:02:42 +0000 (14:02 +0000)]
    * grp.cc (getgroups): If `allow_ntsec' is set, use the process token
        information to evaluate the groups list.

23 years ago * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
Corinna Vinschen [Mon, 16 Apr 2001 13:19:27 +0000 (13:19 +0000)]
    * mkgroup.c: Add function pointers `netlocalgroupgetmembers' and
        `netgroupgetusers'.
        (load_netapi): Load function pointers `netlocalgroupgetmembers'
        and `netgroupgetusers'.
        (enum_local_users): New function.
        (enum_local_groups): Call `enum_local_users' for each group if
        `print_users' is set.
        (enum_users): New function.
        (enum_groups): Call `enum_users' for each group if `print_users' is set.
        (usage): Add usage text for `-u/--users'.
        (longopts): Add option `--users'.
        (opts): Add option character `u'.
        (main): Set `print_users' according to option `-u/--users'.
        Call `enum_local_groups' and `enum_groups' with additional parameter
        `print_users'.

23 years ago* features.h: Remove this file as it is now being supplied by newlib.
Christopher Faylor [Mon, 16 Apr 2001 04:08:05 +0000 (04:08 +0000)]
* features.h: Remove this file as it is now being supplied by newlib.

23 years ago* autoload.cc: Add winmm functions needed by fhandler_dsp.cc.
Christopher Faylor [Mon, 16 Apr 2001 03:27:16 +0000 (03:27 +0000)]
* autoload.cc: Add winmm functions needed by fhandler_dsp.cc.
* fhandler_dsp.cc: New file.  Implements OSS like /dev/dsp.
* include/sys/soundcard.h: New file.  User land includes for OSS /dev/dsp.
* fhandler.h: Add new class fhandler_dev_dsp and a FH_OSS_DSP definition.
* dtable.cc (dtable::build_fhandler): Allow creation of the /dev/dsp device.
* path.cc (windows_device_names): Add /dev/dsp into list of device names.
* Makefile.in (DLL_OFILES): Add fhandler_dsp.o.

23 years ago* mount.cc (longopts): Add help to options list.
Christopher Faylor [Mon, 16 Apr 2001 02:51:03 +0000 (02:51 +0000)]
* mount.cc (longopts): Add help to options list.
(opts): Add 'h' to options string.
* umount.cc (longopts): Add help to options list.
(opts): Add 'h' to options string and change 'R' to 'A'.

23 years ago* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.
Christopher Faylor [Sun, 15 Apr 2001 20:39:46 +0000 (20:39 +0000)]
* uname.c (uname): Default n in in86 to 6 if Windows returns > 6.

23 years agoPatch by Kazuhiro Fujieda <fujieda@jaist.ac.jp>:
Corinna Vinschen [Sun, 15 Apr 2001 14:09:33 +0000 (14:09 +0000)]
Patch by Kazuhiro Fujieda  <fujieda@jaist.ac.jp>:
        * mkgroup.c (enum_groups): Use RID + offset specified an additional
        argument as ID.
        (usage): Add description of -o option.
        (longopts, opts): Add specifications of -o/--id-offset option.
        (main): Add -o option. Invoke enum_groups with specified offset.
        * mkpasswd.c (enum_users): Just like mkgroup.c.
        (usage, longopts, opts): Ditto.
        (main): Add -o option. Invoke enum_users with specified offset
        only against domain accounts.

23 years ago * path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'.
Corinna Vinschen [Sun, 15 Apr 2001 14:00:45 +0000 (14:00 +0000)]
    * path.cc (add_ext_from_sym): Redefine to call `add_ext_from_sym_'.
        (add_ext_from_sym_): New inline function.

23 years ago* config.h.in: Turn on VFORK by default.
Christopher Faylor [Sat, 14 Apr 2001 23:24:07 +0000 (23:24 +0000)]
* config.h.in: Turn on VFORK by default.

23 years ago* net.cc (cygwin_socket): Set SO_LINGER to small value so closed UNIX domain
Christopher Faylor [Sat, 14 Apr 2001 22:11:03 +0000 (22:11 +0000)]
* net.cc (cygwin_socket): Set SO_LINGER to small value so closed UNIX domain
sockets will not stay around.
* select.cc (socket_cleanup): Set SO_LINGER to small value so closed dummy
sockets do not stay around.  Use correct value for second argument to shutdown.

23 years agoSat Apr 14 17:04:00 2001 Robert Collins <rbtcollins@hotmail.com>
Robert Collins [Sat, 14 Apr 2001 07:06:02 +0000 (07:06 +0000)]
Sat Apr 14 17:04:00 2001  Robert Collins <rbtcollins@hotmail.com>

* thread.h (MTinterface): Add threadcount.
* thread.cc (MTinterface::Init): Set threadcount to 1.
(__pthread_create): Increment threadcount.
(__pthread_exit): Decrement threadcount and call exit() from the last thread.

23 years ago* libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).
Christopher Faylor [Fri, 13 Apr 2001 15:37:47 +0000 (15:37 +0000)]
* libc/include/sys/unistd.h: Add pthread_atfork (Cygwin only).

23 years agoFix ChangeLog format.
Christopher Faylor [Fri, 13 Apr 2001 15:34:33 +0000 (15:34 +0000)]
Fix ChangeLog format.

23 years ago* fork.cc (fork_child): Call the __pthread_atforkchild function.
Christopher Faylor [Fri, 13 Apr 2001 15:28:20 +0000 (15:28 +0000)]
* fork.cc (fork_child): Call the __pthread_atforkchild function.
(fork_parent): Call the __pthread_atforkparent function.
* cygwin.din: Export pthread_atfork.
* thread.h (callback): New class.
(MTinterface): Use it.
* thread.cc (__pthread_atforkprepare): New function.
(__pthread_atforkparent): New function.
(__pthread_atforkchild): New function.
(__pthread_atfork): New function.
* pthread.cc (pthread_atfork): New function.

23 years ago * path.cc (add_ext_from_sym): New define evaluating `known'suffix'.
Corinna Vinschen [Fri, 13 Apr 2001 07:54:20 +0000 (07:54 +0000)]
    * path.cc (add_ext_from_sym): New define evaluating `known'suffix'.
        (path_conv::check): Use add_ext_from_sym throughout.

23 years agobfd/
Jakub Jelinek [Fri, 13 Apr 2001 00:34:36 +0000 (00:34 +0000)]
bfd/
* libbfd-in.h (_bfd_merge_section): New.
(_bfd_write_merged_section): New.
(_bfd_merged_section_offset): New.
* libbfd.h: Rebuilt.
* linker.c (_bfd_generic_link_output_symbols): Handle
discard_sec_merge.
* aoutx.h (aout_link_write_symbols): Likewise.
* pdp11.c (aout_link_write_symbols): Likewise.
* elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
(elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
sections.
(elf_link_sec_merge_syms): New.
(elf_link_input_bfd): Call _bfd_merged_section_offset
and _bfd_write_merged_section.
Handle discard_sec_merge.
* elf-bfd.h (struct elf_link_hash_table): Add merge_info
field.
(struct bfd_elf_section_data): Likewise.
* elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
SEC_STRINGS section flags and entsize from their ELF counterparts.
(_bfd_elf_link_hash_table_init): Initialize merge_info.
(elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
from their BFD counterparts.
* merge.c: New file.
* Makefile.am: Add strtab.lo.
* Makefile.in: Rebuilt.
include/
* bfdlink.h (bfd_link_discard): Add discard_sec_merge.
gas/
* config/obj-elf.c (obj_elf_change_section): Add entsize argument,
handle SHF_MERGE and SHF_STRINGS.
(obj_elf_parse_section_letters): Set SHF_MERGE and SHF_STRINGS.
(obj_elf_section): Allow additional argument specifying entity size.
* write.c (adjust_reloc_syms): Keep relocations against local symbols
in SEC_MERGE sections.
ld/
* ldmain.c (main): Default to discard_sec_merge.
* lexsup.c (OPTION_DISCARD_NONE): Define.
(ld_options): Add --discard-none.
(parse_args): Handle OPTION_DISCARD_NONE.
* ldlang.c (wild_doit): SEC_MERGE should be set in the output
section only if SEC_MERGE and SEC_STRINGS flags and entsize of
all its input sections match.

23 years ago * cygwinenv.sgml: Add text for `check_case' option.
Corinna Vinschen [Thu, 12 Apr 2001 21:52:38 +0000 (21:52 +0000)]
    * cygwinenv.sgml: Add text for `check_case' option.

23 years ago * dir.cc (mkdir): Check for case clash.
Corinna Vinschen [Thu, 12 Apr 2001 21:21:37 +0000 (21:21 +0000)]
    * dir.cc (mkdir): Check for case clash.
        * environ.cc: Add extern declaration for `pcheck_case'.
        (check_case_init): New function.
        (struct parse_thing): Add "check_case" option.
        * errno.cc (_sys_nerrlist): Add text for ECASECLASH.
        (strerror): Add case branch for ECASECLASH.
        * fhandler.cc (fhandler_disk_file::open): Check for case clash.
        * path.cc: Add global variable `pcheck_case'.
        (struct symlink_info): Add member `case_clash' and method `case_check'.
        (path_prefix_p_): Call `pathnmatch' instead of `strncasematch'.
        (pathnmatch): New funtion.
        (pathmatch): Ditto.
        (path_conv::check): Add handling for case checking.
        (symlink): Check for case clash.
        (symlink_info::check): Add parameter for case checking.
        Handle case checking.
        (symlink_info::case_check): New method.
        (chdir): Don't use unconverted path if pcheck_case==PCHECK_STRICT.
        * path.h: Add extern declarations for `pathmatch' and
        `pathnmatch'.
        (enum case_checking): New enumeration type describing
        the case checking behaviour of path conversion routines.
        (class path_conv): Add member `case_clash'.
        * syscalls.cc (_link): Check for case clash.

23 years ago * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
Corinna Vinschen [Thu, 12 Apr 2001 21:17:27 +0000 (21:17 +0000)]
    * libc/include/sys/errno.h: Add ECASECLASH to indicate case clash
        on case insensitve file systems.

23 years ago* syscalls.cc (mkfifo): New function stub.
Christopher Faylor [Thu, 12 Apr 2001 16:50:13 +0000 (16:50 +0000)]
* syscalls.cc (mkfifo): New function stub.

23 years ago* configure.in: Remove PTH_ALLOW.
Christopher Faylor [Thu, 12 Apr 2001 15:40:18 +0000 (15:40 +0000)]
* configure.in: Remove PTH_ALLOW.
* cygwin.din: Remove @PTH_ALLOW@ prefixes to pthread functions.  Add new
pthread exports.
* pthread.cc: New wrapper functions for the above new exports.
* sched.cc (valid_sched_parameters): New function.
(sched_setparam): Use it.
(sched_set_thread_priority): New function.  Used by pthread_sched*.
* thread.cc (pthread_key_destructor::InsertAfter): New function.
(pthread_key_destructor::UnlinkNext): New function.
(pthread_key_destructor::Next): New function.
(pthread_key_destructor_list::Insert): New function.
(pthread_key_destructor_list::Remove): New function.
(pthread_key_destructor_list::Pop): New function.
(pthread_key_destructor::pthread_key_destructor): New function.
(pthread_key_destructor_list::IterateNull): New function.
(MTinterface::Init): Initialise new member.
(pthread::pthread): Initialise new members.
(pthread::create): Copy new attributes.  Set the new thread priority.
(pthread_attr::pthread_attr): Initialise new members.
(pthread_key::pthread_key): Setup destructor function.
(pthread_key::~pthread_key): Remove destructor function.
(pthread_mutexattr::pthread_mutexattr): New function.
(pthread_mutexattr::~pthread_mutexattr): New function.
(__pthread_once): New function.
(__pthread_cleanup): New function.
(__pthread_cancel): New function.
(__pthread_setcancelstate): New function.
(__pthread_setcanceltype): New function.
(__pthread_testcancel): New function.
(__pthread_attr_getinheritsched): New function.
(__pthread_attr_getschedparam): New function.
(__pthread_attr_getschedpolicy): New function.
(__pthread_attr_getscope): New function.
(__pthread_attr_setinheritsched): New function.
(__pthread_attr_setschedparam): New function.
(__pthread_attr_setschedpolicy): New function.
(__pthread_attr_setscope): New function.
(__pthread_exit): Call any key destructors on thread exit.
(__pthread_join): Use the embedded attr values.
(__pthread_detach): Use the embedded attr values.
(__pthread_getconcurrency): New function.
(__pthread_getschedparam): New function.
(__pthread_key_create): Pass the destructor on object creation.
(__pthread_key_delete): Correct incorrect prototype.
(__pthread_setconcurrency): New function.
(__pthread_setschedparam): New function.
(__pthread_cond_timedwait): Support static mutex initialisers.
(__pthread_cond_wait): Ditto.
(__pthread_mutex_getprioceiling): New function.
(__pthread_mutex_lock): Support static mutex initialisers.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): New function.
(__pthread_mutexattr_getprotocol): New function.
(__pthread_mutexattr_getpshared): New function.
(__pthread_mutexattr_gettype): New function.
(__pthread_mutexattr_init): New function.
(__pthread_mutexattr_destroy): New function.
(__pthread_mutexattr_setprotocol): New function.
(__pthread_mutexattr_setprioceiling): New function.
(__pthread_mutexattr_getprioceiling): New function.
(__pthread_mutexattr_setpshared): New function.
(__pthread_mutexattr_settype): New function.  Remove stubs for non MT_SAFE
compilation.
* thread.h: Remove duplicate #defines.  Add prototypes for new functions in
thread.cc.
(pthread_key_destructor): New class.
(pthread_key_destructor_list): New class.
(pthread_attr): Add new members.
(pthread): Remove members that are duplicated in the pthread_attr class.
(pthread_mutex_attr): Add new members.
(pthread_once): New class.
* include/pthread.h: Add prototypes for new functions exported from
cygwin1.dll.  Remove typedefs.
* include/sched.h: Add prototypes for new functions in sched.cc.
* include/cygwin/types.h: Add typedefs from pthread.h

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