summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* Add missing ChangeLog entries.Corinna Vinschen2001-11-251-0/+16
|
* * fhandler_disk_file.cc (fhandler_cygdrive::readdir): Avoid reportingChristopher Faylor2001-11-253-1/+11
| | | | inaccessible drives.
* * net.cc (cygwin_hstrerror): Allow s == NULL.Corinna Vinschen2001-11-241-1/+13
| | | | | (cygwin_rcmd): Add parameter checking. (cygwin_rexec): Ditto.
* * net.cc (cygwin_inet_ntoa): Add parameter checking.Corinna Vinschen2001-11-242-1/+12
| | | | | | | | | (cygwin_inet_network): Return INADDR_NONE instead of 0 in case of EFAULT. (cygwin_hstrerror): Add parameter checking. (cygwin_rresvport): Ditto. (socketpair): Ditto. * winsup.h (check_null_str): Add extern declaration.
* * path.cc (path_conv::check): Tighten FH_CYGDRIVE check to avoid matchingChristopher Faylor2001-11-242-11/+13
| | | | trailing component, like other devices.
* * autoload.cc (IsDebuggerPresent): Make conditional load since it is notChristopher Faylor2001-11-243-5/+14
| | | | | | available everywhere. * path.cc (mount_info::conv_to_win32_path): Only consider /cygdrive to be FH_CYGDRIVE, not /cygdrive/x.
* * net.cc (inet_makeaddr): Revert previous change.Christopher Faylor2001-11-242-1/+5
|
* * path.cc (chdir): Allow 'cd /cygdrive'.Christopher Faylor2001-11-242-6/+17
|
* Fix typo.Christopher Faylor2001-11-241-1/+1
|
* fix typo.Christopher Faylor2001-11-241-1/+1
|
* * dtable.cc (dtable::vfork_parent_restore): Add debugging statement.Christopher Faylor2001-11-2412-146/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | * exceptions.cc (try_to_debug): Spin only as long as we don't have a debugger attached. * fhandler.h (fhandler_base::set_nohandle): New method. (fhandler_base::get_nohandle): New method. * fhandler.cc (fhandler_base::dup): Avoid duplicating handle if there is no handle. * fhandler_disk_file.cc (fhandler_disk_file::opendir): Set nohandle flag on dummy fd. * Makefile.in: Make intermediate library for eventual inclusion in libcygwin.a * fhandler.h (fhandler_pipe::fhandler_pipe): Remove default argument setting since it is no longer used. * miscfuncs.cc (check_null_str): New function. (+check_null_str_errno): Ditto. * net.cc: Add defensive buffer checking throughout. (cygwin_sendto): Protect against invalid fd. (cygwin_recvfrom): Ditto. (cygwin_getpeername): Ditto. (cygwin_recv): Ditto. (cygwin_send): Ditto. * winsup.h: Declare a new function. * select.cc (set_bits): Fix conditional for setting fd in exceptfds. * dtable.cc (dtable::build_fhandler): Create fhandler_pipe using correct device type. * path.cc (get_devn): Set correct pipe device type from device name.
* * path.cc (conv_path_list): Fix wild indexing into path due to conflictingChristopher Faylor2001-11-228-50/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | methods for setting src pointer. * dir.cc (opendir): Only pass path_conv argument to opendir, since name is already part of the fhandler. * dtable.cc (dtable::build_fhandler): Accomodate new FH_CYGDRIVE type. * fhandler.cc (fhandler_base::opendir): Nuke name argument. * fhandler.h: Add FH_CYGDRIVE to "device" enum. (fhandler_base::opendir): Nuke name argument. (fhandler_disk_file::opendir): Ditto. (fhandler_disk_file::fhandler_disk_file): Declare new method which passes devtype through. (fhandler_cygdrive): Add elements for tracking drives. (fhandler_cygdrive::set_drives): Declare new method. (fhandler_cygdrive::iscygdrive_root): Declare new method. (fhandler_cygdrive::opendir): Declare new method. (fhandler_cygdrive::readdir): Declare new method. (fhandler_cygdrive::telldir): Declare new method. (fhandler_cygdrive::seekdir): Declare new method. (fhandler_cygdrive::rewinddir): Declare new method. (fhandler_cygdrive::closedir): Declare new method. (fhandler_cygdrive::fstat): Declare new method. * fhandler_disk_file.cc (fhandler_disk_file::fhandler_disk_file): Define new method which passes devtype through. (fhandler_disk_file::open): Tweak debug output. (fhandler_disk_file::opendir): Nuke first argument. Use info from path_conv and class rather than calling fstat. (fhandler_cygdrive::set_drives): New method. (fhandler_cygdrive::iscygdrive_root): New method. (fhandler_cygdrive::opendir): New method. (fhandler_cygdrive::readdir): New method. (fhandler_cygdrive::telldir): New method. (fhandler_cygdrive::seekdir): New method. (fhandler_cygdrive::rewinddir): New method. (fhandler_cygdrive::closedir): New method. (fhandler_cygdrive::fstat): New method. * path.cc (iscygdrive_device): Assume cygdriveness is already verified. (path_conv::check): Treat FH_CYGDRIVE "method" as a special case, setting file attributes as needed. (mount_info::conv_to_win32_path): Allow stand-alone /cygdrive, meaning "the directory which contains all of the drives on the system". (fillout_mntent): Use cyg_tolower for conversions. (mount_info::cygdrive_win32_path): Replace unused argument with unit number. * shared_info.h (mount_info::cygdrive_win32_path): Reflect argument change.
* * path.cc (cygpath): Don't consider cygpath stuff when trying to derive nativeChristopher Faylor2001-11-222-1/+9
| | | | paths.
* Patch by Pierre Muller <muller@ics.u-strasbg.fr>:Corinna Vinschen2001-11-212-0/+10
| | | | | | | * w32api/include/winnt.h: prepare SSE register support. (CONTEXT_EXTENDED_REGISTERS): Add new define. (MAXIMUM_SUPPORTED_EXTENSION): New define. (struct CONTEXT): ExtendedRegisters field added.
* Patch by Mark Bradshaw <bradshaw@staff.crosswalk.com>:Corinna Vinschen2001-11-212-20/+60
| | | | | | | | | | | * mkpasswd.c: include lmerr.h (main): New -u option to allow specifying a specific user. If specified, groups aren't displayed and output is limited to only the specified user. (enum_users): If specific user is specified, via -u option, display only that user's record. With -u use NetUserGetInfo instead of NetUserEnum. (load_netapi): Added netusergetinfo.
* * Makefile.in (DLL_OFILES): Add fhandler_disk_file.o.Christopher Faylor2001-11-218-744/+896
| | | | | | | | | | | | | | | | | | * cygheap.h (cygheap_fdnew::operator =): New operator. * dir.cc: Add invalid struct checking throughout. Use methods for all directory manipulation throughout. * fhandler.cc: Move fhandler_disk_file stuff to own file. (fhandler_base::opendir): New method. (fhandler_base::readdir): New method. (fhandler_base::telldir): New method. (fhandler_base::seekdir): New method. (fhandler_base::rewinddir): New method. (fhandler_base::closedir): New method. * fhandler_disk_file.cc: New file. * fhandler.h (fhandler_base): Declare new virtual methods. (fhandler_disk_file): Ditto. (fhandler_cygdrive): New class. * path.cc (conv_path_list): Use strccpy to break apart path.
* Change copyright.Christopher Faylor2001-11-211-1/+1
|
* * winsup.api/pthread/condvar3_1.c: Fix debugging output.Egor Duda2001-11-172-6/+7
|
* * path.cc (conv_path_list): Copy source paths before modifying them.Christopher Faylor2001-11-172-3/+12
|
* * strace.cc (main): Change getopt() to getopt_long().Corinna Vinschen2001-11-172-2/+234
| | | | | | | | | | | | | | | | Add support for help and version info. Use new parse_mask() function for -m/--mask option. (longopts): Add long options structure. (opts): Move options string from getopts call to static var. (usage): Print usage information. (SCCSid): Version info. (version): New function for displaying version info. (parse_mask): New function supporting parsing of mnemonics, hex, and basic expressions in masks. (mnemonic2ul): New mnemonic parsing function. (tag_mask_mnemonic): New type. (mnemonic_table): New table of mnemonics for mnemonic2ul() to search through.
* * fhandler_raw.cc (fhandler_dev_raw::clear): Don't reset unit.Corinna Vinschen2001-11-163-1/+7
| | | | | * fhandler_tape.cc (fhandler_dev_tape::fhandler_dev_tape): Add debug output.
* Fix typo.Egor Duda2001-11-151-1/+1
|
* * winsup.api/pthread/: New directory. Ports of pthread functionalityEgor Duda2001-11-1537-0/+3099
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tests ported from pthreads-win32 project. * winsup.api/pthread/test.h: Commmon declaraions for pthread tests. * winsup.api/pthread/cleanup2.c: New test. * winsup.api/pthread/cleanup3.c: Ditto. * winsup.api/pthread/condvar1.c: Ditto. * winsup.api/pthread/condvar2.c: Ditto. * winsup.api/pthread/condvar2_1.c: Ditto. * winsup.api/pthread/condvar3.c: Ditto. * winsup.api/pthread/condvar3_1.c: Ditto. * winsup.api/pthread/condvar3_2.c: Ditto. * winsup.api/pthread/condvar3_3.c: Ditto. * winsup.api/pthread/condvar4.c: Ditto. * winsup.api/pthread/condvar5.c: Ditto. * winsup.api/pthread/condvar6.c: Ditto. * winsup.api/pthread/condvar8.c: Ditto. * winsup.api/pthread/count1.c: Ditto. * winsup.api/pthread/create1.c: Ditto. * winsup.api/pthread/create2.c: Ditto. * winsup.api/pthread/equal1.c: Ditto. * winsup.api/pthread/exit1.c: Ditto. * winsup.api/pthread/exit2.c: Ditto. * winsup.api/pthread/exit3.c: Ditto. * winsup.api/pthread/inherit1.c: Ditto. * winsup.api/pthread/join0.c: Ditto. * winsup.api/pthread/join1.c: Ditto. * winsup.api/pthread/join2.c: Ditto. * winsup.api/pthread/mutex1.c: Ditto. * winsup.api/pthread/mutex1r.c: Ditto. * winsup.api/pthread/mutex2.c: Ditto. * winsup.api/pthread/mutex3.c: Ditto. * winsup.api/pthread/mutex6r.c: Ditto. * winsup.api/pthread/once1.c: Ditto. * winsup.api/pthread/priority1.c: Ditto. * winsup.api/pthread/priority2.c: Ditto. * winsup.api/pthread/self1.c: Ditto. * winsup.api/pthread/self2.c: Ditto. * winsup.api/pthread/tsd1.c: Ditto.
* * include/pthread.h (PTHREAD_COND_INITIALIZER): Define.Egor Duda2001-11-154-4/+26
| | | | | | | | | | | | * thread.cc (__pthread_cond_destroy): Add support for PTHREAD_COND_INITIALIZER. (__pthread_cond_init): Ditto. (__pthread_cond_broadcast): Ditto. (__pthread_cond_signal): Ditto. (__pthread_cond_dowait): Ditto. (__pthread_mutex_init): Handle PTHREAD_MUTEX_INITIALIZER correctly, don't return error when it's passed as parameter. * winsup.h (check_null_invalid_struct): Call correct function.
* * exceptions.cc: Add stdlib.h include for alloca declaration.Christopher Faylor2001-11-155-7/+24
| | | | | | * poll.cc: Ditto. * termios.cc: Ditto. * syscalls.cc (_write): Only allow zero length when fd is valid.
* * fhandler.cc (fhandler_disk_file::fstat): Add setting access timeCorinna Vinschen2001-11-142-6/+25
| | | | | | | | and creation time to last modification time for files on filesystems not supporting multiple timestamps. (fhandler_disk_file::fstat_helper): Set access time and creation time in incoming Windows structure instead of in stat buf to avoid incorrectly overwriting Epoch timestamp.
* * winsup.h: Remove alloca definition since it's now defined throughCorinna Vinschen2001-11-143-3/+7
| | | | | inclusion of stdlib.h. * lib/cygwin_crt0.c: Ditto.
* * syscalls.cc (_write): Allow zero length as per SUSv2.Christopher Faylor2001-11-142-0/+7
|
* * dir.cc (mkdir): Add HIDDEN file attribute if file has leading dotCorinna Vinschen2001-11-135-6/+45
| | | | | | | | and HIDDEN_DOT_FILES is defined. * fhandler.cc (fhandler_base::open): Ditto. * path.cc (symlink): Ditto. * syscalls.cc (_rename): Ditto and remove HIDDEN file attribute if new filename does not begin with a dot.
* Fix ChangeLog entry.Corinna Vinschen2001-11-121-0/+1
|
* * cygcheck.cc (dump_sysinfo): Redefine output format slightly.Corinna Vinschen2001-11-122-3/+10
|
* * cygcheck.cc (main): Slight formatting tweak.Christopher Faylor2001-11-122-1/+6
|
* * cygcheck.cc (dump_sysinfo): Add some more details.Corinna Vinschen2001-11-122-4/+22
|
* Add missing ChangeLog entry.Christopher Faylor2001-11-121-0/+4
|
* * cygcheck.cc (dump_sysinfo): Print more detailed OS information stringCorinna Vinschen2001-11-122-12/+39
| | | | using OSVERSIONINFOEX information.
* * include/winbase.h (OSVERSIONINFOEX): Add definition.Corinna Vinschen2001-11-123-0/+43
| | | | * include/winnt.h: Add VER_NT_* and VER_SUITE_* defines.
* * fhandler_console.cc (fhandler_console::read): Revert 2001-10-23 change toChristopher Faylor2001-11-122-3/+5
| | | | only honor keydown events.
* * include/cygwin/version.h: Bump version to 1.3.6.Christopher Faylor2001-11-122-2/+6
|
* * path.h: New file.Christopher Faylor2001-11-121-0/+11
|
* * cygcheck.cc (scan_registry): Open registry with read-only access.Christopher Faylor2001-11-125-16/+32
| | | | | | (main): Reflect argument change for dump_setup. * dump_setup.cc (dump_setup): Add preliminary extra argument for future use. * path.cc (read_mounts): Open registry with read-only access.
* fix typo.Christopher Faylor2001-11-111-1/+1
|
* * cygcheck.cc (main): Display package info when '-s' is specified.Christopher Faylor2001-11-113-6/+17
| | | | | * dump_setup.cc (dump_setup): Change header. Remove typo. Always sort packages output.
* * dump_setup.cc: New file.Christopher Faylor2001-11-115-25/+303
| | | | | | * Makefile.in: Add info for dump_setup.o. * cygcheck.cc (main): Recognize '-c' option for checking setup installed base. * path.cc (cygpath): Read mount table if not loaded.
* * Makefile.in (cygcheck.exe): Compile as -mno-cygwin executable.Christopher Faylor2001-11-114-13/+423
| | | | | | | | * path.cc: New file. * cygcheck.cc (init_paths): Use MS-DOS path syntax. (cygwin_info): Properly display cygwin version numbers. Prettify some output. (dump_sysinfo): Calculate max names of posix and ms-dos paths for prettier output.
* * dtable.cc (dtable::build_fhandler): Don't increment console fd count if newChristopher Faylor2001-11-103-8/+11
| | | | | | operation fails. Increment fork_fixup field here. (dtable::dup2): Don't increment fork_fixup field here. (fdsock): Ditto.
* * cygcheck.cc (dump_sysinfo): Print more detailed OS information string.Corinna Vinschen2001-11-092-4/+25
|
* 2001-11-10 Robert Collins <rbtcollins@hotmail.com>Robert Collins2001-11-092-0/+10
| | | | | * include/winnt.h: Add Danny Smith's text comment about gcc compiler warnings with _AUTHORITY #defines.