summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin
Commit message (Collapse)AuthorAgeFilesLines
...
* * dtable.cc (dtable::init_std_file_from_handle): Add some defensive code toChristopher Faylor2002-01-062-3/+11
| | | | invalid handle case.
* * ioctl.cc (ioctl): Make third argument optional.Corinna Vinschen2002-01-065-9/+29
| | | | | | | | * include/sys/ioctl.h: Ditto in declaration. * dtable.cc (dtable::init_std_file_from_handle): Revert previous bogus patch. * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB message.
* * dir.cc (opendir): Guarantee release of alloced fhandler structure on error.Christopher Faylor2002-01-062-9/+16
|
* exceptions.cc (sig_handle): Set default action for SIGURG to SIG_IGN.Corinna Vinschen2002-01-052-1/+6
|
* * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULLCorinna Vinschen2002-01-052-1/+6
| | | | handle as errorneous.
* * cygmagic: Change logic for equality test.Christopher Faylor2002-01-042-1/+5
|
* * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.Christopher Faylor2002-01-042-0/+6
|
* * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCALCorinna Vinschen2002-01-042-29/+123
| | | | | | | | throughout. (socketpair): Explicitly allow SOCK_STREAM and SOCK_DGRAM socket types in families AF_UNIX and AF_LOCAL. Explicitly allow PF_UNSPEC, PF_LOCAL and PF_INET protocols. Return error otherwise. Implement datagram socketpairs.
* * speclib: Remove temp files automatically.Christopher Faylor2002-01-022-1/+5
|
* restore missing entryChristopher Faylor2002-01-011-0/+4
|
* * fhandler.h (fhandler_socket::sun_path): New private member.Corinna Vinschen2002-01-015-5341/+5384
| | | | | | | | | | | | (fhandler_socket::set_sun_path): New method. (fhandler_socket::get_sun_path): Ditto. * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize sun_path to NULL. (fhandler_socket::~fhandler_socket): Free sun_path if needed. (fhandler_socket::set_sun_path): New method. * net.cc (cygwin_bind): Set sun_path to path of local socket file. (cygwin_getsockname): Add code to return correct sockaddr for unix domain sockets.
* Strip path when installing library.Christopher Faylor2001-12-311-1/+1
|
* * include/getopt.h: Fix define.Christopher Faylor2001-12-312-1/+5
|
* * speclib: New file.Christopher Faylor2001-12-313-3/+40
| | | | | | * Makefile.in: Create library versions of automode.o, textmode.o, and binmode.o for easier use on command line. Create libpthread.a, libm.a, and libc.a with subsets of exports found in libcygwin.a.
* * cygmagic: Eliminate unneeded use of 'tr' and 'bc'.Christopher Faylor2001-12-302-1/+5
|
* * security.cc (open_local_policy): Use POLICY_EXECUTE instead ofCorinna Vinschen2001-12-302-2/+6
| | | | enumerating user rights.
* * security.cc (open_local_policy): Initialize lsa handle to NULL.Corinna Vinschen2001-12-292-3/+10
| | | | | Request only needed access rights in call to LsaOpenPolicy(). (create_token): Check for NULL lsa pointer.
* * cygwin.din: Add symbols for endutent(), getutent(), getutid(),Corinna Vinschen2001-12-284-1/+124
| | | | | | | | | | | getutline(), setutent() and utmpname(). * syscalls.cc (setutent): New function. (endutent): Ditto. (utmpname): Ditto. (getutent): Ditto. (getutid): Ditto. (getutline): Ditto. * include/cygwin/version.h: Bump API minor version.
* * cygmagic: Add define name to warning.Christopher Faylor2001-12-267-17/+67
| | | | | | | | | | | | | | | | * dcrt0.cc (_dll_crt0): Check for changes in child_info size. (multiple_cygwin_problem): Avoid "proc" errors when testing. Just assume new cygwin proc. * shared_info.h (mount_info): Add 'cb' element for sanity checks. (shared_info): Ditto. * child_info.h (child_info): Add fhandler_union_size element for sanity checking. * shared.cc (open_shared): Detect shared region size mismatch between parent and child. (shared_info::initialize): Detect shared region size mismatch with expectation. (memory_Init): Ditto. * sigproc.cc (init_child_info): Correctly set cb in passed structure. * shared.cc (open_shared):
* * include/getopt.h: Protect a declaratin.Christopher Faylor2001-12-262-4/+11
|
* Remove accenidentally left >>> markerRobert Collins2001-12-261-1/+0
|
* 2001-12-26 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-12-263-4/+28
| | | | | | | * thread.cc (pthread_cond::Signal): Use a separate flag for signal detection and broadcast semantics. (__pthread_cond_dowait): Ditto. * thread.h (pthread_cond): New flag for testing when a waiter has woken.
* commentChristopher Faylor2001-12-262-0/+10
|
* * Makefile.in: Quote arguments to shell scripts.Christopher Faylor2001-12-262-5/+10
| | | | (clean): Remove new *_magic.h autogenerated files.
* * Makefile.in: Autogenerate some header files which provide magic numbers.Christopher Faylor2001-12-2611-48/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Force dependencies for files which depend on autogenerated headers to ensure that they are always built. * child_info.h (child_info): Add new fields to accommodate new magic number header stuff. * dcrt0.cc: Rely on "child_info_magic.h" to ensure that correct child_info magic numbers are used. (dll_crt0_1): Temporarily remove _cygwin_testing_magic test. (_dll_crt0): Do more testing on magic numbers from fork_info structure. Call "multiple_cygwin_problem" where appropriate. (multiple_cygwin_problem): Rename from multiple_cygwin_die. Issue a warning or die, as appropriate based on cygwin version/magic number mismatch. * pinfo.cc (pinfo::exit): Don't attempt to dereference `this' if it doesn't exist. This can happen when a fatal error occurs early in process initialization. * shared.cc: Rely on "shared_info_magic.h" to accommodate that new magic number header stuff. (shared_info::initialize): Use new magic number stuff, for shared region. (memory_init): Ditto, for mount table. * shared_info.h: Accomodate new magic number stuff for shared region and mount table. * sigproc.cc: Rely on "child_info_magic.h" to accommodate new magic number header stuff. (init_child_info): Initialize new fields in child_info) to accomodate magic numbers. * winsup.h: Rename multiple_cygwin_die to multiple_cygwin_problem. * include/cygwin/version.h: Define macros for manipulating version magic. * cygmagic: New shell script for generating magic numbers.
* * include/cygwin/version.h: Bump API minor version for below changes.Christopher Faylor2001-12-202-1/+6
|
* Remove obsolete include.Christopher Faylor2001-12-201-321/+0
|
* * Makefile.in (VPATH): Add regex directory.Christopher Faylor2001-12-2028-75/+4869
| | | | | | | | | | | | | | | | | | (NM): new variable. (OBSOLETE_FUNCTIONS): Ditto. (NEW_FUNCTIONS): Ditto. (install-headers): Install regex.h. (install-man): New target. (install): Use new target. (DLL_OFILES): Add v8_reg* stuff. (new-cygwin1.dll): Eliminate stamp-cygwin-lib creation. (libcygwin.a): Remove obsolete functions from import lib. Add new functions. * configure.in: Detect 'nm' tool. * configure: Regenerate. * cygwin.din: Export posix_reg* functions. Eliminate export of v8 reg* functions. This is now handled in object files themselves. * regex/*: New files. * regexp/v8_*.c: New files, renamed from non v8_ equivalents.
* Fix up comments.Christopher Faylor2001-12-193-11/+0
|
* * include/getopt.h: Don't define getopt_long() and friends whenCorinna Vinschen2001-12-172-8/+28
| | | | included through unistd.h.
* * dtable.cc (dtable::init_std_file_from_handle): Avoid initializing using anChristopher Faylor2001-12-172-0/+8
| | | | invalid handle.
* * include/limits.h: Define LLONG_MIN, LLONG_MAX, ULLONG_MAX.Christopher Faylor2001-12-172-1/+18
|
* * include/getopt.h: Add HAVE_DECL_GETOPT to save pain elsewhere.Christopher Faylor2001-12-112-0/+5
|
* * fhandler.h (fhandler_serial::ev): New class member.Christopher Faylor2001-12-114-7/+11
| | | | | | * fhandler_serial.cc (fhandler_serial::raw_read): Use class member for event status. * select.cc (peek_serial): Ditto.
* whitespace cleanupChristopher Faylor2001-12-107-185/+19
|
* * path.cc (path_conv::check): Use full path name for determining attributesChristopher Faylor2001-12-082-5/+13
| | | | when /cygdrive/x/foo.
* * path.cc (path_conv::check): Reset FH_CYGDRIVE if iterating through path.Christopher Faylor2001-12-072-31/+38
|
* * path.cc (path_conv::check): Don't complain if /dev/x/foo when x doesn'tChristopher Faylor2001-12-063-10/+27
| | | | | | | | | exist. (mount_info::conv_to_win32_path): Keep translating when a /cygdrive is found. Don't attempt to translate to a device name when devn == FH_CYGDRIVE. (cygwin_conv_to_win32_path): Set buffer to empty on error. (cygwin_conv_to_full_win32_path): Ditto. * window.cc: Include unistd.h to verify definitions.
* * dir.cc (opendir): Detect error return from build_fhandler_from_name.Christopher Faylor2001-12-052-4/+13
|
* Add missing ChangeLog entries.Christopher Faylor2001-12-051-0/+2
|
* * net.cc (cygwin_getsockopt): Dereference optlen pointer when passing toChristopher Faylor2001-12-042-1/+6
| | | | __check_null_invalid_struct_errno.
* * net.cc (cygwin_getsockopt): Allow NULL optval.Christopher Faylor2001-12-033-26/+22
| | | | | * path.cc (mount_info::read_cygdrive_info_from_registry): Don't write cygdrive to registry if it doesn't exist.
* * path.cc (mount_info::conv_to_win32_path): Avoid returning error if cygdriveChristopher Faylor2001-12-033-7/+18
| | | | | == '/'. (mount_info::cygdrive_win32_path): Return 0 if invalid cygdrive path.
* minor reformatting.Christopher Faylor2001-12-021-8/+8
|
* * debug.cc (makethread): Eliminate unneeded function call.Christopher Faylor2001-11-305-30/+18
| | | | | | | | | | * miscfuncs.cc (tls_ix): Predefine. * perthread.h (set_reent): Eliminate. (get_reent): Ditto. * winbase.h (my_tlsalloc): Use global stack base pointer. Set newly allocated location to NULL. (my_tlssetvalue): Use global stack base pointer. (my_tlsgetvalue): Ditto.
* * winsup.h: Reorganize to avoid use of experimental stuff.Christopher Faylor2001-11-283-8/+13
| | | | * shortcut.cc: Move winsup.h first in include order.
* Add attribution.Christopher Faylor2001-11-281-1/+1
|
* * cygwin.din (ualarm): New export.Christopher Faylor2001-11-289-60/+183
| | | | | | | | | | | | * dcrt0.cc (_dll_crt0): Add experimental tls storage declaration. (dll_crt0): Ditto. * debug.cc (thread_stub): Ditto. * thread.cc: Minor cleanup. (__pthread_create): Add experimental tls storage declaration. * miscfuncs.cc: Define tls index. * winsup.h: Declare experimental tls storage. * window.cc (alarm): Use old timer return from setitimer. (ualarm): New function.
* Revert erroneous checkin.Christopher Faylor2001-11-261-5/+0
|
* * Makefile.in (libcygwin.a): Use ar commands to build libcygwin.a since addingChristopher Faylor2001-11-263-1/+11
| | | | an archive doesn't work the way we want it to.