Changeset 7171760 in mainline for uspace/lib/c/include/vfs/vfs.h


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

Rework the way how open files are passed from parent task to child.

  • Instead of passing fdi_node_t's, pass handles directly using the IPC_M_STATE_CHANGE_AUTHORIZE mechanism.
  • Remove open_node(), fd_node(), fdi_node_t.
  • Replace fopen_node() with fopen_handle().
  • Replace fnode() with fhandle().
  • The child task does not synchronize with VFS yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/vfs/vfs.h

    r866e627 r7171760  
    4646};
    4747
    48 /** Libc version of the VFS triplet.
    49  *
    50  * Unique identification of a file system node
    51  * within a file system instance.
    52  *
    53  */
    54 typedef struct fdi_node {
    55         fs_handle_t fs_handle;
    56         devmap_handle_t devmap_handle;
    57         fs_index_t index;
    58 } fdi_node_t;
    59 
    6048extern char *absolutize(const char *, size_t *);
    6149
     
    6452extern int unmount(const char *);
    6553
    66 extern int open_node(fdi_node_t *, int);
    67 extern int fd_node(int, fdi_node_t *);
    68 
    69 extern FILE *fopen_node(fdi_node_t *, const char *);
    70 extern int fnode(FILE *, fdi_node_t *);
     54extern FILE *fopen_handle(int);
     55extern int fhandle(FILE *, int *);
    7156
    7257extern async_exch_t *vfs_exchange_begin(void);
Note: See TracChangeset for help on using the changeset viewer.