Changeset ff9244a in mainline for uspace/lib/libc/include/io/stream.h


Ignore:
Timestamp:
2007-12-26T22:16:21Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2f02aa17
Parents:
75ae31d
Message:

Move the open(), read() and write() provided by streams.c away so that
these functions won't clash with the real open(), read() and write(), which are
soon to be provided by a libvfs library. Applications can now use open_stdin(),
open_stdout(), read_stdin() and write_stdout(). Later, there might be an option
of providing a custom console file system, which will work similarly to how
streams' open(), read() and write() worked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/include/io/stream.h

    r75ae31d rff9244a  
    4040#define EMFILE -17
    4141
    42 typedef int fd_t;
     42extern void open_stdin(void);
     43extern void open_stdout(void);
    4344
    44 typedef ssize_t (*pwritefn_t)(void *, const void *, size_t);
    45 typedef ssize_t (*preadfn_t)(void *, void *, size_t);
     45extern ssize_t read_stdin(void *, size_t);
     46extern ssize_t write_stdout(const void *, size_t);
     47extern ssize_t write_stderr(const void *, size_t);
    4648
    47 fd_t open(const char *fname, int flags);
    48 int get_fd_phone(int fd);
     49extern int get_cons_phone(void);
    4950
    5051#endif
Note: See TracChangeset for help on using the changeset viewer.