Changeset a68f737 in mainline for uspace/lib/libc/include


Ignore:
Timestamp:
2009-06-08T12:34:38Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d9c8c81
Parents:
f8ef660
Message:

keep a list of open files to support proper cleanup

Location:
uspace/lib/libc/include
Files:
2 edited

Legend:

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

    rf8ef660 ra68f737  
    3838#include <sys/types.h>
    3939#include <stdarg.h>
     40#include <libadt/list.h>
    4041
    4142#define EOF  (-1)
     
    5657
    5758typedef struct {
     59        /** Linked list pointer. */
     60        link_t link;
     61       
    5862        /** Underlying file descriptor. */
    5963        int fd;
     
    7175        int phone;
    7276} FILE;
    73 
    74 extern FILE stdin_null;
    75 extern FILE stdout_klog;
    7677
    7778extern FILE *stdin;
  • uspace/lib/libc/include/vfs/vfs.h

    rf8ef660 ra68f737  
    5656    unsigned int);
    5757
     58extern void stdio_init(int filc, fdi_node_t *filv[]);
     59extern void stdio_done(void);
     60
    5861extern int open_node(fdi_node_t *, int);
    5962extern int fd_phone(int);
    60 extern void fd_node(int, fdi_node_t *);
     63extern int fd_node(int, fdi_node_t *);
    6164
    6265extern FILE *fopen_node(fdi_node_t *, const char *);
    6366extern int fphone(FILE *);
    64 extern void fnode(FILE *, fdi_node_t *);
     67extern int fnode(FILE *, fdi_node_t *);
    6568
    6669#endif
Note: See TracChangeset for help on using the changeset viewer.