Changeset b4d6252 in mainline


Ignore:
Timestamp:
2011-06-20T02:21:21Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5c5117c, dddc3d9
Parents:
fb90deb
Message:

Various minor changes to header files.
Added stdint.h header.
Added offsetof macro definition.

Location:
uspace/lib/posix
Files:
1 added
6 edited

Legend:

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

    rfb90deb rb4d6252  
    3636#define POSIX_INTTYPES_H_
    3737
    38 #include "libc/stdint.h"
     38#include "stdint.h"
    3939#include "libc/inttypes.h"
    4040
  • uspace/lib/posix/limits.h

    rfb90deb rb4d6252  
    3636#define POSIX_LIMITS_H_
    3737
     38#include "libc/stdint.h"
    3839#include "libc/sys/types.h"
    3940
  • uspace/lib/posix/stddef.h

    rfb90deb rb4d6252  
    4242#endif
    4343
     44#define offsetof(type,member) ((size_t) &(((type *) 0)->member))
     45
    4446typedef ssize_t posix_ptrdiff_t;
    4547
  • uspace/lib/posix/string.h

    rfb90deb rb4d6252  
    102102extern size_t posix_strnlen(const char *s, size_t n);
    103103
     104/* Legacy declarations */
     105extern int posix_ffs(int i);
     106
    104107#ifndef LIBPOSIX_INTERNAL
    105108        #define strcpy posix_strcpy
     
    134137        #define strlen posix_strlen
    135138        #define strnlen posix_strnlen
     139
     140        #define ffs posix_ffs
    136141#endif
    137142
  • uspace/lib/posix/unistd.c

    rfb90deb rb4d6252  
    3838#include "internal/common.h"
    3939#include "unistd.h"
     40
     41/* Array of environment variable strings (NAME=VALUE). */
     42char **environ = NULL;
    4043
    4144/**
  • uspace/lib/posix/unistd.h

    rfb90deb rb4d6252  
    4848extern int getopt(int, char * const [], const char *);
    4949
     50/* Environmental Variables */
     51extern char **posix_environ;
     52
    5053/* Identifying Terminals */
    5154extern int posix_isatty(int fd);
     
    8588
    8689#ifndef LIBPOSIX_INTERNAL
     90        #define environ posix_environ
     91
    8792        #define isatty posix_isatty
    8893
Note: See TracChangeset for help on using the changeset viewer.