Changeset e4f8c77 in mainline for uspace/lib/posix/unistd.h


Ignore:
Timestamp:
2011-07-13T22:39:18Z (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:
e6910c8
Parents:
5974661 (diff), 8ecef91 (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

    r5974661 re4f8c77  
    4848extern int getopt(int, char * const [], const char *);
    4949
     50/* Environment */
     51extern char **posix_environ;
     52
     53/* Login Information */
     54extern char *posix_getlogin(void);
     55extern int posix_getlogin_r(char *name, size_t namesize);
     56
    5057/* Identifying Terminals */
    5158extern int posix_isatty(int fd);
    5259
     60/* Working Directory */
     61extern char *posix_getcwd(char *buf, size_t size);
     62
     63/* Query Memory Parameters */
     64extern int posix_getpagesize(void);
     65
    5366/* Process Identification */
    54 #define getpid task_get_id
     67extern posix_pid_t posix_getpid(void);
    5568extern posix_uid_t posix_getuid(void);
    5669extern posix_gid_t posix_getgid(void);
     70
     71/* File Input/Output */
     72extern ssize_t posix_read(int fildes, void *buf, size_t nbyte);
     73
     74/* Deleting Files */
     75extern int posix_unlink(const char *path);
    5776
    5877/* Standard Streams */
     
    84103extern long posix_sysconf(int name);
    85104
     105/* Path Configuration Parameters */
     106enum {
     107        _PC_2_SYMLINKS,
     108        _PC_ALLOC_SIZE_MIN,
     109        _PC_ASYNC_IO,
     110        _PC_CHOWN_RESTRICTED,
     111        _PC_FILESIZEBITS,
     112        _PC_LINK_MAX,
     113        _PC_MAX_CANON,
     114        _PC_MAX_INPUT,
     115        _PC_NAME_MAX,
     116        _PC_NO_TRUNC,
     117        _PC_PATH_MAX,
     118        _PC_PIPE_BUF,
     119        _PC_PRIO_IO,
     120        _PC_REC_INCR_XFER_SIZE,
     121        _PC_REC_MIN_XFER_SIZE,
     122        _PC_REC_XFER_ALIGN,
     123        _PC_SYMLINK_MAX,
     124        _PC_SYNC_IO,
     125        _PC_VDISABLE
     126};
     127extern long posix_pathconf(const char *path, int name);
     128
     129/* Creating a Process */
     130extern posix_pid_t posix_fork(void);
     131
     132/* Executing a File */
     133extern int posix_execv(const char *path, char *const argv[]);
     134extern int posix_execvp(const char *file, char *const argv[]);
     135
     136/* Creating a Pipe */
     137extern int posix_pipe(int fildes[2]);
     138
    86139#ifndef LIBPOSIX_INTERNAL
     140        #define environ posix_environ
     141
     142        #define getlogin posix_getlogin
     143        #define getlogin_r posix_getlogin_r
     144
     145        #define getcwd posix_getcwd
     146
    87147        #define isatty posix_isatty
    88148
     149        #undef getpagesize
     150        #define getpagesize posix_getpagesize
     151
     152        #define getpid posix_getpid
    89153        #define getuid posix_getuid
    90154        #define getgid posix_getgid
     155
     156        #define read posix_read
     157
     158        #define unlink posix_unlink
    91159
    92160        #define access posix_access
    93161
    94162        #define sysconf posix_sysconf
     163
     164        #define pathconf posix_pathconf
     165
     166        #define fork posix_fork
     167
     168        #define execv posix_execv
     169        #define execvp posix_execvp
     170
     171        #define pipe posix_pipe
    95172#endif
    96173
Note: See TracChangeset for help on using the changeset viewer.