Changeset 27b76ca in mainline for uspace/lib/c


Ignore:
Timestamp:
2011-08-18T14:05:10Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
44451ee
Parents:
b33ec43
Message:

Synchronize VFS handle acceptor with VFS.

  • Introduce VFS_IN_WAIT_HANDLE.
  • Add vfs_wait_handle() to VFS.
  • Add fd_wait() to libc.
  • Use fd_wait() in loader.
Location:
uspace/lib/c
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/vfs/vfs.c

    rb33ec43 r27b76ca  
    815815}
    816816
     817int fd_wait(void)
     818{
     819        async_exch_t *exch = vfs_exchange_begin();
     820       
     821        sysarg_t ret;
     822        sysarg_t rc = async_req_0_1(exch, VFS_IN_WAIT_HANDLE, &ret);
     823       
     824        vfs_exchange_end(exch);
     825       
     826        if (rc == EOK)
     827                return (int) ret;
     828       
     829        return (int) rc;
     830}
     831
    817832/** @}
    818833 */
  • uspace/lib/c/include/ipc/vfs.h

    rb33ec43 r27b76ca  
    7777        VFS_IN_RENAME,
    7878        VFS_IN_STAT,
    79         VFS_IN_DUP
     79        VFS_IN_DUP,
     80        VFS_IN_WAIT_HANDLE,
    8081} vfs_in_request_t;
    8182
  • uspace/lib/c/include/vfs/vfs.h

    rb33ec43 r27b76ca  
    5555extern int fhandle(FILE *, int *);
    5656
     57extern int fd_wait(void);
     58
    5759extern async_exch_t *vfs_exchange_begin(void);
    5860extern void vfs_exchange_end(async_exch_t *);
Note: See TracChangeset for help on using the changeset viewer.