summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
...
* * lib/_cygwin_S_IEXEC.c: Remove "const" from globals or they never seem to beChristopher Faylor2001-03-284-14/+34
| | | | | | | | | defined. Wrap definitions in extern "C". Include winsup.h to assure proper definitions. * dcrt0.cc (dll_crt0_1): Call stdio_init after premain run so that binmode.o, etc., will control default stdio settings. * dtable.cc (dtable::init_std_file_from_handle): Allow __fmode to force binmode/textmode settings. Default pipes to binmode.
* * mmap.cc (mmap): Fix conditional for previous patch.Corinna Vinschen2001-03-272-1/+5
|
* add missing stuff.Christopher Faylor2001-03-261-0/+8
|
* * mmap.cc (mmap): Outflank copy-on-write problem on 9x byCorinna Vinschen2001-03-262-1/+10
| | | | setting access mode to FILE_MAP_READ when read access is requested.
* * dlfcn.cc (check_access): Eliminate.Christopher Faylor2001-03-263-107/+46
| | | | | | | | | (check_path_access): Use passed in path_conv buf. (get_full_path_of_dll): Use passed in name buf to avoid a static. Rip out most of the path checking since LoadLibrary will do all of this automatically. (dlopen): Set errno when appropriate (may not be compliant?). * environ.cc (posify): Don't pass in "native" path if it seems to actually be posix.
* * fhandler.h (fhandler_dev_clipboard): Extend to support writing.Christopher Faylor2001-03-224-31/+247
| | | | | | | | | | | | | | | * fhandler_clipboard.cc (fhandler_dev_clipboard::fhandler_dev_clipboard): Initialize new fields. Open clipboard here. (fhandler_dev_clipboard::dup): New method. (fhandler_dev_clipboard::open): Accomodate new fields. Register clipboard here, if appropriate. (set_clipboard): New function. Moves buffer to clipboard. (fhandler_dev_clipboard::write): Truly implement clipboard writing. (fhandler_dev_clipboard::read): Reimplement to allow successive reads. (fhandler_dev_clipboard::lseek): Truly implement seeks in clipboard. (fhandler_dev_clipboard::close): Clear out new fields. Support sequential reads and sequential writes. Support for binary data via a native clipboard format.
* * fhandler_console.cc (fhandler_console::set_default_attr): Update consoleChristopher Faylor2001-03-222-0/+7
| | | | color attributes on tty reset.
* * autoload.cc (kernel32_init): New function for kernel32 autoloadChristopher Faylor2001-03-222-0/+25
| | | | | | initialization. (SignalObjectAndWait): Add conditional load of this function when it is available.
* add new file.Christopher Faylor2001-03-211-0/+41
|
* Add missing files.Christopher Faylor2001-03-212-0/+457
|
* * sched.cc: New file. Implement sched*.Christopher Faylor2001-03-217-950/+1012
| | | | | | * include/sched.h: New file. User land includes for sched*. * Makefile.in: Add sched.o * cygwin.din: Add exports for sched*.
* * dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixingChristopher Faylor2001-03-206-6/+14
| | | | | | | | winsock*.h and sys/types.h. * fhandler_socket.cc: Ditto. * net.cc: Ditto. * select.cc: Ditto. * exceptions.cc: Remove unneeded define.
* * include/winsock.h (_SYS_TYPES_H macro guard for int types): Remove; use onlyChristopher Faylor2001-03-204-12/+39
| | | | | | | | | _BSDTYPES_DEFINED macro now defined in newlib sys/types.h. (SYS_TYPES_H macro guard for fd_set): Replace with_SYS_TYPES_FD_SET macro now defined in newlib sys/types.h. Emit warning if defined. * include/winsock2.h: Ditto. * include/windows.h (Win32_Winsock): Replace with new macros __USE_W32_SOCKETS and warn of deprecation.
* * configure: fix regeneration bug.DJ Delorie2001-03-202-1/+5
|
* * exceptions.cc (interruptible): Update debugging output.Christopher Faylor2001-03-194-5/+14
| | | | | | (setup_handler): Ensure that wait_sig loop wakes up when we punt on sending a signal. * poll.cc (poll): Add signal guard here.
* * tty.h (tty::create_inuse): Add new parameter to allow non-Egor Duda2001-03-194-5/+29
| | | | | | | | | | | | inheritable 'inuse' events. * tty.cc (tty::create_inuse): Use new parameter. * fhandler_tty.cc (fhandler_tty_master::init): Ditto. * fhandler_tty.cc (fhandler_pty_master::open): Ditto. * fhandler_tty.cc (fhandler_tty_master::init): Create master_alive event. * tty.cc (tty_list::terminate): Close master_alive event. * fhandler_tty.cc (fhandler_tty_common::close): Send EOF to slaves when master side is closed.
* * mmap.cc (map::get_list_by_fd): Avoid calling `get_namehash' whenCorinna Vinschen2001-03-192-1/+6
| | | | file descriptor is -1.
* * syscalls.cc (check_posix_perm): New static function.Corinna Vinschen2001-03-193-3/+74
| | | | | | | (fpathconf): Add _PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY support. (pathconf): Ditto. * include/cygwin/version.h: Bump API minor number to 37.
* Fix spacing, copyrights.Christopher Faylor2001-03-1810-120/+116
|
* fix spacing.Christopher Faylor2001-03-181-12/+12
|
* * fhandler.h (fhandler_tty_slave): Declare new methods.Egor Duda2001-03-187-7/+83
| | | | | | | | | | | | | | * select.cc (fhandler_tty_slave::select_read): New method. * select.cc (fhandler_tty_slave::ready_for_read): Ditto. * select.cc (verify_tty_slave): New function. * fhandler_termios.cc (fhandler_termios::line_edit): Empty input buffer on signal. * fhandler_tty.cc (fhandler_tty_slave::read): Check for input data after reading from pipe. Reset event if input pipe is empty. * tty.h (class tty): Allow creating events with manual reset. * tty.cc (tty::get_event): Use manual_reset flag. * tty.cc (tty::common_init): Create input_available_event with manual reset.
* Update copyrights.Christopher Faylor2001-03-1814-14/+14
|
* Update copyright.Christopher Faylor2001-03-182-2/+2
|
* * external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid whenChristopher Faylor2001-03-183-3/+10
| | | | | passed in pid. Don't prematurely break when searching for a pid. * thread.h (_winsup_t): Eliminate unneeded field.
* * kill.cc (forcekill): Use dwProcessId when opening a process, not the CygwinChristopher Faylor2001-03-182-1/+6
| | | | pid.
* * net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.Corinna Vinschen2001-03-173-3/+9
| | | | | * syscalls.cc (_unlink): Ditto. (_rename): Ditto.
* British -> US spelling.David Starks-Browning2001-03-171-3/+10
| | | | Add .inputrc tip to entry "How can I copy and paste into Cygwin console windows?"
* * path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when input isChristopher Faylor2001-03-172-3/+12
| | | | "foo".
* * net.cc (cygwin_socket): Set protocol to 0 when address family isCorinna Vinschen2001-03-172-1/+6
| | | | AF_UNIX to avoid WSAEPROTONOSUPPORT error.
* * net.cc (cygwin_socket): Pass protocol parameter to socket call.Corinna Vinschen2001-03-172-1/+5
|
* Remove "not yet updated" caveat from entry:David Starks-Browning2001-03-171-3/+0
| | | | "How is the DOS/Unix CR/LF thing handled?"
* * dir.cc (readdir): Use strcasematch for consistency.Christopher Faylor2001-03-173-49/+66
| | | | | | | | | | | * path.cc (symlink_info): Eliminate known_suffix. (path_conv::check): Always copy ext_here to end of buffer, if found. (suffix_scan): Eliminate ext_here, add suffixes_start. (suffix_scan::has): Eliminate an argument. Reorganize. Always return pointer to end of input path. (suffix_scan::next): Take a second pass through the suffix list looking for .lnk. (symlink_info::check): Eliminate known_suffix usage.
* Fix typo.Christopher Faylor2001-03-171-1/+1
|
* Accomodate all devices.Christopher Faylor2001-03-172-4/+3
|
* * syscalls.cc (stat_dev): Give devices full read/write.Christopher Faylor2001-03-172-2/+6
|
* * thread.cc (MTinterface::CreateCond): Check for null attr pointer.Christopher Faylor2001-03-172-1/+5
|
* * fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input when aChristopher Faylor2001-03-172-5/+7
| | | | signal is sent or we'll end up in an EOF/signal race.
* fix spelling error.Christopher Faylor2001-03-171-1/+1
|
* * path.cc: Translate scan states from defines to enums.Christopher Faylor2001-03-172-18/+39
| | | | | | | | | | (suffix_scan): Rename state to nextstate for clarity. (lnk_match): Change to allow multiple states to indicate that a .lnk has been matched. (suffix_scan::has): Eliminate a goto. Handle .lnk as a special case, since a .lnk may also need to be tacked on the end of a .lnk. (suffix_scan::next): Don't increment next state. Set it specifically. Recognize new .lnk states.
* * cygwin.din: Export the new functions.Christopher Faylor2001-03-176-1/+410
| | | | | | | | | * pthread.cc (pthread_cond_*): Add wrapper functions that call __pthread_cond* functions. * thread.cc (__pthread_cond_*): Implement the pthread_cond* functions. * thread.h: Add new class entries and prototypes for __pthread_cond* functions. * include/pthread.h: user land header prototypes for pthread_cond* functions and related defines.
* * environ.cc (parse_options): Use strtok_r instead of strtok.Corinna Vinschen2001-03-143-5/+19
| | | | | * security.cc (convert_string_sid_to_sid): Ditto. (aclfromtext): Ditto. Fix buffer usage.
* * path.cc (lnk_suffixes): Remove.Corinna Vinschen2001-03-143-21/+25
| | | | | | | | | | | | (class suffix_scan): Add `lnk_state' flag. (suffix_scan::lnk_match): Return state of `lnk_state' now. (suffix_scan::has): Changed behaviour if file has `.lnk' suffix. (suffix_scan::next): Set `lnk_state' where appropriate. (symlink_info::check): Fix a wrong `break'. * syscalls.cc (chown_worker): Change debug statement to reflect lchown fix. (lchown): Call chown_worker with `PC_SYM_NOFOLLOW' instead of `PC_SYM_IGNORE'.
* * fhandler.cc (fhandler_disk_file::fstat): Add correct modes toCorinna Vinschen2001-03-132-1/+6
| | | | symlinks when stat'ing on FAT or FAT32 file systems.
* * include/wingdi.h: (DOCINFO) Ansi version defined incorrectly.Earnie Boyd2001-03-132-1/+6
| | | | Thanks to: Mattia Barbon <mbarbon@dsi.unive.it>
* Fix typoEgor Duda2001-03-131-2/+2
|
* * fhandler.h (fhandler_termios::fixup_after_exec): New function.Egor Duda2001-03-124-2/+18
| | | | | | | * fhandler.cc (fhandler_termios::fixup_after_fork): New function. Fixup output handle. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Output handle is now fixed up in fhandler_termios::fixup_after_fork().
* * fhandler.h (fhandler_termios::fhandler_termios): Enable fixupEgor Duda2001-03-123-2/+8
| | | | | | after fork. * fhandler_console.cc (fhandler_console::fhandler_console): Fixup after fork is now enabled in the base class constructor.
* * include/commctrl.h (TBSTYLE_FLAT): New definition.Earnie Boyd2001-03-122-0/+10
| | | | | | (TB_GETBUTTONSIZE): Ditto. (TCS_HOTTRACK): Ditto. Thanks to: Chris Hansen <popeofpop@softhome.net>
* * mkvers.sh: Include config.h so that DEBUGGING is correctly defined.Christopher Faylor2001-03-122-0/+5
|
* * spawn.cc (spawn_guts): Don't set EXIT_REPARENTING if parent process is not aChristopher Faylor2001-03-123-5/+11
| | | | cygwin process (suggested by Jason Gouger <cygwin@jason-gouger.com>).