73afb2abb0* cygthread.cc (cygthread::stub): Initialize stack pointer earlier. (cygthread::simplestub): Initialize stack pointer. (cygthread::terminate_thread): Account for possibility that stack pointer has not been set. Issue warnings for unusual conditions.
Christopher Faylor
2003-04-11 02:16:17 +0000
518a04c40bPierre's update for mkgroup/mkpasswd
Joshua Daniel Franklin
2003-04-10 23:27:13 +0000
ca78fd5f10Setup updates. More about installing everything, not using setup to mirror.
David Starks-Browning
2003-04-10 20:09:35 +0000
a028e700292003-04-09 Chris Demetriou <cgd@broadcom.com>
Jeff Johnston
2003-04-10 20:07:57 +0000
ac5ec96137* cygwin.din: Export wcscoll, wcswidth and wcwidth. * include/cygwin/version.h: Bump API minor number.
Corinna Vinschen
2003-04-10 08:22:42 +0000
e5d6d53590* cygthread.h: Change 'avail' cygthread element to 'inuse' throughout. * cygthread.cc: Ditto. (cygthread::stub): Don't initialize already initialized events. (cygthread::freerange): Don't create thread here. (cygthread::cygthread): Create thread here. Die if thread not created. (cygthread::operator new): Simplify. Just grab a thread structure from the pool. Don't try to start the thread. (cygthread::terminate_thread): Don't close event handles. Just reuse them. Call MEM_RELEASE rather than MEM_DECOMMIT (from Joe Buehler).
Christopher Faylor
2003-04-10 05:27:34 +0000
57efd527df2003-04-10 Pierre Humblet <pierre.humblet@ieee.org>
Pierre Humblet
2003-04-10 01:14:18 +0000
6f48c0ae7a* libc/machine/sh/memset.S: Avoid clobbering volatile objects following a tiny to-be-set array in the same quadword.
Joern Rennecke
2003-04-09 10:48:02 +0000
8f8d09c041* libc/include/wchar.h: Add definitions for wcswidth and wcwidth. * libc/string/Makefile.am: Add wcswidth.c and wcwidth.c * libc/string/Makefile.in: Regenerated. * libc/string/wcswidth.c: New file. * libc/string/wcwidth.c: New file. * libc/string/wcstrings.tex: Add wcswidth and wcwidth.
Corinna Vinschen
2003-04-09 10:42:12 +0000
774d9e8282* mips.h: Correct comment typo.
Alan Modra
2003-04-09 00:12:24 +0000
c6e74c4c82add lack of '~' to ash missing features
David Starks-Browning
2003-04-08 22:24:27 +0000
ca81cd60ce* fhandler_console.cc (fhandler_console::read) Handle certain key up events, to allow pasting accented characters and typing them using the "alt + numerics" sequences. * include/limits.h (IOV_MAX): Set to a number which is small enough to use in an array.
Christopher Faylor
2003-04-08 21:19:33 +0000
e3501c78ca* winsup.api/pthread/condvar9.c: Fix test.
Thomas Pfaff
2003-04-08 18:29:37 +0000
29d0fe3f74* include/time.h (strftime): Remove duplicate declaration.
Danny Smith
2003-04-07 01:31:37 +0000
3f26a1aeb72003-04-07 Marcel Telka <telka@users.sourceforge.net>
Danny Smith
2003-04-07 01:06:23 +0000
9dbe3289ee* cygthread.h (cygthread::avail): Make LONG for easier use with Interlocked* functions. * cygthread.cc (cygthread::init): Eliminate unneeded muto. (cygthread::operator new): Don't lock. Instead change use of avail variable into tri-state: available (1), not available (-1), uninitialized (0). (cygthread::terminate_thread): Set avail to uninitialized. (cygthread::detach): Eliminate local 'avail'. Always set avail to 1 unless signalled. * cygthread.cc (cygthread::operator new): Be more defensive when messing with
Christopher Faylor
2003-04-04 18:52:11 +0000
5557a0daceNamespace cleanup for the tic4x target. Replace s/c4x/tic4x/ and s/c3x/tic3x/. 2003 copyright update
Svein Seldal
2003-04-04 08:15:15 +0000
8aed2a11a8add comments
Christopher Faylor
2003-04-04 06:03:52 +0000
b410f1680f* cygthread.cc (operator new): Be more defensive when messing with threads that are marked "unavailable".
Christopher Faylor
2003-04-04 05:58:06 +0000
a61bf8c369* fhandler_console.cc (CONVERT_LIMIT): Use a size for the 21st century.
Christopher Faylor
2003-04-03 14:05:30 +0000
40c3b2d03b* libc/machine/sh/memset.S: Fix problem with alloco region exceeding destination region for length >= 88 bytes, start & 0x16 == 0, end & 0x1f == 18.
Joern Rennecke
2003-04-03 13:06:02 +0000
d99c61760e* external.cc (check_ntsec): New function. (cygwin_internal): Add CW_CHECK_NTSEC handling to call check_ntsec() from applications. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_CHECK_NTSEC. * cygthread.cc (cygthread::new): Add more defensive debugging.
Christopher Faylor
2003-04-02 23:01:11 +0000
15fd016389* xtensa-config.h: Remove comment indicating that this is a generated file.
Bob Wilson
2003-04-02 16:55:26 +0000
2d388e433f* fhandler.cc (fhandler_base::fstat): Set the uid and gid fields from the current effective ids. * fhandler_socket.cc (fhandler_socket::fstat): Keep the uid and gid set by fhandler_base::fstat. * security.cc (get_nt_attribute): Do not test wincap.has_security (). (get_nt_object_attribute): Ditto. (get_file_attribute): Add test for wincap.has_security (). (get_object_attribute): Ditto.
Corinna Vinschen
2003-04-01 17:17:46 +0000
31ee99a41e* libc/stdio/sscanf.c: Update flags description. * libc/stdio/vfscanf.c: Add CHAR flag value to denote 8 bit target type. (__svfscanf_r): Add 'hh' and 'll' handling.
Corinna Vinschen
2003-04-01 16:27:52 +0000
5340a2ed6dAdd Xtensa port
Nick Clifton
2003-04-01 15:50:31 +0000
d78045eed0* libc/sys/cygwin/sys/dirent.h (struct DIR): Change type of __d_position member to _off_t.
Corinna Vinschen
2003-04-01 14:53:02 +0000
4663241541Fixes for iWMMXt contribution.
Nick Clifton
2003-04-01 13:08:06 +0000
333879e77b* exceptions.cc (setup_handler): Make sure winapi lock is released when exiting loop.
Christopher Faylor
2003-03-31 21:27:06 +0000
ce5435df0b* include/_mingw.h (_CRTIMP): Make conditional on __USE_CRTIMP.
Danny Smith
2003-03-31 21:11:13 +0000
ebb73170e82003-03-30 Hans E. Molin <kvasi@users.sourceforge.net>
Danny Smith
2003-03-30 21:19:04 +0000
a2105d9387* include/cygwin/fs.h: Remove unneeded include. * include/cygwin/in.h: Include sys/types.h rather than cygwin/types.h.
Christopher Faylor
2003-03-30 17:28:52 +0000
c453f404102003-03-30 Danny Smith <dannysmith@users.sourceforge.net>
Danny Smith
2003-03-29 21:31:15 +0000
8304de2e34* syscalls.cc: Slightly cleanup all utmp functions. (login): Use mutex to secure against concurrent access to wtmp file. (logout): Rewrite using POSIX calls. (utmp_fd): Initialized to -1 now. Any value < 0 is treated as closed in subsequent functions. (utmp_readonly): New variable, indicating utmp file open for reading only. (internal_setutent): New function implementing setutent(). (setutent): Call internal_setutent now. (endutent): Reset utmp_readonly. (getutent): Return immediately if utmp file can't be opened. (getutid): Ditto. (getutline): Ditto. (pututline): Ditto. Use mutex to secure against concurrent access to utmp file.
Corinna Vinschen
2003-03-29 12:44:01 +0000
d9c55a44d6* include/commctrl.h (ANIMATE_CLASS,HOTKEY_CLASS,PROGRESS_CLASS, STATUSCLASSNAME,TOOLBARCLASSNAME,TOOLTIPS_CLASS,TRACKBAR_CLASS, UPDOWN_CLASS,WC_COMBOBOXEX,WC_HEADER,WC_IPADDRESS,WC_LISTVIEW, WC_TABCONTROL,WC_TREEVIEW): Move UNICODE mappings out of RC_INVOKED guard. (WC_PAGESCROLLER,WC_NATIVEFONTCTL,WC_BUTTON,WC_STATIC,WC_EDIT, WC_LISTBOX,WC_COMBOBOX,WC_SCROLLBAR): Add defines.
Danny Smith
2003-03-29 05:06:53 +0000
b7f68d3e9d* Makefile.common (ALL_CXXFLAGS): Make normal '=' type variable so that CXXFLAGS is properly interpreted.
Christopher Faylor
2003-03-29 04:15:52 +0000
247808c13b2003-03-28 Bang Jun-Young <junyoung@netbsd.org>
Danny Smith
2003-03-29 01:33:41 +0000
a7ab35c1bb* include/sys/cygwin.h: Declare cygwin_internal as unsigned long. * external.cc (cygwin_internal): Define as unsigned long. * include/sys/cygwin.h: Move cygwin_internal outside of WINVER conditional.
Christopher Faylor
2003-03-28 14:21:40 +0000
eff6c00e19* thread.cc: Change 1==foo equations to foo==1 throughout.
Thomas Pfaff
2003-03-27 19:57:06 +0000
15648790f4* thread.h: Change class names, methods, members and local vars according to the GNU coding style. * thread.cc: Ditto. * dcrt0.cc (dll_crt0_1): Rename pthread::initMainThread call to pthread::init_mainthread. * pthread.cc (pthead_getsequence_np): Rename pthread::isGoodObject call to pthread::is_good_object.
Thomas Pfaff
2003-03-27 19:52:20 +0000
9b15aa7559* winsup.api/pthread/condvar7.c (mythread): Cast pthread_mutex_unlock argument of pthread_cleanup_push to void *, preventing a compiler warning / testsuite failure. * winsup.api/pthread/condvar9.c (mythread): Likewise. * winsup.api/pthread/rwlock7.c (main): Use ftime instead of _ftime.
Thomas Pfaff
2003-03-27 19:44:41 +0000
921587de50note mount binary default.
Christopher Faylor
2003-03-27 18:46:16 +0000
82935b4237Add iWMMXt support to ARM simulator
Nick Clifton
2003-03-27 17:13:33 +0000
98b36ec8ed* autoload.cc: added RegGetKeySecurity() * security.cc (get_nt_object_attribute): use RegGetKeySecurity() for performance.
Corinna Vinschen
2003-03-27 09:40:25 +0000
2f4be7367e* include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW], TranslateName[AW]): Add prototypes. * lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW], TranslateName[AW]): Add stubs.
Danny Smith
2003-03-27 08:10:46 +0000
6c7303cd5f* setup-net.sgml: Make suggested additions to setup.exe documentation
Joshua Daniel Franklin
2003-03-27 04:56:52 +0000
498268ef012003-03-27 Vladimir Michl <michlv@users.sourceforge.net>
Danny Smith
2003-03-27 02:14:14 +0000
fc7c546387* include/w32api.h: Increment version to 2.4. * Makefile.in: Ditto.
Earnie Boyd
2003-03-26 23:50:25 +0000
200738932fMove some ddk defines to winnt.h as per MSDN documentation
Danny Smith
2003-03-26 22:28:01 +0000
85738bf7e3Joe Buehler <jhpb@draco.hekimian.com> * fork.cc (fork_parent): Don't copy signals from parent to child here. * sigproc.cc (proc_subproc): Copy signals from parent to child pinfo here.
Christopher Faylor
2003-03-26 04:18:01 +0000
b2b9de805fAdd iWMMXt support
Nick Clifton
2003-03-25 20:56:01 +0000
ce7a361072* cygcheck.cc (dump_sysinfo): Ensure that CYGWIN environment variable is correctly set.
Christopher Faylor
2003-03-25 01:20:04 +0000
8fdbcd1279* setup-net.sgml: Improve setup.exe documentation
Joshua Daniel Franklin
2003-03-23 19:43:33 +0000
0fd535061d* setup-net.sgml: Improve setup.exe documentation
Joshua Daniel Franklin
2003-03-23 19:35:52 +0000
489d990b9d* setup-net.sgml: Improve setup.exe documentation
Joshua Daniel Franklin
2003-03-23 16:23:52 +0000
b2ee9a5565*** empty log message ***
Thomas Pfaff
2003-03-23 10:56:19 +0000
9306ba2ee4* 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.
Thomas Pfaff
2003-03-23 10:52:02 +0000
522fcf1615* setup-net.sgml: Document setup.exe
Joshua Daniel Franklin
2003-03-22 21:16:25 +0000
7d37d0459e* setup-net.sgml: Document setup.exe
Joshua Daniel Franklin
2003-03-22 20:03:41 +0000
ff3ef36d88* pipe.cc (fhandler_pipe::dup): Don't dup input_handle if it doesn't exist.
Christopher Faylor
2003-03-22 18:30:58 +0000
ca04f61fc7* syscalls.cc (unlink): Be more defensive when SetFileAttributes is called. Fix typo in debugging output.
Christopher Faylor
2003-03-22 17:48:40 +0000
89e7a1ced9* fork.cc: Conditionalize use of slow_pid_reuse throughout. It's not necessary for newer versions of bash.
Christopher Faylor
2003-03-22 01:45:18 +0000
a13b67a6d6* 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.
Martin Schwidefsky
2003-03-21 13:26:21 +0000
e6bdc6c5eb2003-03-20 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2003-03-20 17:23:57 +0000
50b9d1a8f1Add Cirrus Maverick support to arm simulator
Nick Clifton
2003-03-20 12:25:07 +0000
fa85038b5f* fhandler_socket.cc (fhandler_socket::sendto): Restrict EPIPE and SIGPIPE handling to connection oriented sockets. Add comment.
Corinna Vinschen
2003-03-20 08:53:28 +0000
4da34970de* 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.
Christopher Faylor
2003-03-20 01:34:53 +0000
8e3121c535*lib/ndis.def (NdisAllocateMemory): Correct stdcall suffix. Thanks to: Vladimir Michl <michlv@users.sourceforge.net> (NdisUpdateSharedMemory): Likewise. (NdisMFreeSharedMemory: Likewise. (NdisMMapIoSpace: Likewise.
Danny Smith
2003-03-20 00:44:06 +0000
5df1410028* winsup.api/pthread/condvar7.c: New test. * winsup.api/pthread/condvar9.c: Ditto.
Thomas Pfaff
2003-03-18 19:51:58 +0000
f592b05df1* 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.
Thomas Pfaff
2003-03-18 19:49:38 +0000
0bad7c2e26* winsup.api/pthread/mutex1n.c: New test. * winsup.api/pthread/mutex6n.c: Ditto. * winsup.api/pthread/mutex7n.c: Ditto.
Thomas Pfaff
2003-03-18 19:42:43 +0000
2ff03dc2e0* 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.
Thomas Pfaff
2003-03-18 19:39:21 +0000
dcd350f0ec* 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.
Corinna Vinschen
2003-03-18 09:30:03 +0000
bc1658ad66* 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.
Danny Smith
2003-03-18 09:19:21 +0000
eeb65b9513* Makefile.common (w32api_lib): Default to system w32api directory if w32api is missing from source.
Christopher Faylor
2003-03-17 23:13:26 +0000
259db89238merge from gcc
DJ Delorie
2003-03-17 23:09:54 +0000
298b2249e6* Makefile.common: Fix typo from previous checkin.
Christopher Faylor
2003-03-17 22:35:53 +0000
237ab58c28* 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.
Christopher Faylor
2003-03-17 22:27:07 +0000
c51dc9c245* glob.c (g_lstat): Change API minor test to match API minor number change in previous patch. (g_stat): Ditto.
Corinna Vinschen
2003-03-17 20:44:10 +0000
f194ba1ff3* 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.
Christopher Faylor
2003-03-17 19:16:15 +0000
3543669fd3* 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.
Christopher Faylor
2003-03-17 19:08:11 +0000
db14b4abb7merge from gcc
DJ Delorie
2003-03-17 18:01:05 +0000