Changeset a92f13d in mainline


Ignore:
Timestamp:
2012-04-03T12:36:57Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3f0ea0e2
Parents:
d4d74dc
Message:

Add long options to libposix

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

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    rd4d74dc ra92f13d  
    4343        fcntl.c \
    4444        fnmatch.c \
     45        getopt.c \
    4546        locale.c \
    4647        math.c \
  • uspace/lib/posix/stdbool.h

    rd4d74dc ra92f13d  
    3737
    3838#ifdef LIBC_BOOL_H_
    39         #error "You can't include bool.h and stdbool.h at the same time."
     39#       ifndef POSIX_STDIO_H_
     40#               ifndef POSIX_STDLIB_H_
     41#                       error "You can't include bool.h and stdbool.h at the same time."
     42#               endif
     43#       endif
    4044#endif
    4145#define LIBC_BOOL_H_
  • uspace/lib/posix/unistd.c

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

    rd4d74dc ra92f13d  
    4343#define _exit exit
    4444
    45 /* Option Arguments */
    46 extern char *optarg;
     45extern char *posix_optarg;
    4746extern int optind, opterr, optopt;
    4847extern int getopt(int, char * const [], const char *);
     
    144143
    145144#ifndef LIBPOSIX_INTERNAL
     145        #define optarg posix_optarg
     146
    146147        #define environ posix_environ
    147148
Note: See TracChangeset for help on using the changeset viewer.