]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
21 years agoAdd iWMMXt support
Nick Clifton [Tue, 25 Mar 2003 20:56:01 +0000 (20:56 +0000)]
Add iWMMXt support

21 years ago* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
Christopher Faylor [Tue, 25 Mar 2003 01:20:04 +0000 (01:20 +0000)]
* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is
correctly set.

21 years ago* setup-net.sgml: Improve setup.exe documentation
Joshua Daniel Franklin [Sun, 23 Mar 2003 19:43:33 +0000 (19:43 +0000)]
* setup-net.sgml: Improve setup.exe documentation

21 years ago* setup-net.sgml: Improve setup.exe documentation
Joshua Daniel Franklin [Sun, 23 Mar 2003 19:35:52 +0000 (19:35 +0000)]
* setup-net.sgml: Improve setup.exe documentation

21 years ago* setup-net.sgml: Improve setup.exe documentation
Joshua Daniel Franklin [Sun, 23 Mar 2003 16:23:52 +0000 (16:23 +0000)]
* setup-net.sgml: Improve setup.exe documentation

21 years ago*** empty log message ***
Thomas Pfaff [Sun, 23 Mar 2003 10:56:19 +0000 (10:56 +0000)]
*** empty log message ***

21 years ago* thread.h (class List): Move inline code inside class
Thomas Pfaff [Sun, 23 Mar 2003 10:52:02 +0000 (10:52 +0000)]
* thread.h (class List): Move inline code inside class
declaration.
(List::forEach): Change callback parameter to template class
member functionpointer.
(pthread_keys::fixup_before_fork): Change to inline. Use
List::forEach to fixup keys.
(pthread_keys::fixup_after_fork): Ditto.
(pthread_keys::runAllDestructors): Ditto.
(pthread_key::saveAKey): Remove.
(pthread_key::restoreAKey): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(pthread_mutex::FixupAfterFork): New method.
(pthread_mutex::mutexes): New member.
(pthread_cond::fixup_after_fork): Change to inline. Use
List::forEach to fixup conds after a fork.
(pthread_cond::FixupAfterFork): New method.
(pthread_cond::conds): New member.
(pthread_rwlock::fixup_after_fork): Change to inline. Use
List::forEach to fixup rwlocks after a fork.
(pthread_rwlock::FixupAfterFork): New method.
(pthread_rwlock::rwlocks): New member.
(semaphore::fixup_after_fork): Change to inline. Use
List::forEach to fixup mutexes after a fork.
(semaphore::FixupAfterFork): New method.
(semaphore::semaphores): New member.
(MTinterface::mutexs): Remove.
(MTinterface::conds): Ditto.
(MTinterface::rwlocks): Ditto.
(MTinterface::semaphores): Ditto.
(pthread_equal): Add extern "C".
(pthread_mutex_lock): Ditto.

* thread.cc (MTinterface::fixup_after_fork): Change
fixup_after_fork calls for pthread objects.
(semaphore::conds): Instantiate.
(pthread_cond::pthread_cond): Use List::Insert rather than
custom list code.
(pthread_cond::~pthread_cond): Use List::Remove rather than
custom list code.
(pthread_cond::fixup_after_fork): Rename to FixupAfterFork.
(pthread_rwlock::rwlocks): Instantiate.
(pthread_rwlock::pthread_crwlock): Use List::Insert rather than
custom list code.
(pthread_rwlock::~pthread_rwlock): Use List::Remove rather than
custom list code.
(pthread_rwlock::fixup_after_fork): Rename to FixupAfterFork.
(pthread_key::saveAKey): Remove.
(pthread_key::fixup_before_fork): Ditto.
(pthread_key::restoreAKey): Ditto.
(pthread_key::fixup_after_fork): Ditto.
(pthread_key::destroyAKey): Ditto.
(pthread_key::runAllDestructors): Ditto.
(pthread_key::run_destructor): Rename to runDestructor.
(pthread_mutex::mutexes): Instantiate.
(pthread_mutex::pthread_mutex): Use List::Insert rather than
custom list code.
(pthread_mutex::~pthread_mutex): Use List::Remove rather than
custom list code.
(pthread_mutex::fixup_after_fork): Rename to FixupAfterFork.
(semaphore::conds): Instantiate.
(semaphore::semaphore): Use List::Insert rather than custom list
code.
(semaphores::~semaphore): Use List::Remove rather than custom
list code.
(semaphore::fixup_after_fork): Rename to FixupAfterFork.

21 years ago* setup-net.sgml: Document setup.exe
Joshua Daniel Franklin [Sat, 22 Mar 2003 21:16:25 +0000 (21:16 +0000)]
* setup-net.sgml: Document setup.exe

21 years ago* setup-net.sgml: Document setup.exe
Joshua Daniel Franklin [Sat, 22 Mar 2003 20:03:41 +0000 (20:03 +0000)]
* setup-net.sgml: Document setup.exe

21 years ago* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
Christopher Faylor [Sat, 22 Mar 2003 18:30:58 +0000 (18:30 +0000)]
* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.

21 years ago* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
Christopher Faylor [Sat, 22 Mar 2003 17:48:40 +0000 (17:48 +0000)]
* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called.
Fix typo in debugging output.

21 years ago* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary
Christopher Faylor [Sat, 22 Mar 2003 01:45:18 +0000 (01:45 +0000)]
* fork.cc: Conditionalize use of slow_pid_reuse throughout.  It's not necessary
for newer versions of bash.

21 years ago * s390.h (s390_opcode_arch_val): Rename to s390_opcode_mode_val.
Martin Schwidefsky [Fri, 21 Mar 2003 13:26:21 +0000 (13:26 +0000)]
* s390.h (s390_opcode_arch_val): Rename to s390_opcode_mode_val.
(S390_OPCODE_ESAME): Rename to S390_OPCODE_ZARCH.
(s390_opcode): Remove architecture. Add modes and min_cpu.

21 years ago2003-03-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 20 Mar 2003 17:23:57 +0000 (17:23 +0000)]
2003-03-20  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/stdio/vfscanf.c (__svfscanf_r): For floating point conversion,
        count all characters used to create number against maximum width.
        * libc/machine/powerpc/vfscanf.c (__svfscanf_r): Ditto.

21 years agoAdd Cirrus Maverick support to arm simulator
Nick Clifton [Thu, 20 Mar 2003 12:25:07 +0000 (12:25 +0000)]
Add Cirrus Maverick support to arm simulator

21 years ago * fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
Corinna Vinschen [Thu, 20 Mar 2003 08:53:28 +0000 (08:53 +0000)]
* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and
SIGPIPE handling to connection oriented sockets.  Add comment.

21 years ago* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
Christopher Faylor [Thu, 20 Mar 2003 01:34:53 +0000 (01:34 +0000)]
* sigproc.h (signal_fixup_after_exec): Eliminate argument in declaration.
* exceptions.cc (signal_fixup_after_exec): Eliminate argument in definition.
Don't reset signal handlers after spawm.  Just treat like fork/exec.
* dcrt0.cc (dll_crt0_1): Don't pass PROC_SPAWN argument to
signal_fixup_after_exec.
* syscalls.cc (unlink): Don't change attributes of file if not readonly/system.
Ditto for resetting of arguments.

21 years ago *lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
Danny Smith [Thu, 20 Mar 2003 00:44:06 +0000 (00:44 +0000)]
*lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix.
Thanks to: Vladimir Michl <michlv@users.sourceforge.net>
(NdisUpdateSharedMemory): Likewise.
(NdisMFreeSharedMemory: Likewise.
(NdisMMapIoSpace: Likewise.

21 years ago * glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
Corinna Vinschen [Wed, 19 Mar 2003 21:38:25 +0000 (21:38 +0000)]
* glob.c: Eliminate __INSIDE_CYGWIN__ preprocessor conditionals
throughout.

21 years ago * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
Corinna Vinschen [Wed, 19 Mar 2003 21:34:38 +0000 (21:34 +0000)]
* fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Fix
wrong usage of S_IFDIR.
* security.cc (get_attribute_from_acl): Ditto.
(get_file_attribute): Fix wrong usage of S_IFLNK.
(get_object_attribute): Ditto.
(alloc_sd): Fix wrong usage of S_IFDIR.
* syscalls.cc (chmod): Allow chmod'ing of socket files.

21 years ago * include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
Corinna Vinschen [Wed, 19 Mar 2003 20:13:57 +0000 (20:13 +0000)]
* include/cygwin/version.h (CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES):
Define.
* glob.c (g_lstat): Use CYGWIN_VERSION_CHECK_FOR_USING_BIG_TYPES
instead of numerical constants.
(g_stat): Ditto.

21 years ago2003-03-18 D.Venkatasubramanian <dvenkat@noida.hcltech.com>
Jeff Johnston [Tue, 18 Mar 2003 20:38:04 +0000 (20:38 +0000)]
2003-03-18  D.Venkatasubramanian  <dvenkat@noida.hcltech.com>

        * libc/include/sys/h8300hms/crt0.S[__SIMULATOR__]: Add commandline
        support.
        * configure.host (h8300*-*-*): Added comment regarding -D__SIMULATOR__
        flag to support simulator only extensions.

21 years ago* pthread.cc (pthread_attr_init): Remove
Thomas Pfaff [Tue, 18 Mar 2003 20:12:05 +0000 (20:12 +0000)]
* pthread.cc (pthread_attr_init): Remove
(pthread_attr_destroy): Ditto.
(pthread_attr_setdetachstate): Ditto.
(pthread_attr_getdetachstate): Ditto.
(pthread_attr_setstacksize): Ditto.
(pthread_attr_getstacksize): Ditto.
(pthread_attr_setinheritsched): Ditto.
(pthread_attr_getinheritsched): Ditto.
(pthread_attr_setschedparam): Ditto.
(pthread_attr_getschedparam): Ditto.
(pthread_attr_setschedpolicy): Ditto.
(pthread_attr_getschedpolicy): Ditto.
(pthread_attr_setscope): Ditto.
(pthread_attr_getscope): Ditto.
(pthread_attr_setstackaddr): Ditto.
(pthread_attr_getstackaddr): Ditto.
(pthread_key_create): Ditto.
(pthread_key_delete): Ditto.
(pthread_setspecific): Ditto.
(pthread_getspecific): Ditto.
(pthread_kill): Ditto.
(pthread_sigmask): Ditto.
(pthread_equal): Ditto.
(pthread_mutex_lock): Ditto.
(pthread_mutex_trylock): Ditto.
(pthread_mutex_unlock): Ditto.
(pthread_mutex_destroy): Ditto.
(pthread_mutex_setprioceiling): Ditto.
(pthread_mutex_getprioceiling): Ditto.
(pthread_mutexattr_destroy): Ditto.
(pthread_mutexattr_getprioceiling): Ditto.
(pthread_mutexattr_getprotocol): Ditto.
(pthread_mutexattr_getpshared): Ditto.
(pthread_mutexattr_gettype): Ditto.
(pthread_mutexattr_init): Ditto.
(pthread_mutexattr_setprioceiling): Ditto.
(pthread_mutexattr_setprotocol): Ditto.
(pthread_mutexattr_setpshared): Ditto.
(pthread_mutexattr_settype): Ditto.
(pthread_cond_destroy): Ditto.
(pthread_cond_signal): Ditto.
(pthread_cond_broadcast): Ditto.
(pthread_condattr_init): Ditto.
(pthread_condattr_destroy): Ditto.
(pthread_condattr_getpshared): Ditto.
(pthread_condattr_setpshared): Ditto.
(pthread_rwlock_destroy): Ditto.
(pthread_rwlock_rdlock): Ditto.
(pthread_rwlock_tryrdlock): Ditto.
(pthread_rwlock_wrlock): Ditto.
(pthread_rwlock_trywrlock): Ditto.
(pthread_rwlock_unlock): Ditto.
(pthread_rwlockattr_init): Ditto.
(pthread_rwlockattr_getpshared): Ditto.
(pthread_rwlockattr_setpshared): Ditto.
(pthread_rwlockattr_destroy): Ditto.
(pthread_getconcurrency): Ditto.
(pthread_setconcurrency): Ditto.
(pthread_getschedparam): Ditto.
(pthread_setschedparam): Ditto.

* thread.h (__pthread_attr_init): Remove prototype.
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.

* thread.cc: Rename __pthread_equal to pthread_equal throughout.
Change pthread_self parameter appropriate.
(__pthread_attr_init): Remove __ prefix. Change to extern "C".
(__pthread_attr_destroy): Ditto.
(__pthread_attr_setdetachstate): Ditto.
(__pthread_attr_getdetachstate): Ditto.
(__pthread_attr_setstacksize): Ditto.
(__pthread_attr_getstacksize): Ditto.
(__pthread_attr_setinheritsched): Ditto.
(__pthread_attr_getinheritsched): Ditto.
(__pthread_attr_setschedparam): Ditto.
(__pthread_attr_getschedparam): Ditto.
(__pthread_attr_setschedpolicy): Ditto.
(__pthread_attr_getschedpolicy): Ditto.
(__pthread_attr_setscope): Ditto.
(__pthread_attr_getscope): Ditto.
(__pthread_attr_setstackaddr): Ditto.
(__pthread_attr_getstackaddr): Ditto.
(__pthread_key_create): Ditto.
(__pthread_key_delete): Ditto.
(__pthread_setspecific): Ditto.
(__pthread_getspecific): Ditto.
(__pthread_kill): Ditto.
(__pthread_sigmask): Ditto.
(__pthread_equal): Ditto.
(__pthread_mutex_lock): Ditto.
(__pthread_mutex_trylock): Ditto.
(__pthread_mutex_unlock): Ditto.
(__pthread_mutex_destroy): Ditto.
(__pthread_mutex_setprioceiling): Ditto.
(__pthread_mutex_getprioceiling): Ditto.
(__pthread_mutexattr_destroy): Ditto.
(__pthread_mutexattr_getprioceiling): Ditto.
(__pthread_mutexattr_getprotocol): Ditto.
(__pthread_mutexattr_getpshared): Ditto.
(__pthread_mutexattr_gettype): Ditto.
(__pthread_mutexattr_init): Ditto.
(__pthread_mutexattr_setprioceiling): Ditto.
(__pthread_mutexattr_setprotocol): Ditto.
(__pthread_mutexattr_setpshared): Ditto.
(__pthread_mutexattr_settype): Ditto.
(__pthread_cond_destroy): Ditto.
(__pthread_cond_signal): Ditto.
(__pthread_cond_broadcast): Ditto.
(__pthread_condattr_init): Ditto.
(__pthread_condattr_destroy): Ditto.
(__pthread_condattr_getpshared): Ditto.
(__pthread_condattr_setpshared): Ditto.
(__pthread_rwlock_destroy): Ditto.
(__pthread_rwlock_rdlock): Ditto.
(__pthread_rwlock_tryrdlock): Ditto.
(__pthread_rwlock_wrlock): Ditto.
(__pthread_rwlock_trywrlock): Ditto.
(__pthread_rwlock_unlock): Ditto.
(__pthread_rwlockattr_init): Ditto.
(__pthread_rwlockattr_getpshared): Ditto.
(__pthread_rwlockattr_setpshared): Ditto.
(__pthread_rwlockattr_destroy): Ditto.
(__pthread_getconcurrency): Ditto.
(__pthread_setconcurrency): Ditto.
(__pthread_getschedparam): Ditto.
(__pthread_setschedparam): Ditto.

21 years ago* winsup.api/pthread/rwlock1.c: New test.
Thomas Pfaff [Tue, 18 Mar 2003 20:04:24 +0000 (20:04 +0000)]
* winsup.api/pthread/rwlock1.c: New test.
* 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.

21 years ago* cygwin.din: Add pthread_rwlock_destroy, pthread_rwlock_init,
Thomas Pfaff [Tue, 18 Mar 2003 20:01:07 +0000 (20:01 +0000)]
* cygwin.din: Add 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.
* 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.

21 years ago* winsup.api/pthread/condvar7.c: New test.
Thomas Pfaff [Tue, 18 Mar 2003 19:51:58 +0000 (19:51 +0000)]
* winsup.api/pthread/condvar7.c: New test.
* winsup.api/pthread/condvar9.c: Ditto.

21 years ago* thread.h (pthread_cond::ExitingWait): Remove.
Thomas Pfaff [Tue, 18 Mar 2003 19:49:38 +0000 (19:49 +0000)]
* thread.h (pthread_cond::ExitingWait): Remove.
(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.

21 years ago* winsup.api/pthread/mutex1n.c: New test.
Thomas Pfaff [Tue, 18 Mar 2003 19:42:43 +0000 (19:42 +0000)]
* winsup.api/pthread/mutex1n.c: New test.
* winsup.api/pthread/mutex6n.c: Ditto.
* winsup.api/pthread/mutex7n.c: Ditto.

21 years ago* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
Thomas Pfaff [Tue, 18 Mar 2003 19:39:21 +0000 (19:39 +0000)]
* include/pthread.h (PTHREAD_MUTEX_NORMAL): New define.
* 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.

21 years ago * fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
Corinna Vinschen [Tue, 18 Mar 2003 09:30:03 +0000 (09:30 +0000)]
* fhandler_proc.cc (format_proc_cpuinfo): Use IsProcessorFeaturePresent
only on Windows NT. Read CPU Mhz value only on NT. Revert previous
change so cpuid instruction is called even on non-NT systems.

21 years ago * include/lmaccess.h (UF_LOCKOUT): Correct name from UF_LOCK.
Danny Smith [Tue, 18 Mar 2003 09:19:21 +0000 (09:19 +0000)]
* include/lmaccess.h (UF_LOCKOUT): Correct name from UF_LOCK.
Thanks to: Fabricio D. Rossi  <gurusoda@users.sourceforge.net>
  (UF_SETTABLE_BITS): Correct UF_LOCKOUT here too.

21 years ago* Makefile.common (w32api_lib): Default to system w32api directory if w32api is
Christopher Faylor [Mon, 17 Mar 2003 23:13:26 +0000 (23:13 +0000)]
* Makefile.common (w32api_lib): Default to system w32api directory if w32api is
missing from source.

21 years agomerge from gcc
DJ Delorie [Mon, 17 Mar 2003 23:09:54 +0000 (23:09 +0000)]
merge from gcc

21 years ago* Makefile.common: Fix typo from previous checkin.
Christopher Faylor [Mon, 17 Mar 2003 22:35:53 +0000 (22:35 +0000)]
* Makefile.common: Fix typo from previous checkin.

21 years ago* configure.in: w32api directory was already optional. Semi-revert 2003-02-06
Christopher Faylor [Mon, 17 Mar 2003 22:27:07 +0000 (22:27 +0000)]
* configure.in: w32api directory was already optional.  Semi-revert 2003-02-06
change.
* configure: Regenerate.
* Makefile.common: Don't specific -nostdinc if there is no w32api directory.

21 years ago * glob.c (g_lstat): Change API minor test to match API minor number
Corinna Vinschen [Mon, 17 Mar 2003 20:44:10 +0000 (20:44 +0000)]
* glob.c (g_lstat): Change API minor test to match API minor number
change in previous patch.
(g_stat): Ditto.

21 years ago* include/cygwin/version.h: Reorganize last two api versions so that btowc and
Christopher Faylor [Mon, 17 Mar 2003 19:16:15 +0000 (19:16 +0000)]
* include/cygwin/version.h: Reorganize last two api versions so that btowc and
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.

21 years ago* cygwin.din: Export btowc, trunc.
Christopher Faylor [Mon, 17 Mar 2003 19:08:11 +0000 (19:08 +0000)]
* cygwin.din: Export btowc, trunc.
* 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.

21 years agomerge from gcc
DJ Delorie [Mon, 17 Mar 2003 18:01:05 +0000 (18:01 +0000)]
merge from gcc

21 years ago2003-03-17 Bob Cassels <bcassels@abinitio.com>
Jeff Johnston [Mon, 17 Mar 2003 17:12:32 +0000 (17:12 +0000)]
2003-03-17  Bob Cassels  <bcassels@abinitio.com>

        * libc/string/wcschr.c: (wcschr): Look for character first,
        then for end of string, so you can do wcschr(x, '\0').

21 years ago(O_SYS_CMDLINE): New pseudo opcode for command line processing.
Nick Clifton [Mon, 17 Mar 2003 10:34:29 +0000 (10:34 +0000)]
(O_SYS_CMDLINE): New pseudo opcode for command line processing.

21 years ago2003-03-17 Bang Jun-Young <junyoung@netbsd.org>
Danny Smith [Mon, 17 Mar 2003 10:01:07 +0000 (10:01 +0000)]
2003-03-17  Bang Jun-Young  <junyoung@netbsd.org>

* include/winbase.h (EnumResourceLanguages[AW]): Correct prototypes.
(EnumResourceNames[AW]): Ditto.
(EnumResourceTypes[AW]): Ditto.
* include/wincon.h (CONSOLE_FONT_INFO): Add struct.

21 years ago Get rid of some warnings
Danny Smith [Mon, 17 Mar 2003 01:03:43 +0000 (01:03 +0000)]
Get rid of some warnings
* 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.

21 years ago2003-03-16 Toby Malone <malone@users.sourceforge.net>
Danny Smith [Mon, 17 Mar 2003 00:14:39 +0000 (00:14 +0000)]
2003-03-16  Toby Malone  <malone@users.sourceforge.net>

* include/winuser.h (SendInput): Add prototype.
* lib/user32.def (SendInput): Add stub.

21 years ago * include/utime.h: New file, forwarding to sys/utime.h.
Danny Smith [Sun, 16 Mar 2003 22:23:58 +0000 (22:23 +0000)]
* include/utime.h: New file, forwarding to sys/utime.h.

21 years ago * include/sys/param.h (MAXPATHLEN): Define.
Danny Smith [Sun, 16 Mar 2003 22:18:05 +0000 (22:18 +0000)]
* include/sys/param.h (MAXPATHLEN): Define.

21 years ago * include/tchar.h: Ansi-fy a comment.
Danny Smith [Sun, 16 Mar 2003 22:15:19 +0000 (22:15 +0000)]
* include/tchar.h: Ansi-fy a comment.

21 years ago * profile/profile.h (mcount): Use __builtin_return_address
Danny Smith [Sun, 16 Mar 2003 22:12:01 +0000 (22:12 +0000)]
* profile/profile.h (mcount): Use __builtin_return_address
rather than __asm statements.
* profile/Makefile.in: Remove special rule for mcount.o
Specify dependencies for mcount.o profil.o gmon.o.

21 years ago2003-03-16 Vadim Yegorov <zg@bmg.lv>
Danny Smith [Sun, 16 Mar 2003 01:41:58 +0000 (01:41 +0000)]
2003-03-16  Vadim Yegorov  <zg@bmg.lv>

* winioctl.h (FSCTL_SET_REPARSE_POINT: Correct macro.
(FSCTL_DELETE_REPARSE_POINT): Likewise.

21 years ago2003-03-15 Bang Jun-Young <junyoung@netbsd.org>
Danny Smith [Sat, 15 Mar 2003 03:50:48 +0000 (03:50 +0000)]
2003-03-15  Bang Jun-Young  <junyoung@netbsd.org>

* winnt.h (JOBOBJECTINFOCLASS): Define enum.
(JOBOBJECT_*): Define corresponding structures.

21 years ago * Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.
Nathanael Nerode [Fri, 14 Mar 2003 20:49:14 +0000 (20:49 +0000)]
* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES back down.
* Makefile.in: Regenerate.

21 years ago2003-03-14 Michael Chastain <mec@shout.net>
Michael Chastain [Fri, 14 Mar 2003 18:59:59 +0000 (18:59 +0000)]
2003-03-14  Michael Chastain  <mec@shout.net>

* Makefile.in: Regenerate with correct Makefile.def.

21 years ago * libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
Corinna Vinschen [Fri, 14 Mar 2003 18:39:05 +0000 (18:39 +0000)]
* libc/include/stdio.h: Declare fgetpos, fsetpos, fseeko and ftello
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.

21 years ago2003-03-13 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith [Fri, 14 Mar 2003 03:06:52 +0000 (03:06 +0000)]
2003-03-13  Danny Smith  <dannysmith@users.sourceforge.net>

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

21 years ago* include/cygwin/version.h: Bump DLL minor number to 23.
Christopher Faylor [Thu, 13 Mar 2003 23:11:38 +0000 (23:11 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 23.

21 years ago * autoload.cc (IsProcessorFeaturePresent): Add.
Corinna Vinschen [Thu, 13 Mar 2003 22:53:16 +0000 (22:53 +0000)]
* autoload.cc (IsProcessorFeaturePresent): Add.
* fhandler_proc.cc (format_proc_cpuinfo): Add case for 9x systems.

21 years ago * fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.
Corinna Vinschen [Thu, 13 Mar 2003 22:32:40 +0000 (22:32 +0000)]
* fhandler_proc.cc (format_proc_cpuinfo): Fix vendor id in cpuid case.

21 years ago * net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
Corinna Vinschen [Thu, 13 Mar 2003 11:31:24 +0000 (11:31 +0000)]
* net.cc (cygwin_rcmd): Use correct file descriptor in call to fdsock.
(cygwin_rexec): Ditto.

21 years ago* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
Christopher Faylor [Thu, 13 Mar 2003 08:18:15 +0000 (08:18 +0000)]
* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.

21 years ago * include/mswsock.h: Correct invalid filter for _WINSOCK2_H.
Earnie Boyd [Wed, 12 Mar 2003 23:36:54 +0000 (23:36 +0000)]
* include/mswsock.h: Correct invalid filter for _WINSOCK2_H.
Thanks to Jim Barton <jmbarton@users.sf.net>.

21 years ago * Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up. Delete unused
Nathanael Nerode [Wed, 12 Mar 2003 20:47:07 +0000 (20:47 +0000)]
* Makefile.tpl: Move .NOEXPORT, MAKEOVERRIDES up.  Delete unused
Make macro.
* Makefile.in: Regenerate.
* configure.in: Clean up gxx_include_dir logic.
* configure: Regenerate.

21 years agofix typo
Christopher Faylor [Wed, 12 Mar 2003 17:21:31 +0000 (17:21 +0000)]
fix typo

21 years agoCheckin previously referred to in ChangeLog.
Christopher Faylor [Wed, 12 Mar 2003 06:28:27 +0000 (06:28 +0000)]
Checkin previously referred to in ChangeLog.

21 years ago2003-03-12 Ranjit Mathew <rmathew@hotmail.com>
Danny Smith [Tue, 11 Mar 2003 23:53:08 +0000 (23:53 +0000)]
2003-03-12  Ranjit Mathew  <rmathew@hotmail.com>

        * include/winnt.h (_IMAGE_SEPARATE_DEBUG_HEADER): Expose
        member SectionAlignment.

21 years ago * fhandler_socket.cc (fhandler_socket::dup): Don't call
Corinna Vinschen [Tue, 11 Mar 2003 16:49:58 +0000 (16:49 +0000)]
* fhandler_socket.cc (fhandler_socket::dup): Don't call
fhandler_base::dup() but call DuplicateHandle directly instead to have
control over socket inheritence.

21 years ago * include/winsvc.h (SERVICE_NO_CHANGE): Use hex constant to avoid
Earnie Boyd [Tue, 11 Mar 2003 14:44:58 +0000 (14:44 +0000)]
* include/winsvc.h (SERVICE_NO_CHANGE): Use hex constant to avoid
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>.

21 years ago2003-03-11 Corinna Vinschen <corinna@vinschen.de>
Corinna Vinschen [Tue, 11 Mar 2003 13:05:36 +0000 (13:05 +0000)]
2003-03-11  Corinna Vinschen  <corinna@vinschen.de>

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

21 years ago * include/stdlib.h (qsort): Remove const from first parm.
Danny Smith [Tue, 11 Mar 2003 03:00:50 +0000 (03:00 +0000)]
* include/stdlib.h (qsort): Remove const from first parm.
Thanks to: Tien-Ren Chen  <trchen@sourceforge.users.net>

21 years ago * include/rasdlg.h: New file.
Danny Smith [Mon, 10 Mar 2003 22:45:51 +0000 (22:45 +0000)]
* include/rasdlg.h: New file.
* lib/rasdlg.def: New file.
* lib/test.c: Include rasdlg.h.

21 years ago * sec_acl.cc (setacl): Don't handle DELETE flag specially.
Corinna Vinschen [Mon, 10 Mar 2003 16:25:48 +0000 (16:25 +0000)]
* sec_acl.cc (setacl): Don't handle DELETE flag specially.
* security.cc (alloc_sd): Ditto.

21 years ago Fix typo.
Corinna Vinschen [Sun, 9 Mar 2003 22:13:27 +0000 (22:13 +0000)]
Fix typo.

21 years ago * winver.rc: Change Copyright hint to inlcude 2003.
Corinna Vinschen [Sun, 9 Mar 2003 22:13:06 +0000 (22:13 +0000)]
* winver.rc: Change Copyright hint to inlcude 2003.

21 years ago * libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.
Corinna Vinschen [Sun, 9 Mar 2003 22:10:14 +0000 (22:10 +0000)]
* libc/reent/lseekr.c (lseek_r): Use _off_t instead of off_t.

21 years ago * libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
Corinna Vinschen [Sun, 9 Mar 2003 21:52:23 +0000 (21:52 +0000)]
* libc/include/sys/config.h: Define __CYGWIN_USE_BIG_TYPES__ for
Cygwin.

21 years ago Switch to 32/64 datatypes:
Corinna Vinschen [Sun, 9 Mar 2003 21:51:00 +0000 (21:51 +0000)]
Switch to 32/64 datatypes:
* Makefile.in (OBSOLETE_FUNCTIONS): Add open acl aclcheck aclfrommode
aclfrompbits aclfromtext aclsort acltomode acltopbits acltotext chown
facl fchown fgetpos fopen freopen fseeko fsetpos fstat ftello
ftruncate getegid geteuid getgid getgrent getgrgid getgrnam getgroups
getpwuid getpwuid_r getuid initgroups lchown lseek lstat mknod mmap
seekdir setegid seteuid setgid setgroups setregid setreuid setuid stat
telldir truncate.
(NEW_FUNCTIONS): Add _open64 acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 chown32 facl32 fchown32 fgetpos64 fopen64 freopen64
fseeko64 fsetpos64 fstat64 ftello64 ftruncate64 getegid32 geteuid32
getgid32 getgrent32 getgrgid32 getgrnam32 getgroups32 getpwuid32
getpwuid_r32 getuid32 initgroups32 lchown32 lseek64 lstat64 mknod32
mmap64 seekdir64 setegid32 seteuid32 setgid32 setgroups32 setregid32
setreuid32 setuid32 stat64 telldir64 truncate64 to substitute the
above.
* cygserver_shm.h (class client_request_shm): Change uid_t and gid_t
members to __uid32_t and __gid32_t.
* cygwin.din: Add symbols acl32 aclcheck32 aclfrommode32
aclfrompbits32 aclfromtext32 aclsort32 acltomode32 acltopbits32
acltotext32 facl32 fgetpos64 fopen64 freopen64 fseeko64 fsetpos64
_fstat64 ftello64 _lseek64 mknod32 _open64.
* glob.c: Include perprocess.h.
(globtilde): Call getpwuid32 and getuid32 instead of getpwuid and
getuid.
(g_lstat): Check for applications API version to call the appropriate
typed gl_lstat function.
(g_stat): Ditto for gl_stat.
* shm.cc (client_request_shm::client_request_shm): Call geteuid32
and getegid32 instead of geteuid and getegid throughout.
* syscalls.cc (_open64): New alias for open.
(_lseek64): New alias for lseek64.
(_fstat64): New alias for fseek64.
(mknod32): New function.
(mknod): Calls mknod32 now.
* winsup.h: Make function declarations for getuid32, geteuid32,
and getpwuid32 accessible for plain C sources.  Add declarations
for getegid32 and getpwnam.
* include/cygwin/version.h: Bum API minor number to 78.
* include/sys/cygwin.h: Guard C++ specific members of struct
per_process against inclusion in plain C sources.
* include/sys/mman.h (mman): Add guard to avoid type clash when
compiling Cygwin.

21 years ago * libc/include/pwd.h: Add guards to avoid type clashes when compiling
Corinna Vinschen [Sun, 9 Mar 2003 21:08:51 +0000 (21:08 +0000)]
* libc/include/pwd.h: Add guards to avoid type clashes when compiling
Cygwin.
* libc/include/sys/stat.h: Ditto.
* libc/include/sys/unistd.h: Ditto.
* libc/sys/cygwin/sys/dirent.h: Ditto.

21 years agofix typo
Christopher Faylor [Sun, 9 Mar 2003 20:54:12 +0000 (20:54 +0000)]
fix typo

21 years ago* include/cygwin/version.h: Bump DLL minor number to 21.
Christopher Faylor [Sun, 9 Mar 2003 20:50:11 +0000 (20:50 +0000)]
* include/cygwin/version.h: Bump DLL minor number to 21.

21 years agowhitespace cleanup
Christopher Faylor [Sun, 9 Mar 2003 20:31:07 +0000 (20:31 +0000)]
whitespace cleanup

21 years agoDo some minor reformatting of 'extern "C"' use throughout.
Christopher Faylor [Sun, 9 Mar 2003 20:10:25 +0000 (20:10 +0000)]
Do some minor reformatting of 'extern "C"' use throughout.
* autoload.cc (GetSystemTimes): Define new autoload function.
* fhandler_proc.cc (proc_listing): Add cpuinfo and partitions entries.
(fhandler_proc::fill_filebuf): Add PROC_CPUINFO and PROC_PARTITIONS cases.
(format_proc_uptime): Use GetSystemTimes if available.
(read_value): New macro.
(print): New macro.
(cpuid): New function.
(can_set_flag): New function.
(format_proc_cpuinfo): New function.
(format_proc_partitions): New function.

21 years ago* winsup.api/winsup.exp: Use -nostdinc when compiling.
Christopher Faylor [Sun, 9 Mar 2003 19:46:29 +0000 (19:46 +0000)]
* winsup.api/winsup.exp: Use -nostdinc when compiling.
* Makefile.in: Specifically search compiler include directory since it is now
stripped via -nostdinc.

21 years ago.
Christopher Faylor [Sun, 9 Mar 2003 19:29:22 +0000 (19:29 +0000)]
.

21 years ago* Makefile.common: Avoid double slashes in GCC_INCLUDE.
Christopher Faylor [Sun, 9 Mar 2003 19:22:15 +0000 (19:22 +0000)]
* Makefile.common: Avoid double slashes in GCC_INCLUDE.

21 years ago * getfacl.c (username): Fix ambiguous printf calls.
Corinna Vinschen [Sun, 9 Mar 2003 19:04:23 +0000 (19:04 +0000)]
* getfacl.c (username): Fix ambiguous printf calls.
(groupname): Ditto.
(main): Ditto.

21 years ago* configure.in (gxx_include_dir): Fix typo.
DJ Delorie [Sun, 9 Mar 2003 18:43:06 +0000 (18:43 +0000)]
* configure.in (gxx_include_dir): Fix typo.
* configure: Regenerated.

21 years ago* syscalls.cc (unlink): Attempt to be more clever about setting attributes of
Christopher Faylor [Sun, 9 Mar 2003 18:10:42 +0000 (18:10 +0000)]
* syscalls.cc (unlink): Attempt to be more clever about setting attributes of
file.  Only open file in query mode to avoid having to mess with security stuff
for reading.

21 years ago * winsup.api/ltp/fork10.c (main): Remove non-portable declaration
Corinna Vinschen [Sun, 9 Mar 2003 17:53:06 +0000 (17:53 +0000)]
* winsup.api/ltp/fork10.c (main): Remove non-portable declaration
of lseek.

21 years ago * rmsym: Fix regular expression.
Corinna Vinschen [Sun, 9 Mar 2003 17:13:46 +0000 (17:13 +0000)]
* rmsym: Fix regular expression.

21 years ago* Makefile.in: Use "cygwin0" rather than "new-cygwin" to denote in-build-tree
Christopher Faylor [Sun, 9 Mar 2003 17:03:05 +0000 (17:03 +0000)]
* Makefile.in: Use "cygwin0" rather than "new-cygwin" to denote in-build-tree
version of library or dll.
* config/default.exp: Ditto.
* winsup.api/winsup.exp: Ditto.

21 years ago* Makefile.in: Change from using new-* to cygwin0 for temporary targets.
Christopher Faylor [Sun, 9 Mar 2003 17:01:41 +0000 (17:01 +0000)]
* Makefile.in: Change from using new-* to cygwin0 for temporary targets.

21 years ago * include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.
Corinna Vinschen [Sun, 9 Mar 2003 16:05:54 +0000 (16:05 +0000)]
* include/cygwin/socket.h: Set SOMAXCONN to Winsock2 value.

21 years ago* syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE to
Christopher Faylor [Sun, 9 Mar 2003 00:10:29 +0000 (00:10 +0000)]
* syscalls.cc (unlink): Always attempt to use FILE_FLAG_CLOSE_ON_DELETE to
delete files since this allows us to preserve the protection of hard linked
files.
(link): Generate full path for potentially recalculated .lnk target.

21 years agomissed in last checkin
Christopher Faylor [Sat, 8 Mar 2003 19:22:08 +0000 (19:22 +0000)]
missed in last checkin

21 years agoRevert below changes regarding _pinfo::cmdline.
Christopher Faylor [Sat, 8 Mar 2003 17:56:13 +0000 (17:56 +0000)]
Revert below changes regarding _pinfo::cmdline.

21 years ago * external.cc (cygwin_internal): Change n to __off64_t to match change
Corinna Vinschen [Sat, 8 Mar 2003 16:44:25 +0000 (16:44 +0000)]
* external.cc (cygwin_internal): Change n to __off64_t to match change
of _pinfo::cmdline.
* fhandler.h (class fhandler_virtual): Change filesize member to
__off64_t.
* fhandler_proc.cc (format_proc_meminfo): Change to return __off64_t.
(format_proc_stat): Ditto.
(format_proc_uptime): Ditto.
* fhandler_process.cc (format_process_stat): Ditto.
(format_process_status): Ditto.
(format_process_statm): Ditto.
* pinfo.cc (_pinfo::cmdline): Expect __off64_t parameter.
* pinfo.h (class _pinfo): Change declaration of cmdline accordingly.

21 years ago* libc/include/sys/unistd.h: Guard getopt.h call to force only declaration of
Christopher Faylor [Sat, 8 Mar 2003 04:57:41 +0000 (04:57 +0000)]
* libc/include/sys/unistd.h: Guard getopt.h call to force only declaration of
getopt and avoid getopt_long declaration.
* libc/sys/cygwin/include/unistd.h: Remove.

21 years ago* path.h (PATH_LNK): New enum val.
Christopher Faylor [Sat, 8 Mar 2003 03:36:39 +0000 (03:36 +0000)]
* path.h (PATH_LNK): New enum val.
(path_conv::is_lnk_symlink): New function.  True if path represents .lnk style
symlink.
* path.cc (check_shortcut): Set PATH_LNK in pflags when appropriate.
(symlink_info::check): Ditto.  Remove PATH_LNK from pflags initially.
* syscalls.cc (unlink): Always remove readonly attribute from a symlink
regardless of type.
(link): (from Corinna Vinschen) Allow links to symlinks.  Reset attributes on a
symlink after successful link creation.
(chmod): Use is_lnk_symlink where appropriate.
(rename): Ditto.
* tty.cc (create_tty_master): Call GetComputerName instead of
cygwin_gethostname.  Set ut_id.
* syscalls.cc (login): Call endutent.
(setutent): Do not seek after a fresh open.

21 years ago * configure.host: Define stdio64_dir for Cygwin.
Corinna Vinschen [Fri, 7 Mar 2003 20:41:49 +0000 (20:41 +0000)]
* configure.host: Define stdio64_dir for Cygwin.
* libc/include/stdio.h: Change definition of fpos_t to fulfill
Cygwin 64bit file access requirements.
Drop definition of f*64() functions when compiled for Cygwin.
* libc/include/sys/config.h: Define __LARGE64_FILES for Cygwin.
* libc/reent/lseek64r.c: Use _off64_t instead of off64_t.
* libc/stdio64/local64.h: Use _fpos64_t instead of fpos64_t.

21 years ago * syscalls.cc (seteuid32): Fix formatting.
Corinna Vinschen [Fri, 7 Mar 2003 16:35:56 +0000 (16:35 +0000)]
* syscalls.cc (seteuid32): Fix formatting.

21 years ago * winsup.api/known_bugs.tcl: Remove fsync01, setregid01 and setreuid01
Corinna Vinschen [Fri, 7 Mar 2003 15:59:58 +0000 (15:59 +0000)]
* winsup.api/known_bugs.tcl: Remove fsync01, setregid01 and setreuid01
from list of known bugs.

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