Changes in / [f2a45d9:4ac901c] in mainline


Ignore:
Location:
uspace/lib/posix
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/Makefile

    rf2a45d9 r4ac901c  
    4040SOURCES = \
    4141        ctype.c \
    42         stdio.c \
    4342        stdlib.c \
    4443        string.c \
  • uspace/lib/posix/stdio.h

    rf2a45d9 r4ac901c  
    3333
    3434#define putc fputc
    35 #define getc fgetc
    36 
    37 
    38 extern FILE *posix_freopen(const char *restrict filename,
    39                            const char *restrict mode,
    40                            FILE *restrict stream);
    41 
    42 extern void posix_perror(const char *s);
    43 
    44 #ifndef POSIX_INTERNAL
    45         #define freopen posix_freopen
    46         #define perror posix_perror
    47 #endif
    4835
    4936#endif /* POSIX_STDIO_H_ */
  • uspace/lib/posix/stdlib.c

    rf2a45d9 r4ac901c  
    11/*
    22 * Copyright (c) 2011 Petr Koupy
    3  * Copyright (c) 2011 Jiri Zarevucky
    43 * All rights reserved.
    54 *
     
    3736
    3837#include "stdlib.h"
    39 #include "common.h"
    4038
    4139/**
     
    4947{
    5048        // TODO
    51         not_implemented();
    5249}
    5350
     
    6057{
    6158        // TODO
    62         not_implemented();
     59        return 0;
    6360}
    6461
     
    7269{
    7370        // TODO
    74         not_implemented();
    75 }
    76 
    77 /**
    78  *
    79  * @param nptr
    80  * @param endptr
    81  * @return
    82  */
    83 float posix_strtof(const char *restrict nptr, char **restrict endptr)
    84 {
    85         // TODO
    86         not_implemented();
    87 }
    88 
    89 /**
    90  *
    91  * @param nptr
    92  * @param endptr
    93  * @return
    94  */
    95 double posix_strtod(const char *restrict nptr, char **restrict endptr)
    96 {
    97         // TODO
    98         not_implemented();
    99 }
    100 
    101 /**
    102  *
    103  * @param nptr
    104  * @param endptr
    105  * @return
    106  */
    107 long double posix_strtold(const char *restrict nptr, char **restrict endptr)
    108 {
    109         // TODO
    110         not_implemented();
    111 }
    112 
    113 /**
    114  *
    115  * @param str
    116  * @return
    117  */
    118 int posix_atoi(const char *str)
    119 {
    120         // TODO
    121         not_implemented();
     71        return 0;
    12272}
    12373
  • uspace/lib/posix/stdlib.h

    rf2a45d9 r4ac901c  
    11/*
    22 * Copyright (c) 2011 Petr Koupy
    3  * Copyright (c) 2011 Jiri Zarevucky
    43 * All rights reserved.
    54 *
     
    6059extern char *posix_realpath(const char *restrict name, char *restrict resolved);
    6160
    62 /* decimal to native floating point conversion */
    63 extern float posix_strtof(const char *restrict nptr, char **restrict endptr);
    64 extern double posix_strtod(const char *restrict nptr, char **restrict endptr);
    65 extern long double posix_strtold(const char *restrict nptr, char **restrict endptr);
    66 
    67 /* decimal to native integer conversion */
    68 extern int posix_atoi(const char *str);
    69 
    7061#ifndef LIBPOSIX_INTERNAL
    7162        #define qsort posix_qsort
    7263        #define getenv posix_getenv
    7364        #define realpath posix_realpath
    74        
    75         #define strtof posix_strtof
    76         #define strtod posix_strtod
    77         #define strtold posix_strtold
    78        
    79         #define atoi posix_atoi
    8065#endif
    8166
Note: See TracChangeset for help on using the changeset viewer.