/[osn-commons]/trunk/plibc/lib/syscalls.h
ViewVC logotype

Diff of /trunk/plibc/lib/syscalls.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by rakinar2, Thu Aug 15 18:10:51 2024 UTC revision 51 by rakinar2, Fri Aug 16 18:34:43 2024 UTC
# Line 1  Line 1 
1  #ifndef PLIBC_SYSCALLS_H  #ifndef PLIBC_SYSCALLS_H
2  #define PLIBC_SYSCALLS_H  #define PLIBC_SYSCALLS_H
3    
4  #include <stddef.h>  #include "stddef.h"
5  #include <stdint.h>  #include <stdint.h>
 #include <sys/mman.h>  
6  #include <sys/types.h>  #include <sys/types.h>
7    
8  extern int write (int fd, const void *buf, size_t count);  extern int sys_write (int fd, const void *buf, size_t count);
9  extern void *sbrk (intptr_t increment);  extern void *sys_sbrk (intptr_t increment);
10  extern void *brk (void);  extern void *sys_brk (void);
11  extern void __attribute__ ((noreturn)) exit (int status);  extern void __attribute__ ((noreturn)) sys_exit (int status);
12  extern void *mmap (void *addr, size_t len, int prot, int flags, int fd,  extern void *sys_mmap (void *addr, size_t len, int prot, int flags, int fd,
13                     off_t offset);                         off_t offset);
14  extern void *sysinfo (void *buffer);  extern void *sys_sysinfo (void *buffer);
15  extern void kill (int pid, int sig);  extern int sys_kill (int pid, int sig);
16    extern int sys_open (const char *pathname, int flags, mode_t mode);
17    extern int sys_close (int fd);
18    
19  #endif /* PLIBC_SYSCALLS_H */  #endif /* PLIBC_SYSCALLS_H */

Legend:
Removed from v.50  
changed lines
  Added in v.51

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26