424 lines
11 KiB
C
Raw Normal View History

1994-05-24 10:09:53 +00:00
/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: head/sys/kern/syscalls.master 181905 2008-08-20 08:31:58Z ed
1994-05-24 10:09:53 +00:00
*/
#define SYS_syscall 0
2000-07-29 10:07:38 +00:00
#define SYS_exit 1
1994-05-24 10:09:53 +00:00
#define SYS_fork 2
#define SYS_read 3
#define SYS_write 4
#define SYS_open 5
#define SYS_close 6
#define SYS_wait4 7
/* 8 is old creat */
#define SYS_link 9
#define SYS_unlink 10
/* 11 is obsolete execv */
#define SYS_chdir 12
#define SYS_fchdir 13
#define SYS_mknod 14
#define SYS_chmod 15
#define SYS_chown 16
#define SYS_break 17
#define SYS_freebsd4_getfsstat 18
1994-05-24 10:09:53 +00:00
/* 19 is old lseek */
#define SYS_getpid 20
#define SYS_mount 21
#define SYS_unmount 22
#define SYS_setuid 23
#define SYS_getuid 24
#define SYS_geteuid 25
#define SYS_ptrace 26
#define SYS_recvmsg 27
#define SYS_sendmsg 28
#define SYS_recvfrom 29
#define SYS_accept 30
#define SYS_getpeername 31
#define SYS_getsockname 32
#define SYS_access 33
#define SYS_chflags 34
#define SYS_fchflags 35
#define SYS_sync 36
#define SYS_kill 37
/* 38 is old stat */
#define SYS_getppid 39
/* 40 is old lstat */
#define SYS_dup 41
#define SYS_pipe 42
#define SYS_getegid 43
#define SYS_profil 44
#define SYS_ktrace 45
/* 46 is old sigaction */
1994-05-24 10:09:53 +00:00
#define SYS_getgid 47
/* 48 is old sigprocmask */
1994-05-24 10:09:53 +00:00
#define SYS_getlogin 49
#define SYS_setlogin 50
#define SYS_acct 51
/* 52 is old sigpending */
1994-05-24 10:09:53 +00:00
#define SYS_sigaltstack 53
#define SYS_ioctl 54
#define SYS_reboot 55
#define SYS_revoke 56
#define SYS_symlink 57
#define SYS_readlink 58
#define SYS_execve 59
#define SYS_umask 60
#define SYS_chroot 61
/* 62 is old fstat */
/* 63 is old getkerninfo */
/* 64 is old getpagesize */
#define SYS_msync 65
#define SYS_vfork 66
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
#define SYS_sbrk 69
#define SYS_sstk 70
/* 71 is old mmap */
#define SYS_vadvise 72
#define SYS_munmap 73
#define SYS_mprotect 74
#define SYS_madvise 75
/* 76 is obsolete vhangup */
/* 77 is obsolete vlimit */
#define SYS_mincore 78
#define SYS_getgroups 79
#define SYS_setgroups 80
#define SYS_getpgrp 81
#define SYS_setpgid 82
#define SYS_setitimer 83
/* 84 is old wait */
#define SYS_swapon 85
#define SYS_getitimer 86
/* 87 is old gethostname */
/* 88 is old sethostname */
#define SYS_getdtablesize 89
#define SYS_dup2 90
#define SYS_fcntl 92
#define SYS_select 93
#define SYS_fsync 95
#define SYS_setpriority 96
#define SYS_socket 97
#define SYS_connect 98
/* 99 is old accept */
#define SYS_getpriority 100
/* 101 is old send */
/* 102 is old recv */
/* 103 is old sigreturn */
1994-05-24 10:09:53 +00:00
#define SYS_bind 104
#define SYS_setsockopt 105
#define SYS_listen 106
/* 107 is obsolete vtimes */
/* 108 is old sigvec */
/* 109 is old sigblock */
/* 110 is old sigsetmask */
/* 111 is old sigsuspend */
1994-05-24 10:09:53 +00:00
/* 112 is old sigstack */
/* 113 is old recvmsg */
/* 114 is old sendmsg */
/* 115 is obsolete vtrace */
#define SYS_gettimeofday 116
#define SYS_getrusage 117
#define SYS_getsockopt 118
#define SYS_readv 120
#define SYS_writev 121
#define SYS_settimeofday 122
#define SYS_fchown 123
#define SYS_fchmod 124
/* 125 is old recvfrom */
1995-04-23 12:22:06 +00:00
#define SYS_setreuid 126
#define SYS_setregid 127
1994-05-24 10:09:53 +00:00
#define SYS_rename 128
/* 129 is old truncate */
/* 130 is old ftruncate */
#define SYS_flock 131
#define SYS_mkfifo 132
#define SYS_sendto 133
#define SYS_shutdown 134
#define SYS_socketpair 135
#define SYS_mkdir 136
#define SYS_rmdir 137
#define SYS_utimes 138
/* 139 is obsolete 4.2 sigreturn */
#define SYS_adjtime 140
/* 141 is old getpeername */
/* 142 is old gethostid */
/* 143 is old sethostid */
/* 144 is old getrlimit */
/* 145 is old setrlimit */
/* 146 is old killpg */
#define SYS_setsid 147
#define SYS_quotactl 148
/* 149 is old quota */
/* 150 is old getsockname */
2008-03-26 15:24:02 +00:00
#define SYS_nlm_syscall 154
1994-05-24 10:09:53 +00:00
#define SYS_nfssvc 155
/* 156 is old getdirentries */
#define SYS_freebsd4_statfs 157
#define SYS_freebsd4_fstatfs 158
2004-04-05 10:17:23 +00:00
#define SYS_lgetfh 160
1994-05-24 10:09:53 +00:00
#define SYS_getfh 161
#define SYS_getdomainname 162
#define SYS_setdomainname 163
#define SYS_uname 164
#define SYS_sysarch 165
#define SYS_rtprio 166
#define SYS_semsys 169
#define SYS_msgsys 170
1994-05-24 10:09:53 +00:00
#define SYS_shmsys 171
#define SYS_freebsd6_pread 173
#define SYS_freebsd6_pwrite 174
Add code to allow the system to handle multiple routing tables. This particular implementation is designed to be fully backwards compatible and to be MFC-able to 7.x (and 6.x) Currently the only protocol that can make use of the multiple tables is IPv4 Similar functionality exists in OpenBSD and Linux. From my notes: ----- One thing where FreeBSD has been falling behind, and which by chance I have some time to work on is "policy based routing", which allows different packet streams to be routed by more than just the destination address. Constraints: ------------ I want to make some form of this available in the 6.x tree (and by extension 7.x) , but FreeBSD in general needs it so I might as well do it in -current and back port the portions I need. One of the ways that this can be done is to have the ability to instantiate multiple kernel routing tables (which I will now refer to as "Forwarding Information Bases" or "FIBs" for political correctness reasons). Which FIB a particular packet uses to make the next hop decision can be decided by a number of mechanisms. The policies these mechanisms implement are the "Policies" referred to in "Policy based routing". One of the constraints I have if I try to back port this work to 6.x is that it must be implemented as a EXTENSION to the existing ABIs in 6.x so that third party applications do not need to be recompiled in timespan of the branch. This first version will not have some of the bells and whistles that will come with later versions. It will, for example, be limited to 16 tables in the first commit. Implementation method, Compatible version. (part 1) ------------------------------- For this reason I have implemented a "sufficient subset" of a multiple routing table solution in Perforce, and back-ported it to 6.x. (also in Perforce though not always caught up with what I have done in -current/P4). The subset allows a number of FIBs to be defined at compile time (8 is sufficient for my purposes in 6.x) and implements the changes needed to allow IPV4 to use them. I have not done the changes for ipv6 simply because I do not need it, and I do not have enough knowledge of ipv6 (e.g. neighbor discovery) needed to do it. Other protocol families are left untouched and should there be users with proprietary protocol families, they should continue to work and be oblivious to the existence of the extra FIBs. To understand how this is done, one must know that the current FIB code starts everything off with a single dimensional array of pointers to FIB head structures (One per protocol family), each of which in turn points to the trie of routes available to that family. The basic change in the ABI compatible version of the change is to extent that array to be a 2 dimensional array, so that instead of protocol family X looking at rt_tables[X] for the table it needs, it looks at rt_tables[Y][X] when for all protocol families except ipv4 Y is always 0. Code that is unaware of the change always just sees the first row of the table, which of course looks just like the one dimensional array that existed before. The entry points rtrequest(), rtalloc(), rtalloc1(), rtalloc_ign() are all maintained, but refer only to the first row of the array, so that existing callers in proprietary protocols can continue to do the "right thing". Some new entry points are added, for the exclusive use of ipv4 code called in_rtrequest(), in_rtalloc(), in_rtalloc1() and in_rtalloc_ign(), which have an extra argument which refers the code to the correct row. In addition, there are some new entry points (currently called rtalloc_fib() and friends) that check the Address family being looked up and call either rtalloc() (and friends) if the protocol is not IPv4 forcing the action to row 0 or to the appropriate row if it IS IPv4 (and that info is available). These are for calling from code that is not specific to any particular protocol. The way these are implemented would change in the non ABI preserving code to be added later. One feature of the first version of the code is that for ipv4, the interface routes show up automatically on all the FIBs, so that no matter what FIB you select you always have the basic direct attached hosts available to you. (rtinit() does this automatically). You CAN delete an interface route from one FIB should you want to but by default it's there. ARP information is also available in each FIB. It's assumed that the same machine would have the same MAC address, regardless of which FIB you are using to get to it. This brings us as to how the correct FIB is selected for an outgoing IPV4 packet. Firstly, all packets have a FIB associated with them. if nothing has been done to change it, it will be FIB 0. The FIB is changed in the following ways. Packets fall into one of a number of classes. 1/ locally generated packets, coming from a socket/PCB. Such packets select a FIB from a number associated with the socket/PCB. This in turn is inherited from the process, but can be changed by a socket option. The process in turn inherits it on fork. I have written a utility call setfib that acts a bit like nice.. setfib -3 ping target.example.com # will use fib 3 for ping. It is an obvious extension to make it a property of a jail but I have not done so. It can be achieved by combining the setfib and jail commands. 2/ packets received on an interface for forwarding. By default these packets would use table 0, (or possibly a number settable in a sysctl(not yet)). but prior to routing the firewall can inspect them (see below). (possibly in the future you may be able to associate a FIB with packets received on an interface.. An ifconfig arg, but not yet.) 3/ packets inspected by a packet classifier, which can arbitrarily associate a fib with it on a packet by packet basis. A fib assigned to a packet by a packet classifier (such as ipfw) would over-ride a fib associated by a more default source. (such as cases 1 or 2). 4/ a tcp listen socket associated with a fib will generate accept sockets that are associated with that same fib. 5/ Packets generated in response to some other packet (e.g. reset or icmp packets). These should use the FIB associated with the packet being reponded to. 6/ Packets generated during encapsulation. gif, tun and other tunnel interfaces will encapsulate using the FIB that was in effect withthe proces that set up the tunnel. thus setfib 1 ifconfig gif0 [tunnel instructions] will set the fib for the tunnel to use to be fib 1. Routing messages would be associated with their process, and thus select one FIB or another. messages from the kernel would be associated with the fib they refer to and would only be received by a routing socket associated with that fib. (not yet implemented) In addition Netstat has been edited to be able to cope with the fact that the array is now 2 dimensional. (It looks in system memory using libkvm (!)). Old versions of netstat see only the first FIB. In addition two sysctls are added to give: a) the number of FIBs compiled in (active) b) the default FIB of the calling process. Early testing experience: ------------------------- Basically our (IronPort's) appliance does this functionality already using ipfw fwd but that method has some drawbacks. For example, It can't fully simulate a routing table because it can't influence the socket's choice of local address when a connect() is done. Testing during the generating of these changes has been remarkably smooth so far. Multiple tables have co-existed with no notable side effects, and packets have been routes accordingly. ipfw has grown 2 new keywords: setfib N ip from anay to any count ip from any to any fib N In pf there seems to be a requirement to be able to give symbolic names to the fibs but I do not have that capacity. I am not sure if it is required. SCTP has interestingly enough built in support for this, called VRFs in Cisco parlance. it will be interesting to see how that handles it when it suddenly actually does something. Where to next: -------------------- After committing the ABI compatible version and MFCing it, I'd like to proceed in a forward direction in -current. this will result in some roto-tilling in the routing code. Firstly: the current code's idea of having a separate tree per protocol family, all of the same format, and pointed to by the 1 dimensional array is a bit silly. Especially when one considers that there is code that makes assumptions about every protocol having the same internal structures there. Some protocols don't WANT that sort of structure. (for example the whole idea of a netmask is foreign to appletalk). This needs to be made opaque to the external code. My suggested first change is to add routing method pointers to the 'domain' structure, along with information pointing the data. instead of having an array of pointers to uniform structures, there would be an array pointing to the 'domain' structures for each protocol address domain (protocol family), and the methods this reached would be called. The methods would have an argument that gives FIB number, but the protocol would be free to ignore it. When the ABI can be changed it raises the possibilty of the addition of a fib entry into the "struct route". Currently, the structure contains the sockaddr of the desination, and the resulting fib entry. To make this work fully, one could add a fib number so that given an address and a fib, one can find the third element, the fib entry. Interaction with the ARP layer/ LL layer would need to be revisited as well. Qing Li has been working on this already. This work was sponsored by Ironport Systems/Cisco Reviewed by: several including rwatson, bz and mlair (parts each) Obtained from: Ironport systems/Cisco
2008-05-09 23:03:00 +00:00
#define SYS_setfib 175
#define SYS_ntp_adjtime 176
1994-05-24 10:09:53 +00:00
#define SYS_setgid 181
#define SYS_setegid 182
#define SYS_seteuid 183
#define SYS_stat 188
#define SYS_fstat 189
#define SYS_lstat 190
#define SYS_pathconf 191
#define SYS_fpathconf 192
#define SYS_getrlimit 194
#define SYS_setrlimit 195
#define SYS_getdirentries 196
#define SYS_freebsd6_mmap 197
1994-05-24 10:09:53 +00:00
#define SYS___syscall 198
#define SYS_freebsd6_lseek 199
#define SYS_freebsd6_truncate 200
#define SYS_freebsd6_ftruncate 201
1994-05-24 10:09:53 +00:00
#define SYS___sysctl 202
#define SYS_mlock 203
#define SYS_munlock 204
#define SYS_undelete 205
#define SYS_futimes 206
1997-08-19 05:57:04 +00:00
#define SYS_getpgid 207
1997-09-14 02:23:46 +00:00
#define SYS_poll 209
1995-12-15 04:46:32 +00:00
#define SYS___semctl 220
#define SYS_semget 221
#define SYS_semop 222
#define SYS_msgctl 224
#define SYS_msgget 225
#define SYS_msgsnd 226
#define SYS_msgrcv 227
#define SYS_shmat 228
#define SYS_shmctl 229
#define SYS_shmdt 230
#define SYS_shmget 231
1997-05-08 14:08:49 +00:00
#define SYS_clock_gettime 232
#define SYS_clock_settime 233
#define SYS_clock_getres 234
2006-03-01 06:49:38 +00:00
#define SYS_ktimer_create 235
#define SYS_ktimer_delete 236
#define SYS_ktimer_settime 237
#define SYS_ktimer_gettime 238
#define SYS_ktimer_getoverrun 239
1997-05-08 14:08:49 +00:00
#define SYS_nanosleep 240
#define SYS_ntp_gettime 248
1996-02-23 18:31:34 +00:00
#define SYS_minherit 250
#define SYS_rfork 251
1997-09-14 02:23:46 +00:00
#define SYS_openbsd_poll 252
1997-03-31 14:55:05 +00:00
#define SYS_issetugid 253
1997-03-31 12:17:45 +00:00
#define SYS_lchown 254
2005-10-30 02:14:37 +00:00
#define SYS_aio_read 255
#define SYS_aio_write 256
#define SYS_lio_listio 257
#define SYS_getdents 272
#define SYS_lchmod 274
#define SYS_netbsd_lchown 275
#define SYS_lutimes 276
#define SYS_netbsd_msync 277
#define SYS_nstat 278
#define SYS_nfstat 279
#define SYS_nlstat 280
2005-07-07 18:20:38 +00:00
#define SYS_preadv 289
#define SYS_pwritev 290
#define SYS_freebsd4_fhstatfs 297
#define SYS_fhopen 298
#define SYS_fhstat 299
#define SYS_modnext 300
#define SYS_modstat 301
#define SYS_modfnext 302
#define SYS_modfind 303
#define SYS_kldload 304
#define SYS_kldunload 305
#define SYS_kldfind 306
#define SYS_kldnext 307
#define SYS_kldstat 308
#define SYS_kldfirstmod 309
1997-08-19 05:57:04 +00:00
#define SYS_getsid 310
#define SYS_setresuid 311
#define SYS_setresgid 312
1998-05-14 11:29:06 +00:00
/* 313 is obsolete signanosleep */
#define SYS_aio_return 314
#define SYS_aio_suspend 315
#define SYS_aio_cancel 316
#define SYS_aio_error 317
2005-10-30 02:14:37 +00:00
#define SYS_oaio_read 318
#define SYS_oaio_write 319
#define SYS_olio_listio 320
#define SYS_yield 321
2000-12-02 05:45:32 +00:00
/* 322 is obsolete thr_sleep */
/* 323 is obsolete thr_wakeup */
#define SYS_mlockall 324
#define SYS_munlockall 325
#define SYS___getcwd 326
#define SYS_sched_setparam 327
#define SYS_sched_getparam 328
#define SYS_sched_setscheduler 329
#define SYS_sched_getscheduler 330
#define SYS_sched_yield 331
#define SYS_sched_get_priority_max 332
#define SYS_sched_get_priority_min 333
#define SYS_sched_rr_get_interval 334
#define SYS_utrace 335
#define SYS_freebsd4_sendfile 336
1998-11-11 12:57:05 +00:00
#define SYS_kldsym 337
This Implements the mumbled about "Jail" feature. This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restrictions imposed on what the superuser can do. For all I know, it is safe to hand over the root bit inside a prison to the customer living in that prison, this is what it was developed for in fact: "real virtual servers". Each prison has an ip number associated with it, which all IP communications will be coerced to use and each prison has its own hostname. Needless to say, you need more RAM this way, but the advantage is that each customer can run their own particular version of apache and not stomp on the toes of their neighbors. It generally does what one would expect, but setting up a jail still takes a little knowledge. A few notes: I have no scripts for setting up a jail, don't ask me for them. The IP number should be an alias on one of the interfaces. mount a /proc in each jail, it will make ps more useable. /proc/<pid>/status tells the hostname of the prison for jailed processes. Quotas are only sensible if you have a mountpoint per prison. There are no privisions for stopping resource-hogging. Some "#ifdef INET" and similar may be missing (send patches!) If somebody wants to take it from here and develop it into more of a "virtual machine" they should be most welcome! Tools, comments, patches & documentation most welcome. Have fun... Sponsored by: http://www.rndassociates.com/ Run for almost a year by: http://www.servetheweb.com/
1999-04-28 11:38:52 +00:00
#define SYS_jail 338
#define SYS_sigprocmask 340
#define SYS_sigsuspend 341
#define SYS_freebsd4_sigaction 342
#define SYS_sigpending 343
#define SYS_freebsd4_sigreturn 344
#define SYS_sigtimedwait 345
#define SYS_sigwaitinfo 346
#define SYS___acl_get_file 347
#define SYS___acl_set_file 348
#define SYS___acl_get_fd 349
#define SYS___acl_set_fd 350
#define SYS___acl_delete_file 351
#define SYS___acl_delete_fd 352
#define SYS___acl_aclcheck_file 353
#define SYS___acl_aclcheck_fd 354
#define SYS_extattrctl 355
#define SYS_extattr_set_file 356
#define SYS_extattr_get_file 357
#define SYS_extattr_delete_file 358
#define SYS_aio_waitcomplete 359
#define SYS_getresuid 360
#define SYS_getresgid 361
#define SYS_kqueue 362
#define SYS_kevent 363
#define SYS_extattr_set_fd 371
#define SYS_extattr_get_fd 372
#define SYS_extattr_delete_fd 373
#define SYS___setugid 374
2001-09-18 23:33:33 +00:00
#define SYS_nfsclnt 375
#define SYS_eaccess 376
#define SYS_nmount 378
#define SYS___mac_get_proc 384
#define SYS___mac_set_proc 385
#define SYS___mac_get_fd 386
#define SYS___mac_get_file 387
#define SYS___mac_set_fd 388
#define SYS___mac_set_file 389
#define SYS_kenv 390
#define SYS_lchflags 391
Add uuidgen(2) and uuidgen(1). The uuidgen command, by means of the uuidgen syscall, generates one or more Universally Unique Identifiers compatible with OSF/DCE 1.1 version 1 UUIDs. From the Perforce logs (change 11995): Round of cleanups: o Give uuidgen() the correct prototype in syscalls.master o Define struct uuid according to DCE 1.1 in sys/uuid.h o Use struct uuid instead of uuid_t. The latter is defined in sys/uuid.h but should not be used in kernel land. o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid() to kern_uuid.c for use in the kernel (currently geom_gpt.c). o Rename the non-standard struct uuid in kern/kern_uuid.c to struct uuid_private and give it a slightly better definition for better byte-order handling. See below. o In sys/gpt.h, fix the broken uuid definitions to match the now compliant struct uuid definition. See below. o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change. A note about byte-order: The standard failed to provide a non-conflicting and unambiguous definition for the binary representation. My initial implementation always wrote the timestamp as a 64-bit little-endian (2s-complement) integral. The clock sequence was always written as a 16-bit big-endian (2s-complement) integral. After a good nights sleep and couple of Pan Galactic Gargle Blasters (not necessarily in that order :-) I reread the spec and came to the conclusion that the time fields are always written in the native by order, provided the the low, mid and hi chopping still occurs. The spec mentions that you "might need to swap bytes if you talk to a machine that has a different byte-order". The clock sequence is always written in big-endian order (as is the IEEE 802 address) because its division is resulting in bytes, making the ordering unambiguous.
2002-05-28 06:16:08 +00:00
#define SYS_uuidgen 392
2002-07-12 06:52:44 +00:00
#define SYS_sendfile 393
2002-08-06 15:16:55 +00:00
#define SYS_mac_syscall 394
#define SYS_getfsstat 395
#define SYS_statfs 396
#define SYS_fstatfs 397
#define SYS_fhstatfs 398
2002-09-19 00:48:57 +00:00
#define SYS_ksem_close 400
#define SYS_ksem_post 401
#define SYS_ksem_wait 402
#define SYS_ksem_trywait 403
#define SYS_ksem_init 404
#define SYS_ksem_open 405
#define SYS_ksem_unlink 406
#define SYS_ksem_getvalue 407
#define SYS_ksem_destroy 408
2002-10-22 14:23:52 +00:00
#define SYS___mac_get_pid 409
#define SYS___mac_get_link 410
#define SYS___mac_set_link 411
2002-10-09 21:47:29 +00:00
#define SYS_extattr_set_link 412
#define SYS_extattr_get_link 413
#define SYS_extattr_delete_link 414
2002-11-05 17:48:04 +00:00
#define SYS___mac_execve 415
#define SYS_sigaction 416
#define SYS_sigreturn 417
2002-11-16 06:36:56 +00:00
#define SYS_getcontext 421
#define SYS_setcontext 422
#define SYS_swapcontext 423
#define SYS_swapoff 424
2002-12-29 20:26:41 +00:00
#define SYS___acl_get_link 425
#define SYS___acl_set_link 426
#define SYS___acl_delete_link 427
#define SYS___acl_aclcheck_link 428
#define SYS_sigwait 429
2003-04-01 00:34:29 +00:00
#define SYS_thr_create 430
#define SYS_thr_exit 431
#define SYS_thr_self 432
#define SYS_thr_kill 433
2003-04-01 01:22:18 +00:00
#define SYS__umtx_lock 434
#define SYS__umtx_unlock 435
2003-04-09 02:57:29 +00:00
#define SYS_jail_attach 436
#define SYS_extattr_list_fd 437
#define SYS_extattr_list_file 438
#define SYS_extattr_list_link 439
2004-02-03 05:11:31 +00:00
#define SYS_ksem_timedwait 441
#define SYS_thr_suspend 442
#define SYS_thr_wake 443
#define SYS_kldunloadf 444
2004-10-23 20:01:32 +00:00
#define SYS_audit 445
#define SYS_auditon 446
#define SYS_getauid 447
#define SYS_setauid 448
#define SYS_getaudit 449
#define SYS_setaudit 450
#define SYS_getaudit_addr 451
#define SYS_setaudit_addr 452
#define SYS_auditctl 453
#define SYS__umtx_op 454
2005-04-23 02:38:17 +00:00
#define SYS_thr_new 455
2005-10-14 12:56:28 +00:00
#define SYS_sigqueue 456
2006-03-01 06:49:38 +00:00
#define SYS_kmq_open 457
#define SYS_kmq_setattr 458
#define SYS_kmq_timedreceive 459
#define SYS_kmq_timedsend 460
#define SYS_kmq_notify 461
#define SYS_kmq_unlink 462
#define SYS_abort2 463
2006-02-05 02:23:41 +00:00
#define SYS_thr_set_name 464
2006-03-23 08:48:37 +00:00
#define SYS_aio_fsync 465
2006-09-21 04:19:48 +00:00
#define SYS_rtprio_thread 466
#define SYS_sctp_peeloff 471
#define SYS_sctp_generic_sendmsg 472
#define SYS_sctp_generic_sendmsg_iov 473
#define SYS_sctp_generic_recvmsg 474
#define SYS_pread 475
#define SYS_pwrite 476
#define SYS_mmap 477
#define SYS_lseek 478
#define SYS_truncate 479
#define SYS_ftruncate 480
2007-08-16 05:32:26 +00:00
#define SYS_thr_kill2 481
#define SYS_shm_open 482
#define SYS_shm_unlink 483
2008-03-02 07:41:10 +00:00
#define SYS_cpuset 484
#define SYS_cpuset_setid 485
#define SYS_cpuset_getid 486
#define SYS_cpuset_getaffinity 487
#define SYS_cpuset_setaffinity 488
2008-03-31 12:12:27 +00:00
#define SYS_faccessat 489
#define SYS_fchmodat 490
#define SYS_fchownat 491
#define SYS_fexecve 492
#define SYS_fstatat 493
#define SYS_futimesat 494
#define SYS_linkat 495
#define SYS_mkdirat 496
#define SYS_mkfifoat 497
#define SYS_mknodat 498
#define SYS_openat 499
#define SYS_readlinkat 500
#define SYS_renameat 501
#define SYS_symlinkat 502
#define SYS_unlinkat 503
Integrate the new MPSAFE TTY layer to the FreeBSD operating system. The last half year I've been working on a replacement TTY layer for the FreeBSD kernel. The new TTY layer was designed to improve the following: - Improved driver model: The old TTY layer has a driver model that is not abstract enough to make it friendly to use. A good example is the output path, where the device drivers directly access the output buffers. This means that an in-kernel PPP implementation must always convert network buffers into TTY buffers. If a PPP implementation would be built on top of the new TTY layer (still needs a hooks layer, though), it would allow the PPP implementation to directly hand the data to the TTY driver. - Improved hotplugging: With the old TTY layer, it isn't entirely safe to destroy TTY's from the system. This implementation has a two-step destructing design, where the driver first abandons the TTY. After all threads have left the TTY, the TTY layer calls a routine in the driver, which can be used to free resources (unit numbers, etc). The pts(4) driver also implements this feature, which means posix_openpt() will now return PTY's that are created on the fly. - Improved performance: One of the major improvements is the per-TTY mutex, which is expected to improve scalability when compared to the old Giant locking. Another change is the unbuffered copying to userspace, which is both used on TTY device nodes and PTY masters. Upgrading should be quite straightforward. Unlike previous versions, existing kernel configuration files do not need to be changed, except when they reference device drivers that are listed in UPDATING. Obtained from: //depot/projects/mpsafetty/... Approved by: philip (ex-mentor) Discussed: on the lists, at BSDCan, at the DevSummit Sponsored by: Snow B.V., the Netherlands dcons(4) fixed by: kan
2008-08-20 08:31:58 +00:00
#define SYS_posix_openpt 504
#define SYS_MAXSYSCALL 505