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_duplicate_fd.c,v 1.5 2006-01-08 12:04:24 obarthel Exp $
|
||||
* $Id: stdio_duplicate_fd.c,v 1.6 2006-10-10 13:39:26 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@ -55,8 +55,8 @@ __duplicate_fd(struct fd * duplicate_fd,struct fd * original_fd)
|
||||
duplicate_fd->fd_Original = original_fd;
|
||||
|
||||
/* Add the duplicate at the beginning of the list. */
|
||||
duplicate_fd->fd_NextLink = duplicate_fd->fd_Original->fd_NextLink;
|
||||
duplicate_fd->fd_Original->fd_NextLink = duplicate_fd;
|
||||
duplicate_fd->fd_NextAlias = duplicate_fd->fd_Original->fd_NextAlias;
|
||||
duplicate_fd->fd_Original->fd_NextAlias = duplicate_fd;
|
||||
|
||||
__fd_unlock(original_fd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user