Subversion Repositories HelenOS

Rev

Rev 4377 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4377 Rev 4692
Line 37... Line 37...
37
 
37
 
38
#include <sys/types.h>
38
#include <sys/types.h>
39
#include <libarch/config.h>
39
#include <libarch/config.h>
40
 
40
 
41
#ifndef NULL
41
#ifndef NULL
42
#define NULL 0
42
    #define NULL  0
43
#endif
43
#endif
44
 
44
 
45
#define getpagesize()     (PAGE_SIZE)
45
#define getpagesize()  (PAGE_SIZE)
46
 
46
 
47
#ifndef SEEK_SET
47
#ifndef SEEK_SET
48
    #define SEEK_SET    0
48
    #define SEEK_SET  0
49
    #define SEEK_CUR    1
49
    #define SEEK_CUR  1
50
    #define SEEK_END    2
50
    #define SEEK_END  2
51
#endif
51
#endif
52
 
52
 
53
extern ssize_t write(int, const void *, size_t);
53
extern ssize_t write(int, const void *, size_t);
54
extern ssize_t read(int, void *, size_t);
54
extern ssize_t read(int, void *, size_t);
-
 
55
 
55
extern off_t lseek(int, off_t, int);
56
extern off_t lseek(int, off_t, int);
56
extern int ftruncate(int, off_t);
57
extern int ftruncate(int, off_t);
-
 
58
 
57
extern int close(int);
59
extern int close(int);
-
 
60
extern int fsync(int);
58
extern int unlink(const char *);
61
extern int unlink(const char *);
-
 
62
 
-
 
63
extern char *getcwd(char *buf, size_t);
59
extern int rmdir(const char *);
64
extern int rmdir(const char *);
60
extern int chdir(const char *);
65
extern int chdir(const char *);
61
extern char *getcwd(char *buf, size_t);
-
 
62
 
66
 
63
extern void _exit(int status) __attribute__ ((noreturn));
67
extern void _exit(int status) __attribute__ ((noreturn));
64
extern void *sbrk(ssize_t incr);
-
 
65
extern int usleep(unsigned long usec);
68
extern int usleep(unsigned long usec);
66
extern unsigned int sleep(unsigned int seconds);
69
extern unsigned int sleep(unsigned int seconds);
67
 
70
 
68
#endif
71
#endif
69
 
72