summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * winsup.api/pthread/rwlock1.c: New test.Thomas Pfaff2003-03-188-0/+669
| | | | | | | | | * winsup.api/pthread/rwlock2.c: Ditto. * winsup.api/pthread/rwlock3.c: Ditto. * winsup.api/pthread/rwlock4.c: Ditto. * winsup.api/pthread/rwlock5.c: Ditto. * winsup.api/pthread/rwlock6.c: Ditto. * winsup.api/pthread/rwlock7.c: Ditto.
* * cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,Thomas Pfaff2003-03-187-3/+761
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pthread_rwlock_rdlock, pthread_rwlock_tryrdlock, pthread_rwlock_wrlock, pthread_rwlock_trywrlock, pthread_rwlock_unlock, pthread_rwlockattr_init, pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared, and pthread_rwlockattr_destroy. * include/cygwin/version.h: Bump API minor number. * include/pthread.h (PTHREAD_RWLOCK_INITIALIZER): Define a reasonable value. Add prototypes for pthread_rwlock_destroy, pthread_rwlock_init, pthread_rwlock_rdlock, pthread_rwlock_tryrdlock, pthread_rwlock_wrlock, pthread_rwlock_trywrlock, pthread_rwlock_unlock, pthread_rwlockattr_init, pthread_rwlockattr_getpshared, pthread_rwlockattr_setpshared, and pthread_rwlockattr_destroy. * thread.h (PTHREAD_ONCE_MAGIC): Remove superflous semicolon. (PTHREAD_RWLOCK_MAGIC): New define. (PTHREAD_RWLOCKATTR_MAGIC): Ditto. (pthread_rwlockattr): New class. (pthread_rwlock): Ditto. (MTinterface::rwlocks): New member. (MTinterface::MTinterface): Initialize rwlocks. Add prototypes for __pthread_rwlock_destroy, __pthread_rwlock_wrlock, __pthread_rwlock_trywrlock, __pthread_rwlock_unlock, __pthread_rwlockattr_init, __pthread_rwlockattr_getpshared, __pthread_rwlockattr_setpshared, and __pthread_rwlockattr_destroy. * thread.cc (MTinterface::Init): Initialize rwlock internal mutex. (MTinterface::fixup_after_fork): Fixup rwlocks after fork. (pthread_rwlockattr::isGoodObject): Implement. (pthread_rwlockattr::pthread_rwlockattr): Ditto. (pthread_rwlockattr::~pthread_rwlockattr): Ditto. (pthread_rwlock::initMutex): Ditto. (pthread_rwlock::pthread_rwlock): Ditto. (pthread_rwlock::~pthread_rwlock): Ditto. (pthread_rwlock::RdLock): Ditto. (pthread_rwlock::TryRdLock): Ditto. (pthread_rwlock::WrLock): Ditto. (pthread_rwlock::TryWrLock): Ditto. (pthread_rwlock::UnLock): Ditto. (pthread_rwlock::addReader): Ditto. (pthread_rwlock::removeReader): Ditto. (pthread_rwlock::lookupReader): Ditto. (pthread_rwlock::RdLockCleanup): Ditto. (pthread_rwlock::WrLockCleanup): Ditto. (pthread_rwlock::fixup_after_fork): Ditto. (pthread_rwlock::isGoodObject): Ditto. (pthread_rwlock::isGoodInitializer): Ditto. (pthread_rwlock::isGoodInitializerOrObject): Ditto. (pthread_rwlock::isGoodInitializerOrBadObject): Ditto. (__pthread_rwlock_destroy): Ditto. (pthread_rwlock::init): Ditto. (__pthread_rwlock_rdlock): Ditto. (__pthread_rwlock_tryrdlock): Ditto. (__pthread_rwlock_wrlock): Ditto. (__pthread_rwlock_trywrlock): Ditto.
* * winsup.api/pthread/condvar7.c: New test.Thomas Pfaff2003-03-183-0/+466
| | | | * winsup.api/pthread/condvar9.c: Ditto.
* * thread.h (pthread_cond::ExitingWait): Remove.Thomas Pfaff2003-03-183-197/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (pthread_cond::mutex): Ditto. (pthread_cond::cond_access): Ditto. (pthread_cond::win32_obj_id): Ditto. (pthread_cond::TimedWait): Ditto. (pthread_cond::BroadCast): Ditto. (pthread_cond::Signal): Ditto. (pthread_cond::waiting): Change type to unsigned long. (pthread_cond::pending): New member. (pthread_cond::semWait): Ditto. (pthread_cond::mtxIn): Ditto. (pthread_cond::mtxOut): Ditto. (pthread_cond::mtxCond): Ditto. (pthread_cond::UnBlock): New method. (pthread_cond::Wait): Ditto. * thread.cc: Update list of cancellation points. (pthread_cond::pthread_cond): Rewrite. (pthread_cond::~pthread_cond): Ditto. (pthread_cond::TimedWait): Remove. (pthread_cond::BroadCast): Ditto. (pthread_cond::Signal): Ditto. (pthread_cond::UnBlock): Implement. (pthread_cond::Wait): Ditto. (pthread_cond::fixup_after_fork): Rewrite. (pthread_mutex::fixup_after_fork): Remove DETECT_BAD_APP conditional. (__pthread_cond_broadcast): Just return 0 if the condition is not initialized. Call pthread_cond::UnBlock to release blocked threads. (__pthread_cond_signal): Ditto. (__pthread_cond__dowait): Rewrite. (pthread_cond_timedwait): Add pthread_testcancel call. Fix waitlength calculation. (pthread_cond_wait): Add pthread_testcancel call.
* * winsup.api/pthread/mutex1n.c: New test.Thomas Pfaff2003-03-184-0/+181
| | | | | * winsup.api/pthread/mutex6n.c: Ditto. * winsup.api/pthread/mutex7n.c: Ditto.
* * include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.Thomas Pfaff2003-03-184-50/+119
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * thread.cc: Remove errno.h include. (pthread::precreate): Change internal mutex type to normal. (pthread_mutex::canBeUnlocked): Implement. (pthread_mutex::pthread_mutex): Initialize lock_counter with 0. (pthread_mutex::Lock): Rename to _Lock. Add self parameter. Change lock_counter logic. Update SetOwner call. (pthread_mutex::TryLock): Rename to _TryLock. Add self parameter. Change lock_counter logic. Update SetOwner call. (pthread_mutex::UnLock): Rename to _UnLock. Add self parameter. Change lock_counter logic. (pthread_mutex::Destroy): Rename to _Destroy. Update TryLock call. (pthread_mutex::SetOwner): Move to thread.h as inline. (pthread_mutex::LockRecursive): Ditto. (pthread_mutex::fixup_after_fork): Change lock_counter logic. (__pthread_mutexattr_settype): Add PTHREAD_MUTEX_NORMAL to valid types check. * thread.h: Include errno.h and limits.h. (MUTEX_LOCK_COUNTER_INITIAL): Remove. (MUTEX_OWNER_ANONYMOUS): New define. (pthread_mutex::canBeUnlocked): New static method. (pthread_mutex::lock_counter): Change type to unsigned long. (pthread_mutex::GetPthreadSelf): New method. (pthread_mutex::Lock): Call _Lock with pthread_self pointer. (pthread_mutex::TryLock): Call _TryLock with pthread_self pointer. (pthread_mutex::UnLock): Call _UnLock with pthread_self pointer. (pthread_mutex::Destroy): Call _Destroy with pthread_self pointer. (pthread_mutex::SetOwner): Moved from thread.cc as inline. (pthread_mutex::LockRecursive): Ditto. (pthread_mutex::_Lock): New method. (pthread_mutex::_TryLock): New method. (pthread_mutex::_UnLock): New method. (pthread_mutex::_Destroy): New method.
* * fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresentCorinna Vinschen2003-03-182-53/+83
| | | | | only on Windows NT. Read CPU Mhz value only on NT. Revert previous change so cpuid instruction is called even on non-NT systems.
* * include/lmaccess.h (UF_LOCKOUT): Correct name from UF_LOCK.Danny Smith2003-03-182-2/+8
| | | | | Thanks to: Fabricio D. Rossi <gurusoda@users.sourceforge.net> (UF_SETTABLE_BITS): Correct UF_LOCKOUT here too.
* * Makefile.common (w32api_lib): Default to system w32api directory if w32api isChristopher Faylor2003-03-172-0/+8
| | | | missing from source.
* merge from gccDJ Delorie2003-03-172-1/+37
|
* * Makefile.common: Fix typo from previous checkin.Christopher Faylor2003-03-172-1/+5
|
* * configure.in: w32api directory was already optional. Semi-revert 2003-02-06Christopher Faylor2003-03-174-39/+28
| | | | | | change. * configure: Regenerate. * Makefile.common: Don't specific -nostdinc if there is no w32api directory.
* * glob.c (g_lstat): Change API minor test to match API minor numberCorinna Vinschen2003-03-172-2/+8
| | | | | change in previous patch. (g_stat): Ditto.
* * include/cygwin/version.h: Reorganize last two api versions so that btowc andChristopher Faylor2003-03-172-3/+10
| | | | | | trunc exports show up before previous bump since there has been no exported version of the DLL with the 64 bit changes yet but 1.3.22 will have the btowc and trunc.
* * cygwin.din: Export btowc, trunc.Christopher Faylor2003-03-176-15/+55
| | | | | | | | | | | | | | | | * include/cygwin/version.h: Reflect new exports. * syscalls.cc (_stat): Rename to stat to avoid newlib wrapper. * syscalls.cc (_fstat): Ditto. * fhandler_console.cc (fhandler_console::close): Correct check for current tty. Add debugging output when console is freed. (set_console_state_for_spawn): Add debugging output. * fhandler_tty.cc (fhandler_tty_slave::open): Don't decrement console open flag when vforking. * sigproc.cc (sigproc_terminate): Fix debugging output. * spawn.cc (handle): Eliminate second argument. (spawn_guts): Reflect elimination of argument change to handle. * syscalls.cc (setsid): Add debugging output when console is freed. * syscalls.cc (rename): Revert assumption that DELETE_ON_CLOSE works on Win9x.
* merge from gccDJ Delorie2003-03-172-0/+5
|
* 2003-03-17 Bob Cassels <bcassels@abinitio.com>Jeff Johnston2003-03-172-3/+7
| | | | | * libc/string/wcschr.c: (wcschr): Look for character first, then for end of string, so you can do wcschr(x, '\0').
* (O_SYS_CMDLINE): New pseudo opcode for command line processing.Nick Clifton2003-03-172-0/+7
|
* 2003-03-17 Bang Jun-Young <junyoung@netbsd.org>Danny Smith2003-03-173-6/+17
| | | | | | | * include/winbase.h (EnumResourceLanguages[AW]): Correct prototypes. (EnumResourceNames[AW]): Ditto. (EnumResourceTypes[AW]): Ditto. * include/wincon.h (CONSOLE_FONT_INFO): Add struct.
* Get rid of some warnings Danny Smith2003-03-179-11/+34
| | | | | | | | | | | | | * mingwex/dirent.c (_topendir): Eliminate signed/unsigned warning. * mingwex/strtoimax.c (strtoimax): Likewise. * mingwex/wcstoimax.c (wcstoimax): Likewise. * mingwex/wtoll.c (wtoll): Remove unnecessary ';' * mingwex/fesentenv.c: Include float.h. * mingwex/math/powl.c: Eliminate type punning/strict aliasing warning. * mingwex/math/tanhl.c: Eliminate signed/unsigned warning in constants. * mingwex/math/tgammal.c: Likewise.
* 2003-03-16 Toby Malone <malone@users.sourceforge.net>Danny Smith2003-03-173-0/+7
| | | | | * include/winuser.h (SendInput): Add prototype. * lib/user32.def (SendInput): Add stub.
* * include/utime.h: New file, forwarding to sys/utime.h.Danny Smith2003-03-162-0/+5
|
* * include/sys/param.h (MAXPATHLEN): Define.Danny Smith2003-03-162-0/+7
|
* * include/tchar.h: Ansi-fy a comment.Danny Smith2003-03-162-1/+5
|
* * profile/profile.h (mcount): Use __builtin_return_addressDanny Smith2003-03-163-7/+19
| | | | | | rather than __asm statements. * profile/Makefile.in: Remove special rule for mcount.o Specify dependencies for mcount.o profil.o gmon.o.
* 2003-03-16 Vadim Yegorov <zg@bmg.lv>Danny Smith2003-03-162-3/+8
| | | | | * winioctl.h (FSCTL_SET_REPARSE_POINT: Correct macro. (FSCTL_DELETE_REPARSE_POINT): Likewise.
* 2003-03-15 Bang Jun-Young <junyoung@netbsd.org> Danny Smith2003-03-152-0/+76
| | | | | * winnt.h (JOBOBJECTINFOCLASS): Define enum. (JOBOBJECT_*): Define corresponding structures.
* * Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.Nathanael Nerode2003-03-143-8/+21
| | | | * Makefile.in: Regenerate.
* 2003-03-14 Michael Chastain <mec@shout.net>Michael Chastain2003-03-142-1/+73
| | | | * Makefile.in: Regenerate with correct Makefile.def.
* * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftelloCorinna Vinschen2003-03-1412-20/+49
| | | | | | | | | | | | | | | with internal (_fpos_t and _off_t) datatypes when compiling newlib. * libc/include/sys/unistd.h: Declare _lseek using _off_t. * libc/reent/lseekr.c (_lseek_r): Use _off_t instead of off_t. * libc/stdio/fseeko.c (fseeko): Ditto. * libc/stdio/ftello.c (ftello): Ditto. * libc/stdio/stdio.c (__swrite): Ditto. (__sseek): Ditto. * libc/stdio/fgetpos.c (fgetpos): Use _fpos_t instead of fpos_t. * libc/stdio/fseek.c (fseek): Ditto. * libc/stdio/fsetpos.c (fsetpos): Ditto. * libc/stdio/ftell.c (ftell): Ditto. * libc/stdio/local.h: Declare __sseek using _off_t.
* 2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>Danny Smith2003-03-144-2/+23
| | | | | | | | | | | | * include/ddk/winddk.h (PCUNICODE_STRING): Remove incorrect typedef. 2003-03-13 Bang Jun-Young <junyoung@netbsd.org> * lib/kernel32.def (Module32{First,Next}{,W}): Add missing exports. (Process32{First,Next}{,W}): Ditto. (Thread32{First,Next}): Ditto. * include/ntdef.h (PCUNICODE_STRING): Add typedef.
* * include/cygwin/version.h: Bump DLL minor number to 23.Christopher Faylor2003-03-134-3/+15
|
* * autoload.cc (IsProcessorFeaturePresent): Add.Corinna Vinschen2003-03-133-1/+15
| | | | * fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.
* * fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.Corinna Vinschen2003-03-132-1/+5
|
* * net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.Corinna Vinschen2003-03-132-2/+7
| | | | (cygwin_rexec): Ditto.
* * syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.Christopher Faylor2003-03-133-3/+10
| | | | * fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.
* * include/mswsock.h: Correct invalid filter for _WINSOCK2_H.Earnie Boyd2003-03-122-2/+7
| | | | Thanks to Jim Barton <jmbarton@users.sf.net>.
* * Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up. Delete unusedNathanael Nerode2003-03-125-203/+85
| | | | | | | Make macro. * Makefile.in: Regenerate. * configure.in: Clean up gxx_include_dir logic. * configure: Regenerate.
* fix typoChristopher Faylor2003-03-121-1/+1
|
* Checkin previously referred to in ChangeLog.Christopher Faylor2003-03-121-1/+1
|
* 2003-03-12 Ranjit Mathew <rmathew@hotmail.com>Danny Smith2003-03-112-1/+7
| | | | | * include/winnt.h (_IMAGE_SEPARATE_DEBUG_HEADER): Expose member SectionAlignment.
* * fhandler_socket.cc (fhandler_socket::dup): Don't callCorinna Vinschen2003-03-112-1/+20
| | | | | fhandler_base::dup() but call DuplicateHandle directly instead to have control over socket inheritence.
* * include/winsvc.h (SERVICE_NO_CHANGE): Use hex constant to avoidEarnie Boyd2003-03-114-4/+13
| | | | | | | | warnings. Thanks to Fabricio D. Rossi <gurusoda@users.sf.net>. * Makefile.in (bindist): Correct process. * lib/Makefile.in (install): Ditto. Thanks to Jeff Bonnggren <jbon@users.sf.net>.
* 2003-03-11 Corinna Vinschen <corinna@vinschen.de>Corinna Vinschen2003-03-112-4/+24
| | | | | | | | | | | * fhandler_socket.cc (fhandler_socket::dup): On NT systems avoid using WinSock2 socket duplication methods. Add comment. 2003-03-11 Pierre Humblet <pierre.humblet@ieee.org> * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Set io_handle to INVALID_SOCKET in case of failure. (fhandler_socket::dup): Return 0 if the io_handle is valid.
* * include/stdlib.h (qsort): Remove const from first parm.Danny Smith2003-03-112-1/+6
| | | | Thanks to: Tien-Ren Chen <trchen@sourceforge.users.net>
* * include/rasdlg.h: New file.Danny Smith2003-03-104-0/+163
| | | | | * lib/rasdlg.def: New file. * lib/test.c: Include rasdlg.h.
* * sec_acl.cc (setacl): Don't handle DELETE flag specially.Corinna Vinschen2003-03-103-10/+9
| | | | * security.cc (alloc_sd): Ditto.
* Fix typo.Corinna Vinschen2003-03-091-1/+1
|
* * winver.rc: Change Copyright hint to inlcude 2003.Corinna Vinschen2003-03-092-1/+5
|
* * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.Corinna Vinschen2003-03-092-2/+6
|