source: trunk/sys/dietlibc/include/sys/syscall.h @ 1

Last change on this file since 1 was 1, checked in by alain, 7 years ago

First import

File size: 1.9 KB
Line 
1/*
2   This file is part of AlmOS.
3 
4   AlmOS is free software; you can redistribute it and/or modify it
5   under the terms of the GNU General Public License as published by
6   the Free Software Foundation; either version 2 of the License, or
7   (at your option) any later version.
8 
9   AlmOS is distributed in the hope that it will be useful, but
10   WITHOUT ANY WARRANTY; without even the implied warranty of
11   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12   General Public License for more details.
13 
14   You should have received a copy of the GNU General Public License
15   along with AlmOS; if not, write to the Free Software Foundation,
16   Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 
18   UPMC / LIP6 / SOC (c) 2007
19   Copyright Ghassan Almaless <ghassan.almaless@gmail.com>
20*/
21
22#ifndef _SYSCALL_H_
23#define _SYSCALL_H_
24
25enum
26{
27   SYS_EXIT,                      /* SYS_EXIT SERIVCE NUMBER IS FROZEN */
28   SYS_MMAP,
29   SYS_CREATE,
30   SYS_JOIN,
31   SYS_DETACH,
32   SYS_YIELD,
33   SYS_SEMAPHORE,
34   SYS_COND_VAR,
35   SYS_BARRIER,
36   SYS_RWLOCK,
37   SYS_SLEEP,                     /* Service NR 10 */
38   SYS_WAKEUP,
39   SYS_OPEN,                   
40   SYS_CREAT,
41   SYS_READ,
42   SYS_WRITE,
43   SYS_LSEEK,
44   SYS_CLOSE,
45   SYS_UNLINK,
46   SYS_PIPE,
47   SYS_CHDIR,                      /* Service NR 20 */
48   SYS_MKDIR,
49   SYS_MKFIFO,                   
50   SYS_OPENDIR,
51   SYS_READDIR,
52   SYS_CLOSEDIR,
53   SYS_GETCWD,
54   SYS_CLOCK,
55   SYS_ALARM,
56   SYS_DMA_MEMCPY,
57   SYS_UTLS,                       /* Service NR 30 */
58   SYS_SIGRETURN,
59   SYS_SIGNAL,               
60   SYS_SET_SIGRETURN,
61   SYS_KILL,
62   SYS_GETPID,
63   SYS_FORK,
64   SYS_EXEC,
65   SYS_GETATTR,
66   SYS_PS,
67   SYS_MADVISE,                    /* Service NR 40 */
68   SYS_MCNTL,
69   SYS_STAT,
70   SYS_MIGRATE,
71   SYS_SBRK,
72   SYS_RMDIR,
73   SYS_FTIME,
74   SYS_CHMOD,
75   SYS_FSYNC,
76   SYS_GET_TOD,
77   SYS_TIMES,
78   __SYS_CALL_SERVICES_NUM,
79};
80
81#endif
Note: See TracBrowser for help on using the repository browser.