diff --git a/library/changes b/library/changes index 13017e6..0e064af 100644 --- a/library/changes +++ b/library/changes @@ -94,6 +94,8 @@ - ftruncate() ended up changing the current file position, contrary to what it is supposed to do. Fixed. +- fcntl() did not work for sockets. Fixed. + c.lib 1.189 (5.3.2005) diff --git a/library/fcntl_fcntl.c b/library/fcntl_fcntl.c index 935f43d..a597d49 100644 --- a/library/fcntl_fcntl.c +++ b/library/fcntl_fcntl.c @@ -1,5 +1,5 @@ /* - * $Id: fcntl_fcntl.c,v 1.12 2005-03-04 09:07:09 obarthel Exp $ + * $Id: fcntl_fcntl.c,v 1.13 2005-03-16 09:28:37 obarthel Exp $ * * :ts=4 * @@ -126,12 +126,6 @@ fcntl(int file_descriptor, int cmd, ... /* int arg */ ) SHOWMSG("cmd=F_GETFL"); - if(FLAG_IS_SET(fd->fd_Flags,FDF_IS_SOCKET)) - { - __set_errno(EINVAL); - goto out; - } - if(FLAG_IS_SET(fd->fd_Flags,FDF_NON_BLOCKING)) SET_FLAG(result,O_NONBLOCK); @@ -146,12 +140,6 @@ fcntl(int file_descriptor, int cmd, ... /* int arg */ ) SHOWMSG("cmd=F_SETFL"); - if(FLAG_IS_SET(fd->fd_Flags,FDF_IS_SOCKET)) - { - __set_errno(EINVAL); - goto out; - } - va_start(arg,cmd); flags = va_arg(arg,int); va_end(arg); diff --git a/library/unistd_ftruncate.c b/library/unistd_ftruncate.c index dbf06de..7e368bd 100644 --- a/library/unistd_ftruncate.c +++ b/library/unistd_ftruncate.c @@ -1,5 +1,5 @@ /* - * $Id: unistd_ftruncate.c,v 1.8 2005-03-14 10:03:06 obarthel Exp $ + * $Id: unistd_ftruncate.c,v 1.9 2005-03-16 09:28:37 obarthel Exp $ * * :ts=4 * @@ -50,7 +50,6 @@ ftruncate(int file_descriptor, off_t length) BOOL restore_initial_position = FALSE; off_t current_file_size; off_t initial_position = -1; - BOOL success; ENTER();