freebsd-nq/sys/compat/freebsd32/freebsd32_syscall.h

387 lines
14 KiB
C
Raw Normal View History

/*
* System call numbers.
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
2009-10-27 11:02:04 +00:00
* created from FreeBSD: head/sys/compat/freebsd32/syscalls.master 198508 2009-10-27 10:55:34Z kib
*/
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_syscall 0
#define FREEBSD32_SYS_exit 1
#define FREEBSD32_SYS_fork 2
#define FREEBSD32_SYS_read 3
#define FREEBSD32_SYS_write 4
2003-12-23 02:48:58 +00:00
#define FREEBSD32_SYS_open 5
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_close 6
#define FREEBSD32_SYS_freebsd32_wait4 7
2002-07-20 02:56:34 +00:00
/* 8 is obsolete old creat */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_link 9
#define FREEBSD32_SYS_unlink 10
/* 11 is obsolete execv */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_chdir 12
#define FREEBSD32_SYS_fchdir 13
#define FREEBSD32_SYS_mknod 14
#define FREEBSD32_SYS_chmod 15
#define FREEBSD32_SYS_chown 16
#define FREEBSD32_SYS_break 17
#define FREEBSD32_SYS_freebsd4_freebsd32_getfsstat 18
2002-07-20 02:56:34 +00:00
/* 19 is obsolete olseek */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getpid 20
#define FREEBSD32_SYS_mount 21
#define FREEBSD32_SYS_unmount 22
#define FREEBSD32_SYS_setuid 23
#define FREEBSD32_SYS_getuid 24
#define FREEBSD32_SYS_geteuid 25
#define FREEBSD32_SYS_ptrace 26
2005-10-15 05:57:34 +00:00
#define FREEBSD32_SYS_freebsd32_recvmsg 27
#define FREEBSD32_SYS_freebsd32_sendmsg 28
#define FREEBSD32_SYS_freebsd32_recvfrom 29
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_accept 30
#define FREEBSD32_SYS_getpeername 31
#define FREEBSD32_SYS_getsockname 32
2003-12-23 02:48:58 +00:00
#define FREEBSD32_SYS_access 33
#define FREEBSD32_SYS_chflags 34
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_fchflags 35
#define FREEBSD32_SYS_sync 36
#define FREEBSD32_SYS_kill 37
#define FREEBSD32_SYS_getppid 39
#define FREEBSD32_SYS_dup 41
#define FREEBSD32_SYS_pipe 42
#define FREEBSD32_SYS_getegid 43
#define FREEBSD32_SYS_profil 44
#define FREEBSD32_SYS_ktrace 45
/* 46 is old freebsd32_sigaction */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getgid 47
/* 48 is old freebsd32_sigprocmask */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getlogin 49
#define FREEBSD32_SYS_setlogin 50
#define FREEBSD32_SYS_acct 51
/* 52 is old freebsd32_sigpending */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_freebsd32_sigaltstack 53
2008-09-22 16:09:43 +00:00
#define FREEBSD32_SYS_freebsd32_ioctl 54
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_reboot 55
#define FREEBSD32_SYS_revoke 56
#define FREEBSD32_SYS_symlink 57
#define FREEBSD32_SYS_readlink 58
#define FREEBSD32_SYS_freebsd32_execve 59
#define FREEBSD32_SYS_umask 60
#define FREEBSD32_SYS_chroot 61
2002-07-20 02:56:34 +00:00
/* 62 is obsolete ofstat */
/* 63 is obsolete ogetkerninfo */
/* 64 is obsolete ogetpagesize */
2005-02-24 18:24:29 +00:00
#define FREEBSD32_SYS_msync 65
2003-11-08 07:31:49 +00:00
#define FREEBSD32_SYS_vfork 66
/* 67 is obsolete vread */
/* 68 is obsolete vwrite */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_sbrk 69
#define FREEBSD32_SYS_sstk 70
2002-07-20 02:56:34 +00:00
/* 71 is obsolete ommap */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_vadvise 72
#define FREEBSD32_SYS_munmap 73
#define FREEBSD32_SYS_mprotect 74
#define FREEBSD32_SYS_madvise 75
/* 76 is obsolete vhangup */
/* 77 is obsolete vlimit */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_mincore 78
#define FREEBSD32_SYS_getgroups 79
#define FREEBSD32_SYS_setgroups 80
#define FREEBSD32_SYS_getpgrp 81
#define FREEBSD32_SYS_setpgid 82
#define FREEBSD32_SYS_freebsd32_setitimer 83
2002-07-20 02:56:34 +00:00
/* 84 is obsolete owait */
2008-09-15 17:39:01 +00:00
#define FREEBSD32_SYS_swapon 85
2004-01-28 23:45:48 +00:00
#define FREEBSD32_SYS_freebsd32_getitimer 86
2002-07-20 02:56:34 +00:00
/* 87 is obsolete ogethostname */
/* 88 is obsolete osethostname */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getdtablesize 89
#define FREEBSD32_SYS_dup2 90
#define FREEBSD32_SYS_fcntl 92
#define FREEBSD32_SYS_freebsd32_select 93
#define FREEBSD32_SYS_fsync 95
#define FREEBSD32_SYS_setpriority 96
#define FREEBSD32_SYS_socket 97
#define FREEBSD32_SYS_connect 98
2003-12-10 22:33:45 +00:00
/* 99 is obsolete oaccept */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getpriority 100
2002-07-20 02:56:34 +00:00
/* 101 is obsolete osend */
/* 102 is obsolete orecv */
/* 103 is obsolete osigreturn */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_bind 104
#define FREEBSD32_SYS_setsockopt 105
#define FREEBSD32_SYS_listen 106
/* 107 is obsolete vtimes */
/* 108 is old freebsd32_sigvec */
/* 109 is old freebsd32_sigblock */
/* 110 is old freebsd32_sigsetmask */
/* 111 is old freebsd32_sigsuspend */
/* 112 is old freebsd32_sigstack */
2002-07-20 02:56:34 +00:00
/* 113 is obsolete orecvmsg */
/* 114 is obsolete osendmsg */
/* 115 is obsolete vtrace */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_freebsd32_gettimeofday 116
#define FREEBSD32_SYS_freebsd32_getrusage 117
#define FREEBSD32_SYS_getsockopt 118
#define FREEBSD32_SYS_freebsd32_readv 120
#define FREEBSD32_SYS_freebsd32_writev 121
#define FREEBSD32_SYS_freebsd32_settimeofday 122
#define FREEBSD32_SYS_fchown 123
#define FREEBSD32_SYS_fchmod 124
2003-12-10 22:33:45 +00:00
/* 125 is obsolete orecvfrom */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_setreuid 126
#define FREEBSD32_SYS_setregid 127
#define FREEBSD32_SYS_rename 128
2002-07-20 02:56:34 +00:00
/* 129 is obsolete otruncate */
/* 130 is obsolete ftruncate */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_flock 131
#define FREEBSD32_SYS_mkfifo 132
#define FREEBSD32_SYS_sendto 133
#define FREEBSD32_SYS_shutdown 134
#define FREEBSD32_SYS_socketpair 135
#define FREEBSD32_SYS_mkdir 136
#define FREEBSD32_SYS_rmdir 137
#define FREEBSD32_SYS_freebsd32_utimes 138
/* 139 is obsolete 4.2 sigreturn */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_freebsd32_adjtime 140
2002-07-20 02:56:34 +00:00
/* 141 is obsolete ogetpeername */
/* 142 is obsolete ogethostid */
/* 143 is obsolete sethostid */
/* 144 is obsolete getrlimit */
/* 145 is obsolete setrlimit */
/* 146 is obsolete killpg */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_setsid 147
#define FREEBSD32_SYS_quotactl 148
2002-07-20 02:56:34 +00:00
/* 149 is obsolete oquota */
/* 150 is obsolete ogetsockname */
2003-12-10 22:33:45 +00:00
/* 156 is obsolete ogetdirentries */
#define FREEBSD32_SYS_freebsd4_freebsd32_statfs 157
#define FREEBSD32_SYS_freebsd4_freebsd32_fstatfs 158
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getfh 161
/* 162 is obsolete getdomainname */
/* 163 is obsolete setdomainname */
/* 164 is obsolete uname */
2009-04-01 13:12:40 +00:00
#define FREEBSD32_SYS_freebsd32_sysarch 165
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_rtprio 166
#define FREEBSD32_SYS_freebsd32_semsys 169
#define FREEBSD32_SYS_freebsd32_msgsys 170
#define FREEBSD32_SYS_freebsd32_shmsys 171
#define FREEBSD32_SYS_freebsd6_freebsd32_pread 173
#define FREEBSD32_SYS_freebsd6_freebsd32_pwrite 174
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_ntp_adjtime 176
#define FREEBSD32_SYS_setgid 181
#define FREEBSD32_SYS_setegid 182
#define FREEBSD32_SYS_seteuid 183
#define FREEBSD32_SYS_freebsd32_stat 188
#define FREEBSD32_SYS_freebsd32_fstat 189
#define FREEBSD32_SYS_freebsd32_lstat 190
#define FREEBSD32_SYS_pathconf 191
#define FREEBSD32_SYS_fpathconf 192
#define FREEBSD32_SYS_getrlimit 194
#define FREEBSD32_SYS_setrlimit 195
2008-10-22 21:56:44 +00:00
#define FREEBSD32_SYS_freebsd32_getdirentries 196
#define FREEBSD32_SYS_freebsd6_freebsd32_mmap 197
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS___syscall 198
#define FREEBSD32_SYS_freebsd6_freebsd32_lseek 199
#define FREEBSD32_SYS_freebsd6_freebsd32_truncate 200
#define FREEBSD32_SYS_freebsd6_freebsd32_ftruncate 201
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_freebsd32_sysctl 202
#define FREEBSD32_SYS_mlock 203
#define FREEBSD32_SYS_munlock 204
#define FREEBSD32_SYS_undelete 205
2005-12-08 22:15:09 +00:00
#define FREEBSD32_SYS_freebsd32_futimes 206
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getpgid 207
#define FREEBSD32_SYS_poll 209
2009-06-24 21:54:08 +00:00
#define FREEBSD32_SYS_freebsd7_freebsd32_semctl 220
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_semget 221
#define FREEBSD32_SYS_semop 222
2009-06-24 21:54:08 +00:00
#define FREEBSD32_SYS_freebsd7_freebsd32_msgctl 224
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_msgget 225
2006-12-20 19:39:10 +00:00
#define FREEBSD32_SYS_freebsd32_msgsnd 226
#define FREEBSD32_SYS_freebsd32_msgrcv 227
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_shmat 228
2009-06-24 21:54:08 +00:00
#define FREEBSD32_SYS_freebsd7_freebsd32_shmctl 229
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_shmdt 230
#define FREEBSD32_SYS_shmget 231
#define FREEBSD32_SYS_freebsd32_clock_gettime 232
#define FREEBSD32_SYS_freebsd32_clock_settime 233
#define FREEBSD32_SYS_freebsd32_clock_getres 234
#define FREEBSD32_SYS_freebsd32_nanosleep 240
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_minherit 250
#define FREEBSD32_SYS_rfork 251
#define FREEBSD32_SYS_openbsd_poll 252
#define FREEBSD32_SYS_issetugid 253
#define FREEBSD32_SYS_lchown 254
2008-12-10 20:57:16 +00:00
#define FREEBSD32_SYS_freebsd32_aio_read 255
#define FREEBSD32_SYS_freebsd32_aio_write 256
#define FREEBSD32_SYS_freebsd32_lio_listio 257
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getdents 272
#define FREEBSD32_SYS_lchmod 274
#define FREEBSD32_SYS_netbsd_lchown 275
2006-01-20 16:22:37 +00:00
#define FREEBSD32_SYS_freebsd32_lutimes 276
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_netbsd_msync 277
#define FREEBSD32_SYS_nstat 278
#define FREEBSD32_SYS_nfstat 279
#define FREEBSD32_SYS_nlstat 280
2005-07-07 18:20:38 +00:00
#define FREEBSD32_SYS_freebsd32_preadv 289
#define FREEBSD32_SYS_freebsd32_pwritev 290
#define FREEBSD32_SYS_freebsd4_freebsd32_fhstatfs 297
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_fhopen 298
#define FREEBSD32_SYS_fhstat 299
#define FREEBSD32_SYS_modnext 300
#define FREEBSD32_SYS_freebsd32_modstat 301
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_modfnext 302
#define FREEBSD32_SYS_modfind 303
#define FREEBSD32_SYS_kldload 304
#define FREEBSD32_SYS_kldunload 305
#define FREEBSD32_SYS_kldfind 306
#define FREEBSD32_SYS_kldnext 307
#define FREEBSD32_SYS_kldstat 308
#define FREEBSD32_SYS_kldfirstmod 309
#define FREEBSD32_SYS_getsid 310
#define FREEBSD32_SYS_setresuid 311
#define FREEBSD32_SYS_setresgid 312
/* 313 is obsolete signanosleep */
2008-12-10 20:57:16 +00:00
#define FREEBSD32_SYS_freebsd32_aio_return 314
#define FREEBSD32_SYS_freebsd32_aio_suspend 315
#define FREEBSD32_SYS_freebsd32_aio_cancel 316
#define FREEBSD32_SYS_freebsd32_aio_error 317
#define FREEBSD32_SYS_freebsd32_oaio_read 318
#define FREEBSD32_SYS_freebsd32_oaio_write 319
#define FREEBSD32_SYS_freebsd32_olio_listio 320
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_yield 321
/* 322 is obsolete thr_sleep */
/* 323 is obsolete thr_wakeup */
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_mlockall 324
#define FREEBSD32_SYS_munlockall 325
#define FREEBSD32_SYS___getcwd 326
#define FREEBSD32_SYS_sched_setparam 327
#define FREEBSD32_SYS_sched_getparam 328
#define FREEBSD32_SYS_sched_setscheduler 329
#define FREEBSD32_SYS_sched_getscheduler 330
#define FREEBSD32_SYS_sched_yield 331
#define FREEBSD32_SYS_sched_get_priority_max 332
#define FREEBSD32_SYS_sched_get_priority_min 333
#define FREEBSD32_SYS_sched_rr_get_interval 334
#define FREEBSD32_SYS_utrace 335
#define FREEBSD32_SYS_freebsd4_freebsd32_sendfile 336
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_kldsym 337
#define FREEBSD32_SYS_freebsd32_jail 338
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_sigprocmask 340
#define FREEBSD32_SYS_sigsuspend 341
#define FREEBSD32_SYS_freebsd4_freebsd32_sigaction 342
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_sigpending 343
#define FREEBSD32_SYS_freebsd4_freebsd32_sigreturn 344
2006-10-05 01:58:57 +00:00
#define FREEBSD32_SYS_freebsd32_sigtimedwait 345
#define FREEBSD32_SYS_freebsd32_sigwaitinfo 346
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS___acl_get_file 347
#define FREEBSD32_SYS___acl_set_file 348
#define FREEBSD32_SYS___acl_get_fd 349
#define FREEBSD32_SYS___acl_set_fd 350
#define FREEBSD32_SYS___acl_delete_file 351
#define FREEBSD32_SYS___acl_delete_fd 352
#define FREEBSD32_SYS___acl_aclcheck_file 353
#define FREEBSD32_SYS___acl_aclcheck_fd 354
#define FREEBSD32_SYS_extattrctl 355
#define FREEBSD32_SYS_extattr_set_file 356
#define FREEBSD32_SYS_extattr_get_file 357
#define FREEBSD32_SYS_extattr_delete_file 358
2008-12-10 20:57:16 +00:00
#define FREEBSD32_SYS_freebsd32_aio_waitcomplete 359
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_getresuid 360
#define FREEBSD32_SYS_getresgid 361
#define FREEBSD32_SYS_kqueue 362
#define FREEBSD32_SYS_freebsd32_kevent 363
#define FREEBSD32_SYS_extattr_set_fd 371
#define FREEBSD32_SYS_extattr_get_fd 372
#define FREEBSD32_SYS_extattr_delete_fd 373
#define FREEBSD32_SYS___setugid 374
#define FREEBSD32_SYS_eaccess 376
2008-09-19 15:21:40 +00:00
#define FREEBSD32_SYS_freebsd32_nmount 378
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_kenv 390
#define FREEBSD32_SYS_lchflags 391
#define FREEBSD32_SYS_uuidgen 392
#define FREEBSD32_SYS_freebsd32_sendfile 393
2004-04-14 23:17:57 +00:00
#define FREEBSD32_SYS_getfsstat 395
#define FREEBSD32_SYS_statfs 396
#define FREEBSD32_SYS_fstatfs 397
#define FREEBSD32_SYS_fhstatfs 398
2009-06-10 13:48:43 +00:00
#define FREEBSD32_SYS_extattr_set_link 412
#define FREEBSD32_SYS_extattr_get_link 413
#define FREEBSD32_SYS_extattr_delete_link 414
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_freebsd32_sigaction 416
#define FREEBSD32_SYS_freebsd32_sigreturn 417
2005-09-27 18:04:52 +00:00
#define FREEBSD32_SYS_freebsd32_getcontext 421
#define FREEBSD32_SYS_freebsd32_setcontext 422
#define FREEBSD32_SYS_freebsd32_swapcontext 423
2006-09-23 00:27:53 +00:00
#define FREEBSD32_SYS_sigwait 429
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_thr_exit 431
#define FREEBSD32_SYS_thr_self 432
#define FREEBSD32_SYS_thr_kill 433
2006-10-06 08:24:37 +00:00
#define FREEBSD32_SYS_freebsd32_umtx_lock 434
#define FREEBSD32_SYS_freebsd32_umtx_unlock 435
2003-08-22 22:52:04 +00:00
#define FREEBSD32_SYS_jail_attach 436
2009-06-10 13:48:43 +00:00
#define FREEBSD32_SYS_extattr_list_fd 437
#define FREEBSD32_SYS_extattr_list_file 438
#define FREEBSD32_SYS_extattr_list_link 439
2006-09-22 15:05:34 +00:00
#define FREEBSD32_SYS_freebsd32_thr_suspend 442
#define FREEBSD32_SYS_thr_wake 443
#define FREEBSD32_SYS_kldunloadf 444
2006-10-24 13:54:56 +00:00
#define FREEBSD32_SYS_audit 445
#define FREEBSD32_SYS_auditon 446
#define FREEBSD32_SYS_getauid 447
#define FREEBSD32_SYS_setauid 448
#define FREEBSD32_SYS_getaudit 449
#define FREEBSD32_SYS_setaudit 450
#define FREEBSD32_SYS_getaudit_addr 451
#define FREEBSD32_SYS_setaudit_addr 452
#define FREEBSD32_SYS_auditctl 453
2006-09-22 00:53:43 +00:00
#define FREEBSD32_SYS_freebsd32_umtx_op 454
2006-09-22 15:05:34 +00:00
#define FREEBSD32_SYS_freebsd32_thr_new 455
#define FREEBSD32_SYS_sigqueue 456
#define FREEBSD32_SYS_abort2 463
#define FREEBSD32_SYS_thr_set_name 464
2008-12-10 20:57:16 +00:00
#define FREEBSD32_SYS_freebsd32_aio_fsync 465
2006-09-21 04:50:38 +00:00
#define FREEBSD32_SYS_rtprio_thread 466
#define FREEBSD32_SYS_sctp_peeloff 471
#define FREEBSD32_SYS_sctp_generic_sendmsg 472
#define FREEBSD32_SYS_sctp_generic_sendmsg_iov 473
#define FREEBSD32_SYS_sctp_generic_recvmsg 474
#define FREEBSD32_SYS_freebsd32_pread 475
#define FREEBSD32_SYS_freebsd32_pwrite 476
#define FREEBSD32_SYS_freebsd32_mmap 477
#define FREEBSD32_SYS_freebsd32_lseek 478
#define FREEBSD32_SYS_freebsd32_truncate 479
#define FREEBSD32_SYS_freebsd32_ftruncate 480
2007-08-16 05:32:26 +00:00
#define FREEBSD32_SYS_thr_kill2 481
#define FREEBSD32_SYS_shm_open 482
#define FREEBSD32_SYS_shm_unlink 483
2008-03-25 19:35:34 +00:00
#define FREEBSD32_SYS_cpuset 484
2008-07-10 17:46:58 +00:00
#define FREEBSD32_SYS_freebsd32_cpuset_setid 485
#define FREEBSD32_SYS_freebsd32_cpuset_getid 486
#define FREEBSD32_SYS_freebsd32_cpuset_getaffinity 487
#define FREEBSD32_SYS_freebsd32_cpuset_setaffinity 488
2008-03-31 12:12:27 +00:00
#define FREEBSD32_SYS_faccessat 489
#define FREEBSD32_SYS_fchmodat 490
#define FREEBSD32_SYS_fchownat 491
#define FREEBSD32_SYS_freebsd32_fexecve 492
#define FREEBSD32_SYS_freebsd32_fstatat 493
#define FREEBSD32_SYS_freebsd32_futimesat 494
#define FREEBSD32_SYS_linkat 495
#define FREEBSD32_SYS_mkdirat 496
#define FREEBSD32_SYS_mkfifoat 497
#define FREEBSD32_SYS_mknodat 498
#define FREEBSD32_SYS_openat 499
#define FREEBSD32_SYS_readlinkat 500
#define FREEBSD32_SYS_renameat 501
#define FREEBSD32_SYS_symlinkat 502
#define FREEBSD32_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 FREEBSD32_SYS_posix_openpt 504
#define FREEBSD32_SYS_freebsd32_jail_get 506
#define FREEBSD32_SYS_freebsd32_jail_set 507
#define FREEBSD32_SYS_jail_remove 508
2009-06-15 20:40:23 +00:00
#define FREEBSD32_SYS_closefrom 509
2009-06-24 21:54:08 +00:00
#define FREEBSD32_SYS_freebsd32_semctl 510
#define FREEBSD32_SYS_freebsd32_msgctl 511
#define FREEBSD32_SYS_freebsd32_shmctl 512
#define FREEBSD32_SYS_lpathconf 513
2009-10-27 11:02:04 +00:00
#define FREEBSD32_SYS_freebsd32_pselect 522
#define FREEBSD32_SYS_MAXSYSCALL 523