Changeset 72ec8cc in mainline


Ignore:
Timestamp:
2011-06-22T01:21:18Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1fae414
Parents:
7d0b76d
Message:

getpagesize() provided as a function so it is properly detected by Autoconf-generated scripts.
Added minor symbol dependencies into unistd.h.

Location:
uspace/lib/posix
Files:
2 edited

Legend:

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

    r7d0b76d r72ec8cc  
    5454
    5555/**
     56 *
     57 * @return
     58 */
     59int posix_getpagesize(void)
     60{
     61        return getpagesize();
     62}
     63
     64/**
    5665 *
    5766 * @return
  • uspace/lib/posix/unistd.h

    r7d0b76d r72ec8cc  
    5454extern int posix_isatty(int fd);
    5555
     56/* Query Memory Parameters */
     57extern int posix_getpagesize(void);
     58
    5659/* Process Identification */
    5760#define getpid task_get_id
     
    8790extern long posix_sysconf(int name);
    8891
     92/* Path Configuration Parameters */
     93enum {
     94        _PC_2_SYMLINKS,
     95        _PC_ALLOC_SIZE_MIN,
     96        _PC_ASYNC_IO,
     97        _PC_CHOWN_RESTRICTED,
     98        _PC_FILESIZEBITS,
     99        _PC_LINK_MAX,
     100        _PC_MAX_CANON,
     101        _PC_MAX_INPUT,
     102        _PC_NAME_MAX,
     103        _PC_NO_TRUNC,
     104        _PC_PATH_MAX,
     105        _PC_PIPE_BUF,
     106        _PC_PRIO_IO,
     107        _PC_REC_INCR_XFER_SIZE,
     108        _PC_REC_MIN_XFER_SIZE,
     109        _PC_REC_XFER_ALIGN,
     110        _PC_SYMLINK_MAX,
     111        _PC_SYNC_IO,
     112        _PC_VDISABLE
     113};
     114
    89115#ifndef LIBPOSIX_INTERNAL
    90116        #define environ posix_environ
    91117
    92118        #define isatty posix_isatty
     119
     120        #undef getpagesize
     121        #define getpagesize posix_getpagesize
    93122
    94123        #define getuid posix_getuid
Note: See TracChangeset for help on using the changeset viewer.