Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-30 10:25:32

0001 
0002 /*
0003    This file is part of Valgrind, a dynamic binary instrumentation
0004    framework.
0005 
0006    Copyright (C) 2000-2005 Julian Seward
0007       jseward@acm.org
0008    Copyright (C) 2018-2021 Paul Floyd
0009       pjfloyd@wanadoo.fr
0010 
0011    This program is free software; you can redistribute it and/or
0012    modify it under the terms of the GNU General Public License as
0013    published by the Free Software Foundation; either version 2 of the
0014    License, or (at your option) any later version.
0015 
0016    This program is distributed in the hope that it will be useful, but
0017    WITHOUT ANY WARRANTY; without even the implied warranty of
0018    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0019    General Public License for more details.
0020 
0021    You should have received a copy of the GNU General Public License
0022    along with this program; if not, see <http://www.gnu.org/licenses/>.
0023 
0024    The GNU General Public License is contained in the file COPYING.
0025 */
0026 
0027 #ifndef VKI_UNISTD_FREEBSD_H
0028 #define VKI_UNISTD_FREEBSD_H
0029 
0030 #include "config.h"
0031 
0032 // this is the syscall format used by e.g., libc functions like 'write'
0033 // this is the one used 99.999% of the time
0034 // the two others are only for experimental or testing use
0035 // (but we use them in the scalar tests).
0036 #define VG_FREEBSD_SYSCALL_STD 0
0037 // this is the syscall format used by 'syscall'
0038 #define VG_FREEBSD_SYSCALL0    1
0039 // this is the syscall format used by '__syscall'
0040 // it is the same as VG_FREEBSD_SYSCALL0 except that
0041 // it ensures that 64bit argument alignment is correct
0042 // that makes no difference for amd64, x86 not sure
0043 #define VG_FREEBSD_SYSCALL198  2
0044 
0045 // From sys/syscall.h
0046 
0047 // @todo PJF ugly leading double underscores
0048 // and why use the Linux style when FreeBSD uses SYS_[name]?
0049 // I suppose that makes the generic code easier
0050 
0051 #define __NR_syscall             0
0052 #define __NR_exit                1
0053 #define __NR_fork                2
0054 #define __NR_read                3
0055 #define __NR_write               4
0056 #define __NR_open                5
0057 #define __NR_close               6
0058 #define __NR_wait4               7
0059 /* old creat                     8 */
0060 #define __NR_link                9
0061 #define __NR_unlink              10
0062 /* obs execv                     11 */
0063 #define __NR_chdir               12
0064 #define __NR_fchdir              13
0065 #define __NR_freebsd11_mknod     14
0066 #define __NR_chmod               15
0067 #define __NR_chown               16
0068 #define __NR_break               17
0069 /* freebsd4 getfsstat            18 */
0070 /* old lseek                     19 */
0071 #define __NR_getpid              20
0072 #define __NR_mount               21
0073 #define __NR_unmount             22
0074 #define __NR_setuid              23
0075 #define __NR_getuid              24
0076 #define __NR_geteuid             25
0077 #define __NR_ptrace              26
0078 #define __NR_recvmsg             27
0079 #define __NR_sendmsg             28
0080 #define __NR_recvfrom            29
0081 #define __NR_accept              30
0082 #define __NR_getpeername         31
0083 #define __NR_getsockname         32
0084 #define __NR_access              33
0085 #define __NR_chflags             34
0086 #define __NR_fchflags            35
0087 #define __NR_sync                36
0088 #define __NR_kill                37
0089 /* old stat                      38 */
0090 #define __NR_getppid             39
0091 /* old lstat                     40 */
0092 #define __NR_dup                 41
0093 #define __NR_freebsd10_pipe      42
0094 #define __NR_getegid             43
0095 #define __NR_profil              44
0096 #define __NR_ktrace              45
0097 /* old sigaction                 46 */
0098 #define __NR_getgid              47
0099 /* old sigprocmask               48 */
0100 #define __NR_getlogin            49
0101 #define __NR_setlogin            50
0102 #define __NR_acct                51
0103 /* old sigpending                52 */
0104 #define __NR_sigaltstack         53
0105 #define __NR_ioctl               54
0106 #define __NR_reboot              55
0107 #define __NR_revoke              56
0108 #define __NR_symlink             57
0109 #define __NR_readlink            58
0110 #define __NR_execve              59
0111 #define __NR_umask               60
0112 #define __NR_chroot              61
0113 /* old fstat                     62 */
0114 /* old getkerninfo               63 */
0115 /* old getpagesize               64 */
0116 #define __NR_msync               65
0117 #define __NR_vfork               66
0118 /* obs vread                     67 */
0119 /* obs vwrite                    68 */
0120 #define __NR_sbrk                69
0121 #define __NR_sstk                70
0122 /* old mmap                      71 */
0123 #define __NR_vadvise             72
0124 #define __NR_munmap              73
0125 #define __NR_mprotect            74
0126 #define __NR_madvise             75
0127 /* obs vhangup                   76 */
0128 /* obs vlimit                    77 */
0129 #define __NR_mincore             78
0130 #define __NR_getgroups           79
0131 #define __NR_setgroups           80
0132 #define __NR_getpgrp             81
0133 #define __NR_setpgid             82
0134 #define __NR_setitimer           83
0135 #define __NR_swapon              85
0136 #define __NR_getitimer           86
0137 /* old gethostname               87 */
0138 /* old sethostname               88 */
0139 #define __NR_getdtablesize       89
0140 #define __NR_dup2                90
0141 #define __NR_fcntl               92
0142 #define __NR_select              93
0143 #define __NR_fsync               95
0144 #define __NR_setpriority         96
0145 #define __NR_socket              97
0146 #define __NR_connect             98
0147 /* old accept                    99 */
0148 #define __NR_getpriority         100
0149 /* old send                      101 */
0150 /* old recv                      102 */
0151 /* old sigreturn                 103 */
0152 #define __NR_bind                104
0153 #define __NR_setsockopt          105
0154 #define __NR_listen              106
0155 /* obs vtimes                    107 */
0156 /* old sigvec                    108 */
0157 /* old sigblock                  109 */
0158 /* old sigsetmask                110 */
0159 /* old sigsuspend                111 */
0160 /* old sigstack                  112 */
0161 /* old recvmsg                   113 */
0162 /* old sendmsg                   114 */
0163 /* obs vtrace                    115 */
0164 #define __NR_gettimeofday        116
0165 #define __NR_getrusage           117
0166 #define __NR_getsockopt          118
0167 #define __NR_readv               120
0168 #define __NR_writev              121
0169 #define __NR_settimeofday        122
0170 #define __NR_fchown              123
0171 #define __NR_fchmod              124
0172 #define __NR_setreuid            126
0173 #define __NR_setregid            127
0174 #define __NR_rename              128
0175 #define __NR_flock               131
0176 #define __NR_mkfifo              132
0177 #define __NR_sendto              133
0178 #define __NR_shutdown            134
0179 #define __NR_socketpair          135
0180 #define __NR_mkdir               136
0181 #define __NR_rmdir               137
0182 #define __NR_utimes              138
0183 /* obs freebsd sigreturn         139 */
0184 #define __NR_adjtime             140
0185 /* old getpeername               141 */
0186 /* old gethostid                 142 */
0187 /* old sethostid                 143 */
0188 /* old getrlimit                 144 */
0189 /* old setrlimit                 145 */
0190 /* old killpg                    146 */
0191 #define __NR_setsid              147
0192 #define __NR_quotactl            148
0193 /* old quota                     149 */
0194 /* old getsockname               150  */
0195 #define __NR_nlm_syscall         154
0196 #define __NR_nfssvc              155
0197 /* old getdirentries             156 */
0198 
0199 #if (FREEBSD_VERS <= FREEBSD_10)
0200 // these were removed in FreeBSD 11
0201 #define __NR_freebsd4_statfs     157
0202 #define __NR_freebsd4_fstatfs    158
0203 #endif
0204 #define __NR_lgetfh              160
0205 #define __NR_getfh               161
0206 
0207 #if (FREEBSD_VERS <= FREEBSD_10)
0208 #define __NR_freebsd4_getdomainname 162
0209 #define __NR_freebsd4_setdomainname 163
0210 #define __NR_freebsd4_uname      164
0211 #endif
0212 
0213 #define __NR_sysarch             165
0214 #define __NR_rtprio              166
0215 #define __NR_semsys              169
0216 #define __NR_msgsys              170
0217 #define __NR_shmsys              171
0218 #if (FREEBSD_VERS <= FREEBSD_10)
0219 #define __NR_freebsd6_pread      173
0220 #define __NR_freebsd6_pwrite     174
0221 #endif
0222 #define __NR_setfib              175
0223 #define __NR_ntp_adjtime         176
0224 #define __NR_setgid              181
0225 #define __NR_setegid             182
0226 #define __NR_seteuid             183
0227 
0228 #if (FREEBSD_VERS >= FREEBSD_12)
0229 #define __NR_freebsd11_stat      188
0230 #define __NR_freebsd11_fstat     189
0231 #define __NR_freebsd11_lstat     190
0232 #else
0233 #define __NR_stat                188
0234 #define __NR_fstat               189
0235 #define __NR_lstat               190
0236 #endif
0237 
0238 #define __NR_pathconf            191
0239 #define __NR_fpathconf           192
0240 #define __NR_getrlimit           194
0241 #define __NR_setrlimit           195
0242 
0243 #if (FREEBSD_VERS >= FREEBSD_12)
0244 #define __NR_freebsd11_getdirentries 196
0245 #else
0246 #define __NR_getdirentries       196
0247 #endif
0248 #if (FREEBSD_VERS <= FREEBSD_10)
0249 #define __NR_freebsd6_mmap       197
0250 #endif
0251 #define __NR___syscall           198
0252 #if (FREEBSD_VERS <= FREEBSD_10)
0253 #define __NR_freebsd6_lseek      199
0254 #define __NR_freebsd6_truncate   200
0255 #define __NR_freebsd6_ftruncate  201
0256 #endif
0257 #define __NR___sysctl            202
0258 #define __NR_mlock               203
0259 #define __NR_munlock             204
0260 #define __NR_undelete            205
0261 #define __NR_futimes             206
0262 #define __NR_getpgid             207
0263 #define __NR_poll                209
0264 #define __NR_freebsd7___semctl   220
0265 #define __NR_semget              221
0266 #define __NR_semop               222
0267 /* obs semconfig                 223 */
0268 #define __NR_freebsd7_msgctl     224
0269 #define __NR_msgget              225
0270 #define __NR_msgsnd              226
0271 #define __NR_msgrcv              227
0272 #define __NR_shmat               228
0273 #define __NR_freebsd7_shmctl     229
0274 #define __NR_shmdt               230
0275 #define __NR_shmget              231
0276 #define __NR_clock_gettime       232
0277 #define __NR_clock_settime       233
0278 #define __NR_clock_getres        234
0279 #define __NR_ktimer_create       235
0280 #define __NR_ktimer_delete       236
0281 #define __NR_ktimer_settime      237
0282 #define __NR_ktimer_gettime      238
0283 #define __NR_ktimer_getoverrun   239
0284 #define __NR_nanosleep           240
0285 #define __NR_ffclock_getcounter  241
0286 #define __NR_ffclock_setestimate 242
0287 #define __NR_ffclock_getestimate 243
0288 #define __NR_clock_nanosleep     244
0289 #define __NR_clock_getcpuclockid2 247
0290 #define __NR_ntp_gettime         248
0291 
0292 #define __NR_minherit            250
0293 #define __NR_rfork               251
0294 /* ons openbsd_poll              252 */
0295 #define __NR_issetugid           253
0296 #define __NR_lchown              254
0297 #define __NR_aio_read            255
0298 #define __NR_aio_write           256
0299 #define __NR_lio_listio          257
0300 #define __NR_freebsd11_getdents  272
0301 #define __NR_lchmod              274
0302 /* obs netbsd_lchown             275 */
0303 #define __NR_lutimes             276
0304 /* obs netbsd_msync              277 */
0305 
0306 #if (FREEBSD_VERS >= FREEBSD_12)
0307 #define __NR_freebsd11_nstat     278
0308 #define __NR_freebsd11_nfstat    279
0309 #define __NR_freebsd11_nlstat    280
0310 #else
0311 #define __NR_nstat               278
0312 #define __NR_nfstat              279
0313 #define __NR_nlstat              280
0314 #endif
0315 #define __NR_preadv              289
0316 #define __NR_pwritev             290
0317 
0318 #if (FREEBSD_VERS <= FREEBSD_10)
0319 #define __NR_freebsd4_fhstatfs   297
0320 #endif
0321 
0322 #define __NR_fhopen              298
0323 
0324 #if (FREEBSD_VERS >= FREEBSD_12)
0325 #define __NR_freebsd11_fhstat    299
0326 #else
0327 #define __NR_fhstat              299
0328 #endif
0329 
0330 #define __NR_modnext             300
0331 #define __NR_modstat             301
0332 #define __NR_modfnext            302
0333 #define __NR_modfind             303
0334 #define __NR_kldload             304
0335 #define __NR_kldunload           305
0336 #define __NR_kldfind             306
0337 #define __NR_kldnext             307
0338 #define __NR_kldstat             308
0339 #define __NR_kldfirstmod         309
0340 #define __NR_getsid              310
0341 #define __NR_setresuid           311
0342 #define __NR_setresgid           312
0343 /* obs signanosleep              313 */
0344 #define __NR_aio_return          314
0345 #define __NR_aio_suspend         315
0346 #define __NR_aio_cancel          316
0347 #define __NR_aio_error           317
0348 #if (FREEBSD_VERS <= FREEBSD_10)
0349 #define __NR_oaio_read           318
0350 #define __NR_oaio_write          319
0351 #define __NR_olio_listio         320
0352 #endif
0353 #define __NR_yield               321
0354 /* obs thr_sleep                 323 */
0355 /* obs thr_wakeup                324 */
0356 #define __NR_mlockall            324
0357 #define __NR_munlockall          325
0358 #define __NR___getcwd            326
0359 #define __NR_sched_setparam      327
0360 #define __NR_sched_getparam      328
0361 #define __NR_sched_setscheduler  329
0362 #define __NR_sched_getscheduler  330
0363 #define __NR_sched_yield         331
0364 #define __NR_sched_get_priority_max 332
0365 #define __NR_sched_get_priority_min 333
0366 #define __NR_sched_rr_get_interval 334
0367 #define __NR_utrace              335
0368 #if (FREEBSD_VERS <= FREEBSD_10)
0369 #define __NR_freebsd4_sendfile   342
0370 #endif
0371 #define __NR_kldsym              337
0372 #define __NR_jail                338
0373 #define __NR_sigprocmask         340
0374 #define __NR_sigsuspend          341
0375 #if (FREEBSD_VERS <= FREEBSD_10)
0376 #define __NR_freebsd4_sigaction  342
0377 #endif
0378 #define __NR_sigpending          343
0379 #if (FREEBSD_VERS <= FREEBSD_10)
0380 #define __NR_freebsd4_sigreturn  344
0381 #endif
0382 #define __NR_sigtimedwait        345
0383 #define __NR_sigwaitinfo         346
0384 #define __NR___acl_get_file      347
0385 #define __NR___acl_set_file      348
0386 #define __NR___acl_get_fd        349
0387 #define __NR___acl_set_fd        350
0388 #define __NR___acl_delete_file   351
0389 #define __NR___acl_delete_fd     352
0390 #define __NR___acl_aclcheck_file 353
0391 #define __NR___acl_aclcheck_fd   354
0392 #define __NR_extattrctl          355
0393 #define __NR_extattr_set_file    356
0394 #define __NR_extattr_get_file    357
0395 #define __NR_extattr_delete_file 358
0396 #define __NR_aio_waitcomplete    359
0397 #define __NR_getresuid           360
0398 #define __NR_getresgid           361
0399 #define __NR_kqueue              362
0400 
0401 #if (FREEBSD_VERS >= FREEBSD_12)
0402 #define __NR_freebsd11_kevent    363
0403 #else
0404 #define __NR_kevent              363
0405 #endif
0406 /* obs __cap_get_proc            364 */
0407 /* obs __cap_set_proc            365 */
0408 /* obs __cap_get_fd              366 */
0409 /* obs __cap_get_file            367 */
0410 /* obs __cap_set_fd              368 */
0411 /* obs __cap_set_file            369 */
0412 
0413 #define __NR_extattr_set_fd      371
0414 #define __NR_extattr_get_fd      372
0415 #define __NR_extattr_delete_fd   373
0416 #define __NR___setugid           374
0417 /* obs nfsclnt                   375 */
0418 #define __NR_eaccess             376
0419 #define __NR_nmount              378
0420 /* obs kse_exit                  379 */
0421 /* obs kse_wakeup                380 */
0422 /* obs kse_create                381 */
0423 /* obs kse_thr_interrupt         382 */
0424 /* obs kse_release               383 */
0425 #define __NR___mac_get_proc      384
0426 #define __NR___mac_set_proc      385
0427 #define __NR___mac_get_fd        386
0428 #define __NR___mac_get_file      387
0429 #define __NR___mac_set_fd        388
0430 #define __NR___mac_set_file      389
0431 #define __NR_kenv                390
0432 #define __NR_lchflags            391
0433 #define __NR_uuidgen             392
0434 #define __NR_sendfile            393
0435 #define __NR_mac_syscall         394
0436 
0437 #if (FREEBSD_VERS >= FREEBSD_12)
0438 #define __NR_freebsd11_getfsstat 395
0439 #define __NR_freebsd11_statfs    396
0440 #define __NR_freebsd11_fstatfs   397
0441 #define __NR_freebsd11_fhstatfs  398
0442 #else
0443 #define __NR_getfsstat           395
0444 #define __NR_statfs              396
0445 #define __NR_fstatfs             397
0446 #define __NR_fhstatfs            398
0447 #endif
0448 
0449 #define __NR_ksem_close          400
0450 #define __NR_ksem_post           401
0451 #define __NR_ksem_wait           402
0452 #define __NR_ksem_trywait        403
0453 #define __NR_ksem_init           404
0454 #define __NR_ksem_open           405
0455 #define __NR_ksem_unlink         406
0456 #define __NR_ksem_getvalue       407
0457 #define __NR_ksem_destroy        408
0458 #define __NR___mac_get_pid       409
0459 #define __NR___mac_get_link      410
0460 #define __NR___mac_set_link      411
0461 #define __NR_extattr_set_link    412
0462 #define __NR_extattr_get_link    413
0463 #define __NR_extattr_delete_link 414
0464 #define __NR___mac_execve        415
0465 #define __NR_sigaction           416
0466 #define __NR_sigreturn           417
0467 #define __NR_getcontext          421
0468 #define __NR_setcontext          422
0469 #define __NR_swapcontext         423
0470 #if (FREEBSD_VERS >= FREEBSD_13_1)
0471 #define __NR_freebsd13_swapoff   424
0472 #else
0473 #define __NR_swapoff             424
0474 #endif
0475 #define __NR___acl_get_link      425
0476 #define __NR___acl_set_link      426
0477 #define __NR___acl_delete_link   427
0478 #define __NR___acl_aclcheck_link 428
0479 #define __NR_sigwait             429
0480 #define __NR_thr_create          430
0481 #define __NR_thr_exit            431
0482 #define __NR_thr_self            432
0483 #define __NR_thr_kill            433
0484 #define __NR__umtx_lock          434
0485 #define __NR__umtx_unlock        435
0486 #define __NR_jail_attach         436
0487 #define __NR_extattr_list_fd     437
0488 #define __NR_extattr_list_file   438
0489 #define __NR_extattr_list_link   439
0490 /* obs kse_switchin              440 */
0491 #define __NR_ksem_timedwait      441
0492 #define __NR_thr_suspend         442
0493 #define __NR_thr_wake            443
0494 #define __NR_kldunloadf          444
0495 #define __NR_audit               445
0496 #define __NR_auditon             446
0497 #define __NR_getauid             447
0498 #define __NR_setauid             448
0499 #define __NR_getaudit            449
0500 #define __NR_setaudit            450
0501 #define __NR_getaudit_addr       451
0502 #define __NR_setaudit_addr       452
0503 #define __NR_auditctl            453
0504 #define __NR__umtx_op            454
0505 #define __NR_thr_new             455
0506 #define __NR_sigqueue            456
0507 #define __NR_kmq_open            457
0508 #define __NR_kmq_setattr         458
0509 #define __NR_kmq_timedreceive    459
0510 #define __NR_kmq_timedsend       460
0511 #define __NR_kmq_notify          461
0512 #define __NR_kmq_unlink          462
0513 #define __NR_abort2              463
0514 #define __NR_thr_set_name        464
0515 #define __NR_aio_fsync           465
0516 #define __NR_rtprio_thread       466
0517 #define __NR_nosys467            467
0518 #define __NR_nosys468            468
0519 #define __NR___getpath_fromfd    469
0520 #define __NR___getpath_fromaddr  470
0521 #define __NR_sctp_peeloff        471
0522 #define __NR_sctp_generic_sendmsg 472
0523 #define __NR_sctp_generic_sendmsg_iov 473
0524 #define __NR_sctp_generic_recvmsg 474
0525 #define __NR_pread               475
0526 #define __NR_pwrite              476
0527 #define __NR_mmap                477
0528 #define __NR_lseek               478
0529 #define __NR_truncate            479
0530 #define __NR_ftruncate           480
0531 #define __NR_thr_kill2           481
0532 
0533 // __NR_freebsd12_shm_open from FreeBSD 13
0534 #define __NR_shm_open            482
0535 #define __NR_shm_unlink          483
0536 #define __NR_cpuset              484
0537 #define __NR_cpuset_setid        485
0538 #define __NR_cpuset_getid        486
0539 #define __NR_cpuset_getaffinity  487
0540 #define __NR_cpuset_setaffinity  488
0541 #define __NR_faccessat           489
0542 #define __NR_fchmodat            490
0543 #define __NR_fchownat            491
0544 #define __NR_fexecve             492
0545 
0546 #if (FREEBSD_VERS >= FREEBSD_12)
0547 #define __NR_freebsd11_fstatat   493
0548 #else
0549 #define __NR_fstatat             493
0550 #endif
0551 
0552 #define __NR_futimesat           494
0553 #define __NR_linkat              495
0554 #define __NR_mkdirat             496
0555 #define __NR_mkfifoat            497
0556 
0557 #if (FREEBSD_VERS >= FREEBSD_12)
0558 #define __NR_freebsd11_mknodat   498
0559 #else
0560 #define __NR_mknodat             498
0561 #endif
0562 
0563 #define __NR_openat              499
0564 #define __NR_readlinkat          500
0565 #define __NR_renameat            501
0566 #define __NR_symlinkat           502
0567 #define __NR_unlinkat            503
0568 #define __NR_posix_openpt        504
0569 #define __NR_jail_get            506
0570 #define __NR_jail_set            507
0571 #define __NR_jail_remove         508
0572 
0573 // __NR_freebsd12_closefrom from FreeBSD 13
0574 #define __NR_closefrom           509
0575 #define __NR___semctl            510
0576 #define __NR_msgctl              511
0577 #define __NR_shmctl              512
0578 #define __NR_lpathconf           513
0579 /* obs cap_new                   514 */
0580 #define __NR___cap_rights_get    515
0581 #define __NR_cap_enter           516
0582 #define __NR_cap_getmode         517
0583 #define __NR_pdfork              518
0584 #define __NR_pdkill              519
0585 #define __NR_pdgetpid            520
0586 #define __NR_pselect             522
0587 #define __NR_getloginclass       523
0588 #define __NR_setloginclass       524
0589 #define __NR_rctl_get_racct      525
0590 #define __NR_rctl_get_rules      526
0591 #define __NR_rctl_get_limits     527
0592 #define __NR_rctl_add_rule       528
0593 #define __NR_rctl_remove_rule    529
0594 #define __NR_posix_fallocate     530
0595 #define __NR_posix_fadvise       531
0596 #define __NR_wait6               532
0597 #define __NR_cap_rights_limit    533
0598 #define __NR_cap_ioctls_limit    534
0599 #define __NR_cap_ioctls_get      535
0600 #define __NR_cap_fcntls_limit    536
0601 #define __NR_cap_fcntls_get      537
0602 #define __NR_bindat              538
0603 #define __NR_connectat           539
0604 #define __NR_chflagsat           540
0605 #define __NR_accept4             541
0606 #define __NR_pipe2               542
0607 #define __NR_aio_mlock           543
0608 #define __NR_procctl             544
0609 #define __NR_ppoll               545
0610 #define __NR_futimens            546
0611 #define __NR_utimensat           547
0612 
0613 /* obs numa_getaffinity          548 */
0614 /* obs numa_setaffinity          549 */
0615 #if (FREEBSD_VERS >= FREEBSD_11)
0616 
0617 #define __NR_fdatasync           550
0618 
0619 #endif // (FREEBSD_VERS >= FREEBSD_11)
0620 
0621 #if (FREEBSD_VERS >= FREEBSD_12)
0622 
0623 #define __NR_fstat               551
0624 #define __NR_fstatat             552
0625 #define __NR_fhstat              553
0626 #define __NR_getdirentries       554
0627 #define __NR_statfs              555
0628 #define __NR_fstatfs             556
0629 #define __NR_getfsstat           557
0630 #define __NR_fhstatfs            558
0631 #define __NR_mknodat             559
0632 #define __NR_kevent              560
0633 #define __NR_cpuset_getdomain    561
0634 #define __NR_cpuset_setdomain    562
0635 #define __NR_getrandom           563
0636 #define __NR_getfhat             564
0637 #define __NR_fhlink              565
0638 #define __NR_fhlinkat            566
0639 #define __NR_fhreadlink          567
0640 
0641 #endif // (FREEBSD_VERS >= FREEBSD_12)
0642 
0643 #if (FREEBSD_VERS >= FREEBSD_12_2)
0644 
0645 #define __NR_funlinkat           568
0646 #define __NR_copy_file_range     569
0647 #define __NR___sysctlbyname      570
0648 #define __NR_shm_open2           571
0649 #define __NR_shm_rename          572
0650 #define __NR_sigfastblock        573
0651 #define __NR___realpathat        574
0652 #define __NR_close_range         575
0653 
0654 #endif
0655 
0656 #if (FREEBSD_VERS >= FREEBSD_13_0)
0657 
0658 #define __NR_rpctls_syscall      576
0659 #define __NR___specialfd         577
0660 #define __NR_aio_writev          578
0661 #define __NR_aio_readv           579
0662 
0663 #endif
0664 
0665 #if (FREEBSD_VERS >= FREEBSD_13_1)
0666 
0667 #define __NR_fspacectl           580
0668 #define __NR_sched_getcpu        581
0669 #define __NR_swapoff             582
0670 
0671 #endif
0672 
0673 #define __NR_fake_sigreturn      1000
0674 
0675 #endif /* VKI_UNISTD_FREEBSD_H */