Changeset f7e69f5 in mainline for uspace/lib/posix


Ignore:
Timestamp:
2012-05-25T23:17:33Z (14 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e1e4192
Parents:
0a0e6e7 (diff), df3f85f (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 mainline changes

Location:
uspace/lib/posix
Files:
2 added
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    r0a0e6e7 rf7e69f5  
    4343        fcntl.c \
    4444        fnmatch.c \
     45        getopt.c \
    4546        locale.c \
    4647        math.c \
  • uspace/lib/posix/errno.h

    r0a0e6e7 rf7e69f5  
    6666#undef errno
    6767#define errno (*__posix_errno())
     68
     69#include "unistd.h"
    6870
    6971extern int *__posix_errno(void);
  • uspace/lib/posix/pwd.c

    r0a0e6e7 rf7e69f5  
    3838#include "string.h"
    3939#include "errno.h"
     40#include "assert.h"
    4041
    4142static bool entry_read = false;
  • uspace/lib/posix/stdbool.h

    r0a0e6e7 rf7e69f5  
    3737
    3838#ifdef LIBC_BOOL_H_
    39         #error "You can't include bool.h and stdbool.h at the same time."
     39#if (!defined(POSIX_STDIO_H_)) \
     40                && (!defined(POSIX_STDLIB_H_)) \
     41                && (!defined(POSIX_STRING_H_))
     42#error "You can't include bool.h and stdbool.h at the same time."
    4043#endif
     44#endif
     45
    4146#define LIBC_BOOL_H_
    4247
  • uspace/lib/posix/stdio.h

    r0a0e6e7 rf7e69f5  
    3737#define POSIX_STDIO_H_
    3838
     39#include "stddef.h"
     40#include "unistd.h"
    3941#include "libc/stdio.h"
    4042#include "sys/types.h"
  • uspace/lib/posix/time.c

    r0a0e6e7 rf7e69f5  
    4545#include "errno.h"
    4646#include "signal.h"
     47#include "assert.h"
    4748
    4849#include "libc/malloc.h"
  • uspace/lib/posix/unistd.c

    r0a0e6e7 rf7e69f5  
    4949/* Array of environment variable strings (NAME=VALUE). */
    5050char **posix_environ = NULL;
     51char *posix_optarg;
    5152
    5253/**
  • uspace/lib/posix/unistd.h

    r0a0e6e7 rf7e69f5  
    4343#define _exit exit
    4444
    45 /* Option Arguments */
    46 extern char *optarg;
     45extern char *posix_optarg;
    4746extern int optind, opterr, optopt;
    48 extern int getopt(int, char * const [], const char *);
     47extern int posix_getopt(int, char * const [], const char *);
    4948
    5049/* Environment */
     
    144143
    145144#ifndef LIBPOSIX_INTERNAL
     145        #define getopt posix_getopt
     146        #define optarg posix_optarg
     147
    146148        #define environ posix_environ
    147149
Note: See TracChangeset for help on using the changeset viewer.