1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00

- select() and waitselect() can now be called without any file descriptor

sets to work with, as some software does which uses select() in place
  of sleep().


git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15103 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2006-06-22 09:02:44 +00:00
parent b043a1ac1f
commit d4528b2862
3 changed files with 10 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#
# $Id: GNUmakefile.os4,v 1.97 2006-05-04 08:01:46 obarthel Exp $
# $Id: GNUmakefile.os4,v 1.98 2006-06-22 09:02:44 obarthel Exp $
#
# :ts=8
#
@ -160,7 +160,6 @@ CFLAGS = $(WARNINGS) $(OPTIMIZE) $(DEBUG) $(OPTIONS) $(CODE_TYPE) $(INCLUDES)
C_LIB = \
c.lib_rev.o \
crtbegin.o \
crtend.o \
ctype_isalnum.o \
ctype_isalpha.o \
ctype_isascii.o \
@ -496,7 +495,8 @@ C_LIB = \
unistd_unlink.o \
unistd_usleep.o \
utime_utime.o \
utsname_uname.o
utsname_uname.o \
crtend.o
# All objects files which make up libunix.a
UNIX_LIB = \

View File

@ -1,3 +1,7 @@
- select() and waitselect() can now be called without any file descriptor
sets to work with, as some software does which uses select() in place
of sleep().
- The <sys/ioctl.h> header file now includes both <sys/select.h> and
<sys/filio.h> for better compatibility with the TCP/IP stack header
files.

View File

@ -1,5 +1,5 @@
/*
* $Id: socket_select_signal.c,v 1.2 2006-04-05 08:39:45 obarthel Exp $
* $Id: socket_select_signal.c,v 1.3 2006-06-22 09:02:44 obarthel Exp $
*
* :ts=4
*
@ -938,7 +938,7 @@ __select(int num_fds,fd_set *read_fds,fd_set *write_fds,fd_set *except_fds,struc
else
{
/* Wait for file input? */
if((total_file_fd > 0) && (timeout == NULL || timeout->tv_secs > 0 || timeout->tv_micro > 0))
if(timeout == NULL || timeout->tv_secs > 0 || timeout->tv_micro > 0)
{
struct DateStamp stop_when;
BOOL got_input;
@ -1090,7 +1090,7 @@ __select(int num_fds,fd_set *read_fds,fd_set *write_fds,fd_set *except_fds,struc
}
else
{
SHOWMSG("no files to worry about");
SHOWMSG("no files and no timeout to worry about");
if(signal_mask != 0)
(*signal_mask_ptr) = signal_mask & SetSignal(0,signal_mask & ~__break_signal_mask);