Changeset c23275a in mainline


Ignore:
Timestamp:
2017-04-02T21:08:10Z (8 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
438f355
Parents:
d96d9bc
Message:

Move stuff away from unistd.h

Location:
uspace
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/fontviewer/fontviewer.c

    rd96d9bc rc23275a  
    3434
    3535#include <stdio.h>
    36 #include <unistd.h>
     36#include <stdlib.h>
    3737#include <errno.h>
    3838#include <malloc.h>
  • uspace/app/viewer/viewer.c

    rd96d9bc rc23275a  
    3434
    3535#include <stdio.h>
    36 #include <unistd.h>
     36#include <stdlib.h>
    3737#include <vfs/vfs.h>
    3838#include <errno.h>
  • uspace/lib/c/include/stdio.h

    rd96d9bc rc23275a  
    4343
    4444#define EOF  (-1)
     45
     46#ifndef SEEK_SET
     47        #define SEEK_SET  0
     48#endif
     49
     50#ifndef SEEK_CUR
     51        #define SEEK_CUR  1
     52#endif
     53
     54#ifndef SEEK_END
     55        #define SEEK_END  2
     56#endif
    4557
    4658/** Default size for stream I/O buffers */
  • uspace/lib/c/include/stdlib.h

    rd96d9bc rc23275a  
    4949
    5050extern void abort(void) __attribute__((noreturn));
     51extern void exit(int) __attribute__((noreturn));
    5152
    5253#endif
  • uspace/lib/c/include/unistd.h

    rd96d9bc rc23275a  
    4444#endif
    4545
    46 #ifndef SEEK_SET
    47         #define SEEK_SET  0
    48 #endif
    49 
    50 #ifndef SEEK_CUR
    51         #define SEEK_CUR  1
    52 #endif
    53 
    54 #ifndef SEEK_END
    55         #define SEEK_END  2
    56 #endif
    57 
    5846#define getpagesize()  (PAGE_SIZE)
    5947
    60 extern void exit(int) __attribute__((noreturn));
    6148extern int usleep(useconds_t);
    6249extern unsigned int sleep(unsigned int);
  • uspace/lib/gui/window.c

    rd96d9bc rc23275a  
    3737#include <errno.h>
    3838#include <stdio.h>
     39#include <stdlib.h>
    3940
    4041#include <as.h>
Note: See TracChangeset for help on using the changeset viewer.