summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * include/string.h (strcasecmp): Make extern __inline__.Danny Smith2002-10-112-3/+15
| | | | | (strncasecmp): Likewise. (wcscmpi): Likewise.
* * window.cc (gethwnd): Use SetThreadPriority method.Christopher Faylor2002-10-102-8/+11
|
* * Makefile.in (new-cygwin1.dll): Reorganize library order.Christopher Faylor2002-10-104-15/+24
| | | | | | | * dcrt0.cc (do_exit): Move thread stuff after vfork stuff or threads are terminated during vfork. * sigproc.cc (proc_terminate): Grab proc lock prior to signalling subproc thread exit to avoid an extra "wait-for-thread-to-exit".
* * cygthread.cc (cygthread::stub): Don't create an event for "cygself" threads.Christopher Faylor2002-10-098-27/+63
| | | | | | | | | | | | | | | | | | | | | Assume that they exit via an ExitThread call. * cygthread.h (cygthread::SetThreadPriority): New function. (cygthread::zap_h): New function. * dcrt0.cc (do_exit): Move cygthread::terminate earlier and establish exit_state guard. * fhandler.h (fhandler_tty_master::output_thread): Delete. * fhandler_tty.cc (fhandler_tty_master::init): Set priority for threads via method. Zap handles when done. Don't treat process_output specially. (process_output): Call ExitThread directly. (fhandler_tty_master::fixup_after_fork): Don't worry about output_thread. (fhandler_tty_master::fixup_after_exec): Ditto. * sigproc.cc (proc_terminate): Don't detach from hwait_subproc. Just let it exit. (sigproc_init): Close thread handle after initialization. (wait_sig): Use GetCurrentThread() as SetThreadPriority call rather than *event* handle. Call ExitThread directly on termination. (wait_subproc): Call ExitThread directly on termination. * tty.cc (tty_list::terminate): Don't attempt t detach from output_thread.
* * cygheap.cc (dup_now): Make fatal error a little more informative.Christopher Faylor2002-10-098-49/+108
| | | | | | | | | | | | | | | | | | | | (cygheap_setup_for_child): Detect when default size of shared region is less than the current size and allocate that much. (_cbrk): Just return NULL on inability to allocate. (_cmalloc): Ditto. * cygheap.h (CYGHEAPSIZE): Change size to reflect newer, tinier fhandler sizes. * spawn.cc (av::error): New element, reflects potential errno from cmalloc. (av::~av): Don't free NULL pointers. (av::replace0_maybe): Detect out-of-memory conditions. (av::dup_maybe): Ditto. (av::dup_all): Ditto. (av::unshift): Ditto. (spawn_guts): Set errno and return if argv creation ran into problems. * fhandler.h (fhandler_union): Change member names to something safer. * fhandler_console.cc (fhandler_console::get_tty_stuff): Always set fhandler_console::dev_state regardless of whether shared region is initialized. * cygthread.cc (cygthread::runner): Use ExitThread rather than return (planning for future).
* 2002-10-08 Heiko Gerdau <hg@technosis.de>Danny Smith2002-10-095-0/+101
| | | | | | | | * include/oleacc.h: New file. * include/winuser.h (ENDSESSION_LOGOFF) Add define. (OBJID_*) Add defines. * lib/uuid.c: Add DEFINE_GUID for IID_IAccessible. * lib/test.c: Include oleacc.h.
* 2002-10-08 Heiko Gerdau <hg@technosis.de>Danny Smith2002-10-082-0/+18
| | | | | | * include/tchar.h (_tchdir. _tgetcwd, _tgetdcwd. _tmkdir, _trmdir, _tstat): Add ASCII and UNICODE mappings.
* * fhandler.h (dev_console): New class.Christopher Faylor2002-10-083-310/+296
| | | | | | | | | (fhandler_console::dev_state): New class element. (fhandler_console::mouse_aware): Use dev_state element. (fhandler_console::get_tty_stuff): Declare new function. * fhandler_console.cc: Use dev_state fhandler_console element, throughout. (fhandler_console::get_tty_stuff): Move to fhandler_console class. Incorporate dev_console information. Move constructor stuff here.
* * dtable.cc (dtable::init_std_file_from_handle): Try to mimic standard openChristopher Faylor2002-10-082-2/+13
| | | | | behavior with files redirected from stdin/stdout/stderr, i.e., fmode settings take precedence over mount settings.
* * dtable.cc (unknown_file): New variable.Christopher Faylor2002-10-073-8/+16
| | | | | | (dtable::init_std_file_from_handle): Don't set binmode if we couldn't determine the actual file name on stdin/stdout/stderr. (handle_to_fn): Return unknown_file when can't determine filename.
* * dcrt0.cc (do_exit): Call DisableThreadLibraryCalls since we don't need toChristopher Faylor2002-10-073-12/+14
| | | | | track thread detaches. * init.cc (dll_entry): Reorganize slightly. Fix api_fatal message.
* * mingwex/math/powil.c: Rename powil to __powil.Danny Smith2002-10-068-67/+1370
| | | | | | | | | | | | | | | * mingwex/math/powl.c: Adjust declaration and call to __powil. Remove comment on powil. * mingwex/math/powi.c: New file. * mingwex/math/powif.c: New file. * mingwex/math/pow.c: New file. * mingwex/math/cephes_mconf.h. Add double and float versions of constants. (polevl): Add double precision function. (p1evl): Likewise. * mingwex/Makefile.in (MATH_DISTFILES): Add pow.c, powi.c, powif.c. (MATH_OBJS): Add pow.o, powi.o, powif.o.
* 2002-10-06 Casper Hornstrup <chorns@it.dk>Earnie Boyd2002-10-0694-0/+53242
| | | | | | | | | | | | | | | | | | | | | | | | * include/ddk: New subdir. * lib/ddk: Ditto. * include/ddk/(atm.h, batclass.h, cfg.h, cfgmgr32.h, d4drvif.h, d4iface.h, ddkmapi.h, hidclass.h, hidpi.h, hidusage.h, mcd.h, miniport.h, minitape.h, mountdev.h, mountmgr.h, ndis.h, ndisquid.h, ndistapi.h, ndisvan.h, netevent.h, netpnp.h, netdev.h, ntapi.h, ntdd8042.h, ntddbeep.h, ntddcdrm.h, ntddcdvd.h, ntddchgr.h, ntdddisk.h, ntddk.h, ntddkbd.h, ntddmou.h, ntddndis.h, ntddpar.h, ntddpcm.h, ntddscsi.h, ntddser.h, ntddstor.h, ntddtape.h, ntddtdi.h, ntddvdeo.h, ntddvol.h, ntifs.h, ntpoapi.h, ntstatus.h, parallel.h, pfhook.h, poclass.h, scsi.h, scsiscan.h, scsiwmi.h, smbus.h, srb.h, storport.h, tdi.h, tdiinfo.h, tdikrnl.h, tdistat.h, tvout.h, upssvc.h, usb.h, usb100.h, usbcamdi.h, usbdi.h, usbioctl.h, usbiodef.h, usbscan.h, usbuser.h, video.h, videoagp.h, win2k.h, winddi.h, winddk.h, winnt4.h, winxp.h, ws2san.h, xfilter.h): New files. * lib/ddk/(Makefile.in, apcups.def, cfgmgr32.def, dxapi.def, hal.def, hid.def, hidparse.def, mcd.def, ndis.def, ntoskrnl.def, scsiport.def, tdi.def, usbcamd.def, usbcamd2.def, videoprt.def, win32k.def): Ditto.
* * cygthread.cc (cygthread::stub): Very minor cleanup.Christopher Faylor2002-10-063-7/+16
| | | | | | | | (cygthread::stub): Report overflows in cygwin thread pool when DEBUGGING is on and special environment variable is not set. (cygthread::terminate): Set event only when event actually exists. * exceptions.cc (signal_exit): Set priority of main thread to low before setting current thread to high.
* whitespaceChristopher Faylor2002-10-051-1/+1
|
* 2002-10-04 Steven Edwards <Steven_Ed4153@yahoo.com>Danny Smith2002-10-042-12/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | * lib/ntdll.def (NtAccessCheck, NtAdjustPrivilegesToken, NtCreateKey, NtDeleteKey, NtDeleteValueKey, NtEnumerateKey, NtEnumerateValueKey, NtOpenKey, NtOpenProcessToken, NtOpenThreadToken, NtQueryInformationToken, NtQueryKey, NtQueryValueKey, NtSetSecurityObject, NtSetValueKey, RtlAddAccessAllowedAce, RtlCreateAcl, RtlCreateSecurityDescriptor, RtlCreateUnicodeStringFromAsciiz, RtlGetAce, RtlGetControlSecurityDescriptor, RtlGetDaclSecurityDescriptor,RtlGetGroupSecurityDescriptor, RtlGetOwnerSecurityDescriptor,RtlGetSaclSecurityDescriptor, RtlImpersonateSelf, RtlIsTextUnicode, RtlLargeIntegerAdd, RtlLengthSecurityDescriptor, RtlMakeSelfRelativeSD, RtlMultiByteToUnicodeN RtlMultiByteToUnicodeSize, RtlOpenCurrentUser, RtlSetDaclSecurityDescriptor, RtlSetGroupSecurityDescriptor, RtlSetOwnerSecurityDescriptor, RtlSetSaclSecurityDescriptor, RtlValidSecurityDescriptor, ZwAccessCheck, ZwAdjustPrivilegesToken, ZwCreateKey, ZwDeleteValueKey, ZwEnumerateKey, ZwEnumerateValueKey, ZwOpenKey, ZwOpenProcessToken, ZwOpenThreadToken, ZwQueryInformationToken, ZwQueryKey, ZwQueryValueKey ZwSetSecurityObject, ZwSetValueKey): Added missing exports. ChangeLog whitespace cleanup.
* 2002-10-04 "KJK::Hyperion" <noog@libero.it>Danny Smith2002-10-042-3/+9
| | | | | | *include/windef.h (WPARAM): Update typedef. (LPARAM): Ditto. (LRESULT): Ditto.
* 2002-10-04 "KJK::Hyperion" <noog@libero.it>Danny Smith2002-10-042-0/+28
| | | | * include/shlobj.h (CSIDL_*): Add defines.
* * include/cytpe.h (_imp____mbcur_max): Add missing ';'.Danny Smith2002-10-032-2/+7
| | | | (_imp____mbcur_max_dll): Likewise.
* * include/fcntl.h (_fmode): Remove declarations andDanny Smith2002-10-038-53/+53
| | | | | | | | | | | | | | compatibility defines. (_setmode, setmode): Remove prototypes. * include/stdlib (_fmode): Add declarations and compatibility defines. Change type to int. * include/io.h (_setmode, setmode): Add prototypes. * samples/fmode/all.c: Adjust includes. * samples/fmode/test.c: Likewise. * crt1.c (_CRT_fmode): Declare as int. * CRTfmode.c (_CRT_fmode): Likewise. * include/stdlib: Remove comment about MB_CUR_MAX.
* * include/stdlib.h (_imp____mbcur_max): add missing ';'.Danny Smith2002-10-022-2/+7
| | | | (_imp____mbcur_max_dll): Likewise.
* 2002-10-01 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-09-302-3/+12
| | | | | | | * thread.cc (pthread_key::keys): Copy on fork. Add a comment explaining why. (pthreadNull::_instance): Copy on fork. Absolutely no state exists in pthreadNull.
* * cygserver_transport_pipes.cc (transport_layer_pipes::accept):Conrad Scott2002-09-303-2/+7
| | | | Remove trailing \n from debug_printf.
* whitespaceChristopher Faylor2002-09-309-39/+39
|
* * thread.cc (pthread_mutex::initMutex): Remove \n from api_fatal.Christopher Faylor2002-09-302-2/+5
|
* * thread.cc (pthread::precreate): Use explicit "no inherit" option whenChristopher Faylor2002-09-302-14/+21
| | | | | | creating mutex. (pthread_mutex::nativeMutex::init): Ditto. (semaphore::semaphore): Ditto.
* * thread.cc (pthread_key::keys): Do not copy on fork.Christopher Faylor2002-09-302-3/+9
| | | | | (pthread_mutex::mutexInitializationLock): Ditto. (pthreadNull::_instance): Ditto.
* * exceptions.cc (unused_sig_wrapper): Still need additional level ofChristopher Faylor2002-09-302-2/+8
| | | | indirection when setting errno.
* 2002-09-30 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-09-303-18/+58
| | | | | | | | | | * thread.cc (pthread_mutex::initMutex): Use the wrapper init call. (pthread_mutex::nativeMutex::init): Implement. (pthread_mutex::nativeMutex::lock): Ditto. (pthread_mutex::nativeMutex::unlock): Ditto. (pthread_mutex::init): Use the wrapper lock and unlockcalls. * thread.h (pthread_mutex): Move mutexInitializationLock into a nativeMutex wrapper class.
* Remove \n from calls to strace class printfs throughout.Christopher Faylor2002-09-3017-50/+54
|
* remove newlineChristopher Faylor2002-09-301-1/+1
|
* * exceptions.cc (unused_sig_wrapper): Accommodate newer compilers.Christopher Faylor2002-09-303-5/+14
|
* * security.cc (allow_ntsec): Default to zero.Christopher Faylor2002-09-303-3/+7
| | | | | * environ.cc (environ_init): Set allow_ntsec to TRUE by default, assuming OS allows it.
* * cygpath.cc (close_arg): Remove unused static.Christopher Faylor2002-09-305-12/+20
| | | | | | | * mkgroup.c (enum_local_users): Avoid compiler warning. (enum_users): Ditto. * mkpasswd.c: Ditto throughout. * ssp.c: Ditto throughout.
* * environ.cc (environ_init): Avoid a compiler warning.Christopher Faylor2002-09-3010-16/+24
| | | | | | | | * path.cc (path_conv::check): Ditto. * path.h (path_conv::operator int): Ditto. * regex/engine.c: Ditto throughout. * regex/regcomp.c: Ditto throughout. * regex/regexec.c: Ditto throughout.
* * thread.cc: Use "%E" in *_printf throughout rather than calling GetLastError.Christopher Faylor2002-09-302-158/+152
| | | | | | GNUify comments. (__pthread_mutex_lock): Don't return error on EBUSY since that just means that the mutex has already been initialized.
* GNUify slightly.Christopher Faylor2002-09-291-10/+9
|
* 2002-09-30 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-09-294-14/+73
| | | | | | | | | | | | | | | | | | | | | * pthread.cc (pthread_mutex_init): Use new pthread_mutex::init. * thread.cc: Change __pthread_mutex_init to pthread_mutex::init throughout. (MTinterface::Init): Initialise pthread_mutex support. (pthread_mutex::mutexInitializationLock): Instantiate. (pthread_mutex::initMutex): New method. (__pthread_cond_dowait): Don't dereference untrusted pointers. Use the new pthread_mutex::init method. (__pthread_condattr_init): Don't dereference untrusted pointers. (__pthread_mutex_init): Rename to pthread_mutex::init. Lock and release mutexInitializationLock to prevent races on mutex initialisation. * thread.h (pthread_mutex::initMutex): New method, initialise pthread_mutex supporting state on process initialisation. (pthread_mutex::init): Initialise a single mutex. (pthread_mutex::mutexInitializationLock): A win32 mutex for syncronising pthread mutex initialisation. (__pthread_mutex_init): Remove this.
* Add missing ChangeLog entry.Christopher Faylor2002-09-291-0/+4
|
* * cygthread.h (cygthread::terminate): Declare new function.Christopher Faylor2002-09-295-89/+125
| | | | | | | | | (cygthread::initialized): Change to 'int'. * cygthread.cc (cygthread::stub): Exit thread if initialized < 0. (cygthread::new): Ditto. (cygthread::runner): Ditto. Set initialized using xor to preserve sign. (cygthread::terminate): New function. * dcrt0.cc (do_exit): Call cygthread::terminate.
* * Makefile.in (check): Be more defensive when creating testsuite config.status.Christopher Faylor2002-09-282-1/+6
|
* 2002-09-27 Robert Collins <rbtcollins@hotmail.com>Robert Collins2002-09-273-4/+23
| | | | | | | | | | | | * thread.cc (pthread_key::run_destructor): Run_destructor is not const as it needs to set the key value. * thread.h (pthread_key::run_destructor): Ditto. 2002-09-27 Robert Collins <rbtcollins@hotmail.com> * thread.cc (pthread_key::run_destructor): Follow opengroup algorithm. I.e. only run the destructor NON-NULL key values, and reset the key to NULL before running the destructor. Reported by Thomas Pfaff.
* * cygrun.c (main): Fix setting of CYGWIN environment variable.Christopher Faylor2002-09-252-2/+11
| | | | * Makefile.in: Remove linking of unnecessary libraries.
* * fhandler_proc.cc (format_process_stat): make ctty a real device number.Christopher Faylor2002-09-254-34/+31
| | | | (format_process_status): use effective uid/gid as real and saved uid/gid.
* * errno.cc (errmap): Map ERROR_INVALID_ADDRESS to new errno codeCorinna Vinschen2002-09-243-6/+22
| | | | | | | | EOVERFLOW. (_sys_errlist): Add entries for EILSEQ and EOVERFLOW. (strerror): Ditto. * mmap.cc (map_map): Set errno in case of error. (mmap64): Remove setting errno explicitely to ENOMEM.
* * mmap.cc (map_map): Add debug output.Corinna Vinschen2002-09-242-1/+7
| | | | (mmap64): Evaluate gran_len correctly even if offset isn't 0.
* * include/ws2tcpip.h: Throw error if winsock.h, not winsock2.hDanny Smith2002-09-242-4/+11
| | | | has been included first.
* 2002-09-24 Rene Moeller Fonseca <fonseca@users.sourceforge.net>Danny Smith2002-09-244-3/+10
| | | | | | * include/winbase.h (FindFirstFileEx): Fixed ANSI mode. * include/wingdi.h (PFD_SWAP_LAYER_BUFFERS):Added define. * include/winuser.h (AppendMenu[AW]): Fixed prototypes.
* More GNUify non-GNU formatted functions calls throughout.Christopher Faylor2002-09-2323-78/+77
|
* Reset ChangeLog dates from cygwin_daemon merge.Christopher Faylor2002-09-221-63/+63
|