summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* white spaceChristopher Faylor2003-12-021-14/+14
|
* Change tab to space in Changelog.Thomas Pfaff2003-12-011-1/+1
|
* * thread.cc (pthread_rwlock::add_reader): Remove mx parameter forThomas Pfaff2003-12-013-35/+31
| | | | | | | | | | | 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.
* * winsup.api/known_bugs.tcl: Remove fcntl09 and fcntl10. TheseCorinna Vinschen2003-12-014-1/+21
| | | | | | | 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.
* * libc/include/sys/fcntl.h: Don't define struct flock when onCorinna Vinschen2003-12-012-0/+7
| | | | Cygwin. This is done in winsup/cygwin/include/cygwin/types.h now.
* * Makefile.in (OBSOLETE_FUNCTIONS): Add fcntl.Corinna Vinschen2003-12-019-35/+130
| | | | | | | | | | | | | | | | | (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.
* * cygheap.cc (cygheap_init): Set cygheap->shared_prefix.Corinna Vinschen2003-12-014-5/+14
| | | | | * cygheap.h (struct init_cygheap): Add shared_prefix. * shared.cc (shared_name): Use cygheap->shared_prefix.
* * shared.cc (shared_name): Take into account the SE_CREATE_GLOBAL_NAMECorinna Vinschen2003-12-012-21/+26
| | | | | | | | 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.
* * include/tzfile.h: Remove duplicate definition of TM_SUNDAY.Corinna Vinschen2003-12-013-2/+7
| | | | | * localtime.cc: Point TZDIR to the /usr/share/zoneinfo directory used by the tzcode package.
* * include/winnt.h (GetCurrentFiber): Remove duplicate prototype.Danny Smith2003-12-012-5/+9
| | | | | | | (GetFiberData); Likewise. (GetCurrentFiber): Change volatile to __volatile__. (GetFiberData); Likewise.
* * flock.cc: Renamed from flock.c.Corinna Vinschen2003-11-302-0/+4
|
* * pinfo.h: Remove global_sigs declaration.Christopher Faylor2003-11-301-0/+6
| | | | | * siginfo.h: Move global_sigs declaration here. * Makefile.in: Remove duplicate compiler flag.
* * exceptions.cc (_threadinfo::pop): Zero *contents* of popped stack locationChristopher Faylor2003-11-305-5/+10
| | | | rather than the actual stack pointer.
* * Makefile.in: (DLL_OFILES): Add flock.o.Corinna Vinschen2003-11-296-9/+137
| | | | | | | | | | | | * 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.
* * sigproc.cc (no_signals_available): Fix so that non-zero exit state is a trueChristopher Faylor2003-11-293-7/+11
| | | | | condition rather than errnoneously only checking other states when exist_state was zero.
* * pinfo.h (_pinfo::getthread2signal): Remove obsolete function.Christopher Faylor2003-11-296-22/+22
| | | | | | | | | * 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.
* * pinfo.h (_pinfo::getsig): Remove obsolete function, here and throughout.Christopher Faylor2003-11-288-44/+36
| | | | | | | | | * 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.
* * cygwin.din: Re-add inexplicably missing semaphore/msg functions.Christopher Faylor2003-11-282-0/+15
|
* * gendevices: Issue error when shilka is missing.Christopher Faylor2003-11-282-1/+9
|
* * libc/include/sys/signal.h: Use system specific signal file when building onChristopher Faylor2003-11-282-47/+10
| | | | cygwin.
* * include/cygwin/signal.h: New file.Christopher Faylor2003-11-283-0/+235
| | | | (also check in tlsoffsets.h, missed by previous checkin)
* Eliminate use of sigframe and sigthread throughout.Christopher Faylor2003-11-2850-3464/+3309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * speclib: Use correct EOF marker. Ensure that directory is actually deletedChristopher Faylor2003-11-281-2/+2
| | | | when running under Windows.
* * speclib: Use correct EOF marker. Ensure that directory is actually deletedChristopher Faylor2003-11-281-0/+5
| | | | when running under Windows.
* * lib/Makefile.in: Use make function to locate .mri file to allow building inChristopher Faylor2003-11-272-2/+7
| | | | directory other than source directory.
* * fhandler_disk_file.cc (fhandler_disk_file::readdir): Reorganize to avoidChristopher Faylor2003-11-272-8/+14
| | | | inappropriate .lnk extensions with munged filenames under managed mode.
* 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-273-1/+34
| | | | | * libc/include/stdlib.h (_atoi_r): New prototype. * libc/stdlib/atoi.c (_atoi_r): New reentrant function.
* 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-274-3/+41
| | | | | | * libc/include/stdlib.h (_atoll_r, _atol_r): New prototypes. * libc/stdlib/atol.c (_atol_r): New reentrant function. * libc/stdlib/atoll.c (_atoll_r): Ditto.
* 2003-11-27 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston2003-11-278-8/+311
| | | | | | | | | | | | | Jeff Johnston <jjohnstn@redhat.com> * libc/include/stdlib.h (lldiv_t): New type. (atoll, llabs, lldiv): New prototypes. * libc/stdlib/Makefile.am: Add support for atoll, llabs, and lldiv. * libc/stdlib/stdlib.tex: Ditto. * libc/stdlib/Makefile.in: Regenerated. * libc/stdlib/atoll.c: New file. * libc/stdlib/llabs.c: Ditto. * libc/stdlib/lldiv.c: Ditto.
* 2003-11-27 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2003-11-272-1/+32
| | | | | * COPYING.NEWLIB: Add license info for long long routines added to stdlib.
* 2003-11-27 Dimitry Sibiryakov <aafemt@users.sourceforge.net>Danny Smith2003-11-272-1/+8
| | | | * include/signal.h (SIG_SGE, SIG_ACK): Add defines.
* * lib/vfw32.def: Remove, replacing with ...Danny Smith2003-11-276-58/+91
| | | | | | | | | | | | * 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.
* * cygserver.cc (main): Move call to ipcinit() up before installingCorinna Vinschen2003-11-263-6/+12
| | | | | | any threads. * sysv_sem.cc: Update to FreeBSD version 1.67. (seminit): Initialize semaphore sequence numbers to 0.
* * Makefile.in (CYGWIN_LIB): Variable pointing to libcygwin.a inCorinna Vinschen2003-11-262-1/+9
| | | | | the parallel cygwin dir. (cygserver.exe): Depend on and link against $CYGWIN_LIB.
* 2003-11-26 Corinna Vinschen <corinna@vinschen.de>Jeff Johnston2003-11-264-1/+12
| | | | | | * libc/include/fcntl.h: Declare syscalls only when building newlib. * libc/include/unistd.h: Ditto. * libc/include/stat.h: Ditto. Also declare struct stat64.
* * mkgroup.c (main): Print "root" group with local admins group sidCorinna Vinschen2003-11-262-0/+13
| | | | and gid 0.
* * sec_helper.cc (set_process_privilege): Rename restore_priv toCorinna Vinschen2003-11-262-8/+18
| | | | | | | priv_luid. * sec_helper.cc (set_process_privilege): Call LookupPrivilegeValue before opening the token.
* * dir.cc (mkdir): Use local security_descriptor. CallCorinna Vinschen2003-11-2611-116/+200
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* * sec_acl.h (getace): Use FILE_*_BITS as permission mask.Corinna Vinschen2003-11-264-12/+24
| | | | | | | * 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.
* * Makefile.in (CXXFLAGS): Remove duplicate options handled in Makefile.common.Christopher Faylor2003-11-262-1/+6
|
* more white spaceChristopher Faylor2003-11-251-5/+5
|
* more white spaceChristopher Faylor2003-11-251-2/+3
|
* more white spaceChristopher Faylor2003-11-251-4/+3
|
* more white spaceChristopher Faylor2003-11-251-1/+1
|
* * thread.cc: Minor whitespace cleanup. Remove some obsolete code.Christopher Faylor2003-11-252-17/+7
|
* * winsup.api/known_bugs.tcl: Remove lseek10 since mknod now works.Christopher Faylor2003-11-252-1/+5
|
* * dtable.cc (build_fh_name): Set error in dummy fhandler when one is notedChristopher Faylor2003-11-253-1/+10
| | | | | during path_conv. * fhandler.h (fhandler_base::set_error): New method.
* 2003-11-24 Artem B. Bityuckiy <mail_lists@mail.ru>Jeff Johnston2003-11-242-1/+6
| | | | | * libc/stdio/vfprintf.c (_VFPRINTF_R): Fix check for 'C' format specifier to use ch instead of *fmt.
* * configure.in: Avoid using cygserver unless hosting on cygwin.Christopher Faylor2003-11-243-47/+53
|
* * include/winnt.h (PAGE_*): Group defines together. ChangeDanny Smith2003-11-232-10/+15
| | | | constants to hex notation.