Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)Author
2003-12-05* cygthread.cc (cygthread::stub2): Remove myself from the list of threadsChristopher Faylor
monitored by signals since this thread will never call raise or sigwait. (cygthread::simplestub2): Ditto. Set ev here. (cygthread::cygthread): Don't set ev here for freerange thread.
2003-12-05* path.cc (slash_unc_prefix_p): Allow '.' as a valid character after '\\' in aChristopher Faylor
UNC path.
2003-12-05* exceptions.cc (setup_handler): Remove ill-advised debugging output.Christopher Faylor
2003-12-04 * include/cygwin/types.h (struct __fcntl64): Fix datatype of l_start.Corinna Vinschen
2003-12-03 Substitute 0x7fffffff and 0xffffffff by INT32_MAX and UINT32_MAXCorinna Vinschen
throughout, except in assembler code.
2003-12-03 * fhandler_disk_file.cc (fhandler_disk_file::lock): Use UINT32_MAXCorinna Vinschen
instead of 0xffffffff. Accomodate Win 9x bug in evaluating length of area to lock when given length is 0.
2003-12-03 * fhandler_disk_file.cc (fhandler_disk_file::lock): InterchangeCorinna Vinschen
values of off_low and off_high.
2003-12-03 * fcntl.cc (fcntl_worker): Remove static storage class.Corinna Vinschen
* flock.cc (flock): Use struct __flock64. Call fcntl_worker. Use Cygwin errno functions instead of accessing errno directly. * winsup.h: Declare fcntl_worker.
2003-12-03 * fcntl.cc (_fcntl): Whitespace cleanup.Corinna Vinschen
2003-12-03* cygthread.cc (cygthread::stub): Properly establish _threadinfo environment.Christopher Faylor
(cygthread::stub2): New function. (cygthread::simplestub): Ditto. (cygthread::simplestub2): New function. * cygthread.h (cygthread::stub2): Declare new function. (cygthread::simplestub2): Ditto. * cygtls.h (_threadinfo::call): Declare new function. (_threadinfo::call2): Ditto. * dcrt0.cc (dll_crt0_1): Accommodate new _threadinfo::init which doesn't return pointer to tls. (_dll_crt0): Remove obsolete DECLARE_TLS_STORAGE. (dll_crt0): Ditto. * exceptions.cc (_threadinfo::call): New function. (_threadinfo::call2): Ditto. (_threadinfo::init): Don't return pointer. * thread.cc (pthread::thread_init_wrapper): Properly establish _threadinfo environment. (pthread::thread_init_wrapper2): New function. * thread.h (pthread::thread_init_wrapper): Remove noreturn attribute (pthread::thread_init_wrapper2): Declare new function. * winbase.h: Remove obsolete code.
2003-12-03* Makefile.in: Change the way that -f options are appended to CFLAGS, slightly.Christopher Faylor
2003-12-03* fcntl.cc (_fcntl): Silence a compiler warning.Christopher Faylor
2003-12-02* pinfo.cc (pinfo::init): Use shared_name to construct the mapname.Christopher Faylor
2003-12-02white spaceChristopher Faylor
2003-12-02Change tab to space in Changelog.Thomas Pfaff
2003-12-02* thread.cc (pthread_rwlock::add_reader): Remove mx parameter forThomas Pfaff
List_insert call. (pthread::prepare): Ensure race safeness when adding function pointers to atfork lists by using List_insert. * thread.h (List_insert): Use InterlockedCompareExchangePointer to ensure race safeness without using a mutex. (List_remove): Use InterlockedCompareExchangePointer to ensure race safeness with List_insert. (List::insert): Remove mx parameter for List_insert call.
2003-12-01 * winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. TheseCorinna Vinschen
tests had a compatibility bug. * winsup.api/ltp/fcntl09.c: Don't use F_RDLCK | F_WRLCK but only F_WRLCK to set a write lock. * winsup.api/ltp/fcntl10.c: Ditto.
2003-12-01 * Makefile.in (OBSOLETE_FUNCTIONS): Add fcntl.Corinna Vinschen
(NEW_FUNCTIONS): Add fcntl64. * cygwin.din: Export fcntl64. Make fcntl being SIGFE. * fcntl.cc (fcntl_worker): New function. (fcntl64): New function. (_fcntl): Call fcntl_worker. Convert 32 bit flock structure into 64 bit flock structure and vice versa. * fhandler.cc (fhandler_base::lock): Change 2nd parameter to struct __flock64 *. * fhandler_disk_file.cc (fhandler_disk_file::lock): Ditto. Rework to be 64 bit aware. * fhandler.h: Accomodate above method argument changes. * include/cygwin/types.h: Add struct __flock32 and __flock64. Define struct flock according to setting of __CYGWIN_USE_BIG_TYPES__. * include/cygwin/version.h: Bump API minor number.
2003-12-01 * cygheap.cc (cygheap_init): Set cygheap->shared_prefix.Corinna Vinschen
* cygheap.h (struct init_cygheap): Add shared_prefix. * shared.cc (shared_name): Use cygheap->shared_prefix.
2003-12-01 * shared.cc (shared_name): Take into account the SE_CREATE_GLOBAL_NAMECorinna Vinschen
privilege when building the name string. (open_shared): Remove the call to OpenFileMapping. (shared_info::initialize): Move cygheap initialization to ... (memory_init): ... here. Suppress now useless shared_h variable. (user_shared_initialize): Make tu a cygpsid.
2003-12-01 * include/tzfile.h: Remove duplicate definition of TM_SUNDAY.Corinna Vinschen
* localtime.cc: Point TZDIR to the /usr/share/zoneinfo directory used by the tzcode package.
2003-12-01 * include/winnt.h (GetCurrentFiber): Remove duplicate prototype.Danny Smith
(GetFiberData); Likewise. (GetCurrentFiber): Change volatile to __volatile__. (GetFiberData); Likewise.
2003-11-30 * flock.cc: Renamed from flock.c.Corinna Vinschen
2003-11-30* pinfo.h: Remove global_sigs declaration.Christopher Faylor
* siginfo.h: Move global_sigs declaration here. * Makefile.in: Remove duplicate compiler flag.
2003-11-30* exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack locationChristopher Faylor
rather than the actual stack pointer.
2003-11-30 * Makefile.in: (DLL_OFILES): Add flock.o.Corinna Vinschen
* cygwin.din: Export flock. * flock.c: New file. * include/sys/file.h: Include sys/cdefs.h. Add function prototype for flock(). Add some comments from BSD's header for further clarity. (L_SET, L_CURR, L_INCR, L_XTND): Redefine as the macros SEEK_SET, SEEK_CUR, SEEK_CUR, & SEEK_END respectively. (LOCK_SH,LOCK_EX,LOCK_NB,LOCK_UN): New macros for flock(). * include/cygwin/version.h: Bump API minor number.
2003-11-29* sigproc.cc (no_signals_available): Fix so that non-zero exit state is a trueChristopher Faylor
condition rather than errnoneously only checking other states when exist_state was zero.
2003-11-29* pinfo.h (_pinfo::getthread2signal): Remove obsolete function.Christopher Faylor
* cygtls.h (_threadinfo): Define tid more precisely. (_threadinfo::operator HANDLE): Define. * exceptions.cc (_threadinfo::interupt_now): Use _threadinfo HANDLE operator to derive thread handle. (setup_handler): Ditto. * sigproc.cc: Reorganize includes.
2003-11-29* pinfo.h (_pinfo::getsig): Remove obsolete function, here and throughout.Christopher Faylor
* exceptions.cc: Ditto. * fhandler_termios.cc: Ditto. * signal.cc: Ditto. * sigproc.cc: Ditto. * Makefile.in: Revert previous change which made a cygwin.din newer than a version.h a warning rather than an error.
2003-11-29* cygwin.din: Re-add inexplicably missing semaphore/msg functions.Christopher Faylor
2003-11-29* gendevices: Issue error when shilka is missing.Christopher Faylor
2003-11-29* include/cygwin/signal.h: New file.Christopher Faylor
(also check in tlsoffsets.h, missed by previous checkin)
2003-11-28Eliminate use of sigframe and sigthread throughout.Christopher Faylor
* Makefile.in (DLL_OFILES): Add sigfe.o. Remove reliance on cygwin.def from cygwin0.dll dependency since dependence on sigfe.o implies that. Generate def file on the fly using 'gendef'. * configure.in: Don't auto-generate cygwin.def. * configure: Regenerate. * cygwin.din: Add SIGFE stuff where appropriate. * dcrt0.cc (dll_crt0_1): Initialize cygwin tls early in process startup. Set _main_tls to address of the main thread's cygwin tls. * debug.h: Remove now unneeded WFSO and WFMO declarations. * exceptions.cc (_last_thread): Define. (set_thread_state_for_signals): New function. (reset_thread_exception_for_signals): Ditto. (init_thread_for_signals): Ditto. (delete_thread_for_signals): Ditto. (capture_thread_for_signals): Ditto. (handle_exceptions): Set return address explicitly for exceptions prior to calling sig_send. (interrupt_on_return): Eliminate. (setup_handler): Add preliminary implementation for dealing with thread-specific signals by querying _main_tls. (signal_exit): Use cygthread::main_thread_id instead of mainthread.id. (call_signal_handler_now): For now, just handle the main thread. * fork.cc (vfork): Save and restore main _my_tls. * gendef: New file. Generates def file and sigfe.s file. * gentls_offsets: New file. Generates offsets for perl to use in sigfe.s. * how-signals-work.txt: Mention that info is obsolete. * init.cc (dll_entry): Initialize cygwin tls storage here. * miscfuncs.cc (low_priority_sleep): Make a C function for easier calling from asm. * perthread.h (vfork_save::tls): New element. * signal.cc (nanosleep): Replace previous use of sigframe.call_signal_handler_now with straight call to call_signal_handler_now. (abort): Ditto. * syscalls.cc (readv): Ditto. * termios.cc (tcsetattr): Ditto. * wait.cc (wait4): Ditto. * sigproc.cc (sig_dispatch_pending): Ditto. (sig_send): Ditto. * sigproc.h: Declare call_signal_handler_now. * thread.cc (pthread::thread_init_wrapper): Initialize cygwin tls. Remove obsolete and unworking signal stuff. * thread.h (verifyable_object::sigs): Eliminate. (verifyable_object::sigmask): Eliminate. (verifyable_object::sigtodo): Eliminate. (verifyable_object::exit): Make attribute noreturn. (verifyable_object::thread_init_wrapper): Ditto. (pthread_null::exit): Ditto. * winbase.h (__stackbase): Always define. * winsup.h (low_priority_sleep): Declare as a "C" function. * include/cygwin/version.h: Bump API version to reflect sigwait export. * include/sys/queue.h: Protect SLIST_ENTRY from previous declaration. * signal.cc (sigwait): Implement. * select.cc (fhandler_base::ready_for_read): Add debugging output. * devices.h: Define more device pointers via their storage. * devices.in: Don't parse things like /dev/inet/tcp, as they really have no meaning. * devices.cc: Regenerate. * gendevices: Set proper protection for output file. * cygtls.h: New file. * gendef: New file. * gentls_offsets: New file. * tlsoffsets.h: New file. Autogenerated. * config/i386/longjmp.c: Remove. File subsumed by gendef output. * config/i386/makefrag: Remove obsolete file. * fhandler.cc: Remove spurious access_worker declaration. * spawn.cc (spawnve): Make debugging output more accurate. * cygwin-gperf: Remove. * devices.cc: Remove.
2003-11-28* speclib: Use correct EOF marker. Ensure that directory is actually deletedChristopher Faylor
when running under Windows.
2003-11-28* speclib: Use correct EOF marker. Ensure that directory is actually deletedChristopher Faylor
when running under Windows.
2003-11-28* lib/Makefile.in: Use make function to locate .mri file to allow building inChristopher Faylor
directory other than source directory.
2003-11-28* fhandler_disk_file.cc (fhandler_disk_file::readdir): Reorganize to avoidChristopher Faylor
inappropriate .lnk extensions with munged filenames under managed mode.
2003-11-272003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>Danny Smith
* include/signal.h (SIG_SGE, SIG_ACK): Add defines.
2003-11-27 * lib/vfw32.def: Remove, replacing with ...Danny Smith
* lib/msvfw32.def: New file. * lib/avicap32.def: New file. * lib/avifil32.def: New file. * lib/vfw32.mri: New file. * Makefile.in: (MRI_FILES, MIMPLIBS): New vars for import libs with multiple dll's. (LIBS): Add MIMPLIBS. (DISTFILES): Add MRI_FILES. (libvfw32.a): Build using mri script.
2003-11-27 * cygserver.cc (main): Move call to ipcinit() up before installingCorinna Vinschen
any threads. * sysv_sem.cc: Update to FreeBSD version 1.67. (seminit): Initialize semaphore sequence numbers to 0.
2003-11-26 * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a inCorinna Vinschen
the parallel cygwin dir. (cygserver.exe): Depend on and link against $CYGWIN_LIB.
2003-11-26 * mkgroup.c (main): Print "root" group with local admins group sidCorinna Vinschen
and gid 0.
2003-11-26 * sec_helper.cc (set_process_privilege): Rename restore_priv toCorinna Vinschen
priv_luid. * sec_helper.cc (set_process_privilege): Call LookupPrivilegeValue before opening the token.
2003-11-26 * dir.cc (mkdir): Use local security_descriptor. CallCorinna Vinschen
set_security_attribute appropriately. * external.cc (cygwin_internal): Ditto. * fhandler.cc (fhandler_base::open): Ditto. * fhandler_socket.cc (fhandler_socket::bind): Ditto. * path.cc (symlink_worker): Ditto. * sec_acl.cc (setacl): Ditto. Call read_sd appropriately. (getace): Ditto. * sec_helper.cc (security_descriptor::malloc): New method. (security_descriptor::realloc): New method. (security_descriptor::free): New method. * security.cc (read_sd): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check. Allocate the security_descriptor buffer according to size returned by a call to GetFileSecurity. Return buffer size on success. (write_sd): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (get_nt_attribute): Use local security_descriptor. (get_nt_object_attribute): Ditto in case of type == SE_REGISTRY_KEY. Allocate security_descriptor buffer according to size returned by a call to RegGetKeySecurity. (alloc_sd): Make static. Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. Drop unnecessary parameter check. (set_security_attribute): Get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (set_nt_attribute): Use local security_descriptor. (check_file_access): Ditto. * security.h: Add class security_descriptor. (read_sd): Change declaration to get security_descriptor as parameter instead of PSECURITY_DESCRIPTOR and a size. (write_sd): Ditto. (set_security_attribute): Ditto. (alloc_sd): Remove declaration. * thread.cc (semaphore::semaphore): Use local security_descriptor. Call set_security_attribute appropriately.
2003-11-26 * sec_acl.h (getace): Use FILE_*_BITS as permission mask.Corinna Vinschen
* security.cc (get_attribute_from_acl): Ditto. * security.h (FILE_READ_BITS): Define to match also GENERIC bits. (FILE_WRITE_BITS): Ditto. (FILE_EXEC_BITS): Ditto.
2003-11-26* Makefile.in (CXXFLAGS): Remove duplicate options handled in Makefile.common.Christopher Faylor
2003-11-26more white spaceChristopher Faylor
2003-11-26more white spaceChristopher Faylor
2003-11-26more white spaceChristopher Faylor
2003-11-26more white spaceChristopher Faylor