Changeset 59f799b in mainline for uspace/lib/posix/unistd.h


Ignore:
Timestamp:
2011-06-16T19:42:22Z (14 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
39a7bfa
Parents:
491e1ee
Message:

Added function stubs into stdio.h and unistd.h.

File:
1 edited

Legend:

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

    r491e1ee r59f799b  
    3838
    3939#include "libc/unistd.h"
     40#include "sys/types.h"
    4041
    4142/* Process Termination */
     
    5253/* Process Identification */
    5354#define getpid task_get_id
     55extern posix_uid_t posix_getuid(void);
     56extern posix_gid_t posix_getgid(void);
    5457
    5558/* Standard Streams */
     
    7275extern int posix_access(const char *path, int amode);
    7376
     77/* System Parameters */
     78enum {
     79        _SC_PHYS_PAGES,
     80        _SC_AVPHYS_PAGES,
     81        _SC_PAGESIZE,
     82        _SC_CLK_TCK
     83};
     84extern long posix_sysconf(int name);
     85
    7486#ifndef LIBPOSIX_INTERNAL
    7587        #define isatty posix_isatty
    7688
     89        #define getuid posix_getuid
     90        #define getgid posix_getgid
     91
    7792        #define access posix_access
     93
     94        #define sysconf posix_sysconf
    7895#endif
    7996
Note: See TracChangeset for help on using the changeset viewer.