Changeset 00c2de63 in mainline for uspace/lib/posix/unistd.h


Ignore:
Timestamp:
2011-07-29T14:50:22Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b6759f4
Parents:
6c69d19 (diff), 7ae249d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge libposix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/unistd.h

    r6c69d19 r00c2de63  
    6060/* Working Directory */
    6161extern char *posix_getcwd(char *buf, size_t size);
     62extern int posix_chdir(const char *path);
    6263
    6364/* Query Memory Parameters */
     
    6970extern posix_gid_t posix_getgid(void);
    7071
    71 /* File Input/Output */
     72/* File Manipulation */
     73extern int posix_close(int fildes);
     74
    7275extern ssize_t posix_read(int fildes, void *buf, size_t nbyte);
     76extern ssize_t posix_write(int fildes, const void *buf, size_t nbyte);
    7377
    74 /* Deleting Files */
     78extern int posix_fsync(int fildes);
     79extern int posix_ftruncate(int fildes, posix_off_t length);
     80
     81extern int posix_rmdir(const char *path);
    7582extern int posix_unlink(const char *path);
     83
     84extern int posix_dup(int fildes);
     85extern int posix_dup2(int fildes, int fildes2);
    7686
    7787/* Standard Streams */
     
    144154
    145155        #define getcwd posix_getcwd
     156        #define chdir posix_chdir
    146157
    147158        #define isatty posix_isatty
     
    154165        #define getgid posix_getgid
    155166
     167        #define close posix_close
    156168        #define read posix_read
    157 
     169        #define write posix_write
     170        #define fsync posix_fsync
     171        #define ftruncate posix_ftruncate
     172        #define rmdir posix_rmdir
    158173        #define unlink posix_unlink
     174        #define dup posix_dup
     175        #define dup2 posix_dup2
    159176
    160177        #define access posix_access
Note: See TracChangeset for help on using the changeset viewer.