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

- fcntl() did not work for sockets. Fixed.

git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14890 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
Olaf Barthel
2005-03-16 09:28:37 +00:00
parent dc80018239
commit f492e6a6c0
3 changed files with 4 additions and 15 deletions

View File

@ -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)

View File

@ -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);

View File

@ -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();