Changeset 2595dab in mainline for uspace/lib/libc/include/vfs/vfs.h


Ignore:
Timestamp:
2009-06-03T19:26:28Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d00ae4c
Parents:
ca3ba3a
Message:

I/O subsystem overhaul:

  • add more POSIX-like file and stream functions (with real functionality of stdin, stdout, stderr)
  • cleanup console access methods (now generic to any console-like device)
  • remove unsafe stream functions
  • add special open_node(), fd_node(), fd_phone() (file) and fopen_node(), fnode(), fphone() (stream) functions for HelenOS-specific I/O operations
File:
1 edited

Legend:

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

    rca3ba3a r2595dab  
    3737
    3838#include <sys/types.h>
     39#include <ipc/vfs.h>
     40#include <ipc/devmap.h>
     41#include <stdio.h>
     42
     43typedef struct {
     44        fs_handle_t fs_handle;
     45        dev_handle_t dev_handle;
     46        fs_index_t index;
     47} fs_node_t;
    3948
    4049extern char *absolutize(const char *, size_t *);
     
    4352    unsigned int flags);
    4453
     54extern int open_node(fs_node_t *node, int oflag);
     55extern int fd_phone(int);
     56extern void fd_node(int, fs_node_t *);
     57
     58extern FILE *fopen_node(fs_node_t *node, const char *);
     59extern int fphone(FILE *);
     60extern void fnode(FILE *stream, fs_node_t *node);
     61
    4562#endif
    4663
Note: See TracChangeset for help on using the changeset viewer.