mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- The internal 'struct fd' file descriptor table entry data structure
now has a user data field entry. - Rearranged the contents of the 'struct fd' file descriptor table entry data structure in preparation for making it public. Also added a version field so that user code can handle changes to it gracefully. The default file is no longer a BCPL pointer to a file handle by default, but both a BPTR and a socket identifier, wrapped into a union. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15160 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: stdio_record_locking.c,v 1.17 2006-09-25 14:51:15 obarthel Exp $
|
||||
* $Id: stdio_record_locking.c,v 1.18 2006-10-10 13:39:26 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -342,7 +342,7 @@ remove_locked_region_node(struct FileLockSemaphore * fls,struct fd * fd,LONG sta
|
||||
{
|
||||
CLEAR_FLAG(fd->fd_Flags,FDF_IS_LOCKED);
|
||||
}
|
||||
while((fd = fd->fd_NextLink) != NULL);
|
||||
while((fd = fd->fd_NextAlias) != NULL);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -725,7 +725,7 @@ cleanup_locked_records(struct fd * fd)
|
||||
{
|
||||
CLEAR_FLAG(fd->fd_Flags,FDF_IS_LOCKED);
|
||||
}
|
||||
while((fd = fd->fd_NextLink) != NULL);
|
||||
while((fd = fd->fd_NextAlias) != NULL);
|
||||
}
|
||||
|
||||
release_file_lock_semaphore(fls);
|
||||
@ -1086,7 +1086,7 @@ __handle_record_locking(int cmd,struct flock * l,struct fd * fd,int * error_ptr)
|
||||
{
|
||||
SET_FLAG(fd->fd_Flags,FDF_IS_LOCKED);
|
||||
}
|
||||
while((fd = fd->fd_NextLink) != NULL);
|
||||
while((fd = fd->fd_NextAlias) != NULL);
|
||||
}
|
||||
else if (cmd == F_SETLK)
|
||||
{
|
||||
@ -1164,7 +1164,7 @@ __handle_record_locking(int cmd,struct flock * l,struct fd * fd,int * error_ptr)
|
||||
{
|
||||
SET_FLAG(fd->fd_Flags,FDF_IS_LOCKED);
|
||||
}
|
||||
while((fd = fd->fd_NextLink) != NULL);
|
||||
while((fd = fd->fd_NextAlias) != NULL);
|
||||
}
|
||||
else if (cmd == F_GETLK)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user