newlib/winsup/cygwin
Robert Collins 5c83f260b8 * 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
2001-04-12 04:04:53 +00:00
..
config/i386 Whitespace cleanup. 2000-10-28 05:41:44 +00:00
include * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
lib * lib/_cygwin_S_IEXEC.c: Remove "const" from globals or they never seem to be 2001-03-28 03:42:58 +00:00
regexp * include/a.out.h: Add copyright hint. 2001-03-05 21:29:24 +00:00
acconfig.h * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
ansi.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
assert.cc * pinfo.cc (codepage_init): Move function. 2001-01-08 04:02:02 +00:00
autoload.cc * fhandler.h (fhandler_dev_clipboard): Extend to support writing. 2001-03-22 22:11:34 +00:00
autoload.h * autoload.h: Make DLL initializers global to avoid inlining. 2000-12-26 03:21:05 +00:00
automode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
binmode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
ChangeLog * path.cc (struct symlink_info): Add extn and ext_tacked_on fields. 2001-04-11 19:09:53 +00:00
ChangeLog-1995 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1996 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1997 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1998 import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
ChangeLog-1999 Update. 2000-02-21 03:18:37 +00:00
ChangeLog-2000 Wed Jan 3 09:20:20 2001 Jason Tishler <jt@dothill.com> 2001-01-03 14:44:13 +00:00
child_info.h * child_info.h: Bump magic number for fork/exec/spawn. 2001-04-04 14:37:45 +00:00
config.h.in * acconfig.h: Add support for NEWVFORK. 2000-07-16 17:38:41 +00:00
configure * Makefile.in: Use CXX to build the DLL. 2000-12-03 05:16:33 +00:00
configure.in * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
cygerrno.h * cygerrno.h: Revert previous patch. 2001-02-22 14:51:16 +00:00
cygheap.cc Update copyrights. 2001-03-18 03:34:05 +00:00
cygheap.h Throughout, change 'cygwin_shared.mount' to 'mount_table'. 2001-01-28 05:51:15 +00:00
cygrun.c * cygrun.c (main): Fix compiler warning. 2001-04-03 02:53:25 +00:00
CYGWIN_LICENSE import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
cygwin_version.h Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
cygwin.din * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
dcrt0.cc Work around new g++ problem. 2001-04-09 01:23:27 +00:00
debug.cc *** empty log message *** 2001-03-03 03:56:34 +00:00
debug.h * dlopen.c (dlopen): Return NULL when name is NULL (suggested by 2001-03-05 06:28:25 +00:00
delqueue.cc Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
delqueue.h Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
dir.cc * dir.cc (readdir): Use strcasematch for consistency. 2001-03-17 07:09:41 +00:00
dlfcn.cc * dlfcn.cc (check_access): Eliminate. 2001-03-26 01:16:11 +00:00
dll_init.cc Whitespace cleanup. 2000-10-28 05:41:44 +00:00
dll_init.h * hinfo.cc (hinfo::linearize_fd_array): Make max_used_fd an int so that we can 2000-07-15 02:48:11 +00:00
dll_init.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
dtable.cc * lib/_cygwin_S_IEXEC.c: Remove "const" from globals or they never seem to be 2001-03-28 03:42:58 +00:00
dtable.h * pinfo.cc (pinfo::init): Reverse order of setting status and pid info in an 2000-11-03 04:27:03 +00:00
dtable.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
environ.cc * dlfcn.cc (check_access): Eliminate. 2001-03-26 01:16:11 +00:00
environ.h * Makefile.in: Remove some obsolete stuff. 2000-10-16 23:55:58 +00:00
errno.cc * errno.cc (errmap): Map ERROR_FILE_INVALID to ENXIO. 2001-04-03 18:20:38 +00:00
exceptions.cc * Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needs 2001-04-09 00:44:25 +00:00
exec.cc * dlopen.c (dlopen): Return NULL when name is NULL (suggested by 2001-03-05 06:28:25 +00:00
external.cc Update copyright. 2001-03-18 03:25:30 +00:00
external.sgml *** empty log message *** 2000-11-19 04:58:18 +00:00
fcntl.cc * fcntl.cc (_fcntl): Rearrange as wrapper function. Move all 2000-10-23 20:16:52 +00:00
fhandler_clipboard.cc * fhandler.h (fhandler_dev_clipboard): Extend to support writing. 2001-03-22 22:11:34 +00:00
fhandler_console.cc * Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needs 2001-04-09 00:44:25 +00:00
fhandler_floppy.cc Update copyrights. 2001-03-18 03:34:05 +00:00
fhandler_mem.cc * mmap.cc (fhandler_disk_file::mmap): Use `addr' correctly. 2001-02-23 09:49:19 +00:00
fhandler_random.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
fhandler_raw.cc Update copyrights. 2001-03-18 03:34:05 +00:00
fhandler_serial.cc * fhandler_serial.cc (fhandler_serial::raw_write): Close protected handles with 2001-03-31 22:13:02 +00:00
fhandler_socket.cc * fhandler.h (class fhandler_socket): Add members and methods to 2001-04-09 07:21:32 +00:00
fhandler_tape.cc * dlopen.c (dlopen): Return NULL when name is NULL (suggested by 2001-03-05 06:28:25 +00:00
fhandler_termios.cc * fhandler.h (fhandler_tty_slave): Declare new methods. 2001-03-18 18:05:01 +00:00
fhandler_tty.cc * tty.h (tty::create_inuse): Add new parameter to allow non- 2001-03-19 18:27:37 +00:00
fhandler_windows.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
fhandler_zero.cc * winsup.h: Eliminate inclusion of most of the cygwin .h files. Use .h files 2000-08-22 05:10:20 +00:00
fhandler.cc * fhandler.cc (fhandler_disk_file::open): Avoid checking a magic 2001-04-02 14:35:17 +00:00
fhandler.h * fhandler.h (class fhandler_socket): Add members and methods to 2001-04-09 07:21:32 +00:00
fork.cc Update copyrights. 2001-03-18 03:34:05 +00:00
gcrt0.c Remove obvious brain freeze problem. 2001-03-11 16:46:28 +00:00
glob.c * pinfo.cc (codepage_init): Move function. 2001-01-08 04:02:02 +00:00
gmon.c * cygrun.c (main): Fix compiler warning. 2001-04-03 02:53:25 +00:00
gmon.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
grp.cc Throughout, change 'cygwin_shared.mount' to 'mount_table'. 2001-01-28 05:51:15 +00:00
heap.cc Update copyrights. 2001-03-18 03:34:05 +00:00
heap.h * syscalls.cc (_link): Make sure that newpath does not exist. Set errno if it 2001-01-29 00:46:25 +00:00
host_dependent.h Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
init.cc Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
ioctl.cc Split out tty and shared_info stuff into their own headers and use throughout. 2000-09-07 16:23:51 +00:00
localtime.c Whitespace cleanup. 2000-10-28 05:41:44 +00:00
Makefile.in * Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needs 2001-04-09 00:44:25 +00:00
malloc_wrapper.cc Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
mcount.c * sigproc.cc (sig_send): Eliminate sync_sig_send synchronization since it 2000-03-07 18:32:40 +00:00
misc-std.sgml clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
miscfuncs.cc * Makefile.in: add miscfuncs.cc 2000-10-19 03:12:44 +00:00
mkvers.sh * mkvers.sh: Include config.h so that DEBUGGING is correctly defined. 2001-03-12 16:20:30 +00:00
mmap.cc * mmap.cc (mmap): Fix conditional for previous patch. 2001-03-27 09:35:39 +00:00
net.cc * fhandler.h (class fhandler_socket): Add members and methods to 2001-04-09 07:21:32 +00:00
ntdll.h * ntdll.h: Remove IO_COUNTERS definition since it is now in winnt.h. 2000-11-02 06:59:07 +00:00
ntea.cc Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
passwd.cc Throughout, change 'cygwin_shared.mount' to 'mount_table'. 2001-01-28 05:51:15 +00:00
path.cc * path.cc (struct symlink_info): Add extn and ext_tacked_on fields. 2001-04-11 19:09:53 +00:00
path.h * sigproc.h (sigthread): Declare new methods. Create new winapi_lock field. 2001-03-07 06:19:34 +00:00
path.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
perprocess.h * dlopen.c (dlopen): Return NULL when name is NULL (suggested by 2001-03-05 06:28:25 +00:00
perthread.h * debug.h: Add regparm attributes to some functions. 2001-01-12 05:38:25 +00:00
pinfo.cc * pinfo.cc (pinfo::init): Use INVALID_HANDLE_VALUE instead of 2001-01-30 08:10:04 +00:00
pinfo.h * sched.cc: New file. Implement sched*. 2001-03-21 02:17:58 +00:00
pipe.cc * fhandler.h (fhandler_base): Remove obsolete _rpos and _rsize elements. 2000-10-07 18:12:11 +00:00
poll.cc * exceptions.cc (interruptible): Update debugging output. 2001-03-19 22:48:26 +00:00
posix.sgml clean up SGML for latest version of jade/docbook 2000-04-19 00:55:19 +00:00
profil.c * cygrun.c (main): Fix compiler warning. 2001-04-03 02:53:25 +00:00
profil.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
pthread.cc * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
registry.cc Throughout, change 'cygwin_shared.mount' to 'mount_table'. 2001-01-28 05:51:15 +00:00
registry.h Break out more header info into separate files. Use appropriate header files 2000-09-08 02:56:55 +00:00
resource.cc * resource.cc (setrlimit): Support RLIMIT_NOFILE. 2001-01-18 09:30:37 +00:00
ROADMAP hinfo -> dtable 2000-08-18 19:51:02 +00:00
scandir.cc * Makefile.in: Add cygheap.o. 2000-09-03 04:16:35 +00:00
sched.cc * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
security.cc * environ.cc (parse_options): Use strtok_r instead of strtok. 2001-03-14 15:32:49 +00:00
security.h * environ.cc (struct parse_thing): Add entry for new CYGWIN option 2000-12-19 19:52:57 +00:00
select.cc * dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixing 2001-03-20 19:50:28 +00:00
select.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
shared_info.h * shared_info.h (mount_info): Remove mnt_ elements. 2001-04-02 04:27:12 +00:00
shared.cc Fix spacing, copyrights. 2001-03-18 21:11:25 +00:00
shared.sgml import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
shortcut.c * shortcut.c (PATH_ALL_EXEC): Add parentheses to avoid a compiler warning. 2001-03-10 23:37:50 +00:00
shortcut.h * shortcut.c: New file. Provides a C interface to reading of 2001-02-22 12:56:36 +00:00
signal.cc * sigproc.h (class sigframe): Implement 'unregister()' method. 2001-04-01 00:06:17 +00:00
sigproc.cc * sigproc.h (class sigframe): Implement 'unregister()' method. 2001-04-01 00:06:17 +00:00
sigproc.h * Makefile.in: Put -lgcc last in list of libraries, since stdc++ library needs 2001-04-09 00:44:25 +00:00
smallprint.c * fork.cc (fork): Set sigframe here, since it can pause for a considerable 2000-10-23 03:35:50 +00:00
spawn.cc fix spacing. 2001-03-18 20:58:18 +00:00
strace.cc Update copyright. 2001-03-07 17:45:03 +00:00
strsep.cc import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
sync.cc * dcrt0.cc (sigthread::init): Correct overzealous ifdef. 2000-10-19 17:57:28 +00:00
sync.h * path.h: Add __attribute__ ((regparm(x))) to commonly used functions. 2000-11-12 04:57:41 +00:00
syscalls.cc * syscalls.cc (stat_worker): Fix conditional which still allowed 2001-04-05 20:43:23 +00:00
sysconf.cc * sysconf.cc (sysconf): return `getpagesize ()' on _SC_PAGESIZE 2001-01-15 10:58:19 +00:00
syslog.cc * cygwin.din: Add export for setlogmask(). 2001-01-22 15:55:34 +00:00
termios.cc * autoload.cc (LoadDLLinitfunc): Remove debugging statement. 2001-01-17 14:57:09 +00:00
test.c import winsup-2000-02-17 snapshot 2000-02-17 19:38:31 +00:00
textmode.c * autoload.c (cygwin_premain0): Add missing parameter. 2001-03-06 12:05:45 +00:00
thread.cc * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
thread.h * configure.in: Remove PTH_ALLOW. 2001-04-12 04:04:53 +00:00
times.cc * thread.h (struct _winsup_t): Remove obsolete elements. Add available_drives 2001-04-01 03:06:02 +00:00
tty.cc * tty.h (tty::create_inuse): Add new parameter to allow non- 2001-03-19 18:27:37 +00:00
tty.h * tty.h (tty::create_inuse): Add new parameter to allow non- 2001-03-19 18:27:37 +00:00
tz_posixrules.h import winsup-2000-02-17 snapshot 2000-02-17 19:38:33 +00:00
uinfo.cc Fix spacing, copyrights. 2001-03-18 21:11:25 +00:00
uname.cc * winsup.h: Add `winME' to os_type symbols. 2000-09-30 01:38:13 +00:00
wait.cc * sigproc.h (class sigframe): Implement 'unregister()' method. 2001-04-01 00:06:17 +00:00
window.cc Fix spacing, copyrights. 2001-03-18 21:11:25 +00:00
winsup.h * cygrun.c (main): Fix compiler warning. 2001-04-03 02:53:25 +00:00
winver.rc Update copyright info. 2000-07-19 17:42:16 +00:00