summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/poll.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* * cygerrno.h: New file. Use this throughout whenever errno manipulation isChristopher Faylor2000-08-221-0/+1
| | | | | | | | | | | | | | | required. * errno.cc: Use DWORD to hold Windows errors. (geterrno_from_win_error): New function. (seterrno_from_win_error): Use geterrno_from_win_error to convert supplied windows error (suggested by Corinna Vinschen). * path.cc (symlink_info): Add error element. * path.cc (path_conv::check): Remove errno setting. Use new symlink_info errno element to set path_conv error, where appropriate. (symlink_info::check): Set error element rather than attempting to manipulate errno. Add more checks for trailing / and /.. even though they are currently useless. Avoid setting EINVAL. * path.cc (normalize_posix_path): Correct check for trailing /.
* * poll.cc: Make winsup.h the first include file, re 2000-08-02 change.Christopher Faylor2000-08-121-1/+1
|
* * winsup.h: Split out dtable definitions into separate header file.Christopher Faylor2000-08-121-0/+1
| | | | | | * dtable.h: New file. * sigproc.h: Eliminate pinfo.h usage here. Use it in source files that need it.
* Rename hinfo -> dtable. Name the former dtable array 'fdtab'.Christopher Faylor2000-08-121-2/+2
|
* * poll.cc: Allow any descriptor and any number of descriptors.Corinna Vinschen2000-08-111-20/+34
| | | | Allocate fd_set struct sdynamically.
* * poll.cc: Add bounds checking for file descriptors. Return POLLNVALCorinna Vinschen2000-08-111-19/+22
| | | | | | if fd is invalid. Return POLLERR for each valid fd if cygwin_select returned with error. include/sys/poll.h: Change POLLERR comment according to above change.
* * winsup.h: take out protections of environ, errno, allow C useDJ Delorie2000-08-021-1/+1
| | | | | | | | | | * *.cc: put winsup.h before other headers (for __INSIDE_CYGWIN__); use cur_environ() instead of just environ * times.cc: remove import protections * glob.c: add winsup.h * localtime.c: ditto * smallprint.c: ditto * Makefile.in: don't __INSIDE_CYGWIN__ as it messes up profiling.
* Patch suggested by Eric Fifer <EFifer@sanwaint.com>Corinna Vinschen2000-07-171-3/+3
| | | | * poll.cc (poll): Fix erroneous negations.
* * poll.cc (poll): Zero out `open_fds' as well.Corinna Vinschen2000-07-041-0/+1
|
* * poll.cc: New file. Implement `poll' system call.Corinna Vinschen2000-07-041-0/+63
* include/poll.h: Ditto. * include/sys/poll.h: Ditto. * Makefile.in: Add poll.o as dependency. * cygwin.din: Add poll and _poll symbols.