aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2001-03-22* autoload.cc (kernel32_init): New function for kernel32 autoloadChristopher Faylor2-0/+25
initialization. (SignalObjectAndWait): Add conditional load of this function when it is available.
2001-03-21add new file.Christopher Faylor1-0/+41
2001-03-21Add missing files.Christopher Faylor2-0/+457
2001-03-21* sched.cc: New file. Implement sched*.Christopher Faylor7-950/+1012
* include/sched.h: New file. User land includes for sched*. * Makefile.in: Add sched.o * cygwin.din: Add exports for sched*.
2001-03-20* dtable.cc: Guard against new winsock.h/winsock2.h warnings when mixingChristopher Faylor6-6/+14
winsock*.h and sys/types.h. * fhandler_socket.cc: Ditto. * net.cc: Ditto. * select.cc: Ditto. * exceptions.cc: Remove unneeded define.
2001-03-20* include/winsock.h (_SYS_TYPES_H macro guard for int types): Remove; use onlyChristopher Faylor4-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.
2001-03-20* configure: fix regeneration bug.DJ Delorie2-1/+5
2001-03-19* exceptions.cc (interruptible): Update debugging output.Christopher Faylor4-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.
2001-03-19* tty.h (tty::create_inuse): Add new parameter to allow non-Egor Duda4-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.
2001-03-19 * mmap.cc (map::get_list_by_fd): Avoid calling `get_namehash' whenCorinna Vinschen2-1/+6
file descriptor is -1.
2001-03-19 * syscalls.cc (check_posix_perm): New static function.Corinna Vinschen3-3/+74
(fpathconf): Add _PC_POSIX_PERMISSIONS and _PC_POSIX_SECURITY support. (pathconf): Ditto. * include/cygwin/version.h: Bump API minor number to 37.
2001-03-18Fix spacing, copyrights.Christopher Faylor10-120/+116
2001-03-18fix spacing.Christopher Faylor1-12/+12
2001-03-18* fhandler.h (fhandler_tty_slave): Declare new methods.Egor Duda7-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.
2001-03-18Update copyrights.Christopher Faylor14-14/+14
2001-03-18Update copyright.Christopher Faylor2-2/+2
2001-03-18* external.cc (fillout_pinfo): Match windows pid, as well as cygwin pid whenChristopher Faylor3-3/+10
passed in pid. Don't prematurely break when searching for a pid. * thread.h (_winsup_t): Eliminate unneeded field.
2001-03-18* kill.cc (forcekill): Use dwProcessId when opening a process, not the CygwinChristopher Faylor2-1/+6
pid.
2001-03-17 * net.cc (get_95_ifconf): Use strcasematch instead of strcasecmp.Corinna Vinschen3-3/+9
* syscalls.cc (_unlink): Ditto. (_rename): Ditto.
2001-03-17British -> US spelling.David Starks-Browning1-3/+10
Add .inputrc tip to entry "How can I copy and paste into Cygwin console windows?"
2001-03-17* path.cc (suffix_scan::next): Avoid searching for foo.lnk twice when input isChristopher Faylor2-3/+12
"foo".
2001-03-17 * net.cc (cygwin_socket): Set protocol to 0 when address family isCorinna Vinschen2-1/+6
AF_UNIX to avoid WSAEPROTONOSUPPORT error.
2001-03-17 * net.cc (cygwin_socket): Pass protocol parameter to socket call.Corinna Vinschen2-1/+5
2001-03-17Remove "not yet updated" caveat from entry:David Starks-Browning1-3/+0
"How is the DOS/Unix CR/LF thing handled?"
2001-03-17* dir.cc (readdir): Use strcasematch for consistency.Christopher Faylor3-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.
2001-03-17Fix typo.Christopher Faylor1-1/+1
2001-03-17Accomodate all devices.Christopher Faylor2-4/+3
2001-03-17* syscalls.cc (stat_dev): Give devices full read/write.Christopher Faylor2-2/+6
2001-03-17* thread.cc (MTinterface::CreateCond): Check for null attr pointer.Christopher Faylor2-1/+5
2001-03-17* fhandler_termios.cc (fhandler_termios::line_edit): Don't accept input when aChristopher Faylor2-5/+7
signal is sent or we'll end up in an EOF/signal race.
2001-03-17fix spelling error.Christopher Faylor1-1/+1
2001-03-17* path.cc: Translate scan states from defines to enums.Christopher Faylor2-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.
2001-03-17* cygwin.din: Export the new functions.Christopher Faylor6-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.
2001-03-14 * environ.cc (parse_options): Use strtok_r instead of strtok.Corinna Vinschen3-5/+19
* security.cc (convert_string_sid_to_sid): Ditto. (aclfromtext): Ditto. Fix buffer usage.
2001-03-14 * path.cc (lnk_suffixes): Remove.Corinna Vinschen3-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'.
2001-03-13 * fhandler.cc (fhandler_disk_file::fstat): Add correct modes toCorinna Vinschen2-1/+6
symlinks when stat'ing on FAT or FAT32 file systems.
2001-03-13 * include/wingdi.h: (DOCINFO) Ansi version defined incorrectly.Earnie Boyd2-1/+6
Thanks to: Mattia Barbon <mbarbon@dsi.unive.it>
2001-03-13Fix typoEgor Duda1-2/+2
2001-03-12* fhandler.h (fhandler_termios::fixup_after_exec): New function.Egor Duda4-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().
2001-03-12* fhandler.h (fhandler_termios::fhandler_termios): Enable fixupEgor Duda3-2/+8
after fork. * fhandler_console.cc (fhandler_console::fhandler_console): Fixup after fork is now enabled in the base class constructor.
2001-03-12 * include/commctrl.h (TBSTYLE_FLAT): New definition.Earnie Boyd2-0/+10
(TB_GETBUTTONSIZE): Ditto. (TCS_HOTTRACK): Ditto. Thanks to: Chris Hansen <popeofpop@softhome.net>
2001-03-12* mkvers.sh: Include config.h so that DEBUGGING is correctly defined.Christopher Faylor2-0/+5
2001-03-12* spawn.cc (spawn_guts): Don't set EXIT_REPARENTING if parent process is not aChristopher Faylor3-5/+11
cygwin process (suggested by Jason Gouger <cygwin@jason-gouger.com>).
2001-03-11* child_info.h: Bump magic number for fork/exec/spawn.Christopher Faylor2-1/+5
2001-03-11Remove obvious brain freeze problem.Christopher Faylor1-1/+1
2001-03-11* autoload.cc (noload): Use proper method for multiline strings or newer gcc'sChristopher Faylor5-167/+186
complain. * exceptions.cc (unused_sig_wrapper): Ditto. * fhandler.h (fhandler_base): Make get_io_handle and friends return self. * fhandler_tty.cc (fhandler_pty_common::close_on_exec): Accomodate DEBUGGING flag to avoid spurious warnings when inheritance is set.
2001-03-10* shortcut.c (PATH_ALL_EXEC): Add parentheses to avoid a compiler warning.Christopher Faylor6-40/+39
* exceptions.cc (setup_handler): Clarify debugging message. * sigproc.cc (proc_subproc): Remove PROC_CHILDSTOPPED test. It is handled by normal PROC_CLEARWAIT case. (wait_sig): Eliminate "dispatched" tracking. Remove __SIGCHILDSTOPPED test. Decrement counter again before jumping out of InterlockedDecrement loop so that subsequent InterlockedIncrement will keep the counter at the correctly decremented value and also detect when there are pending signals. * sigproc.h: Remove __SIGCHILDSTOPPED element. (procstuff): Remove PROC_CHILDSTOPPED element.
2001-03-10* syscalls.cc (_rename): Set errno to ENOENT when an old path doesn't existChristopher Faylor3-3/+11
(from Kazuhiro Fujieda <fujieda@jaist.ac.jp>). Also set EACCES when directory is not writable.
2001-03-10* winsup.api/ltp/access01.c: Avoid compilation error if X_OKEgor Duda2-13/+18
isn't declared as a constant.
2001-03-09* config/default.exp: Remove unneeded debugging output.Egor Duda3-3/+7
* Makefile.in: Use correct path to find dejagnu in local tree.