this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[src/kernel/libsyscall] Update source to xnu-7195.141.2

Thomas A 839836fd c9613e16

+1870 -14282
src/kernel/libsyscall/Libsyscall.aliases

This is a binary file and will not be displayed.

-5
src/kernel/libsyscall/Libsyscall.xcconfig
··· 63 63 CODE_SIGN_IDENTITY = - 64 64 DYLIB_CURRENT_VERSION = $(RC_ProjectSourceVersion) 65 65 DYLIB_LDFLAGS = -umbrella System -all_load 66 - DYLIB_LDFLAGS[sdk=iphoneos*] = $(inherited) -Wl,-sectalign,__DATA,__data,1000 67 - DYLIB_LDFLAGS[sdk=watchos*] = $(inherited) -Wl,-sectalign,__DATA,__data,1000 68 - DYLIB_LDFLAGS[sdk=tvos*] = $(inherited) -Wl,-sectalign,__DATA,__data,1000 69 - DYLIB_LDFLAGS[sdk=appletvos*] = $(inherited) -Wl,-sectalign,__DATA,__data,1000 70 - DYLIB_LDFLAGS[sdk=bridgeos*] = $(inherited) -Wl,-sectalign,__DATA,__data,1000 71 66 OTHER_LDFLAGS = $(SIMULATOR_LDFLAGS) 72 67 SIMULATOR_LDFLAGS = 73 68 SIMULATOR_LDFLAGS[sdk=macosx*] = -Wl,-simulator_support
+30 -4
src/kernel/libsyscall/Libsyscall.xcodeproj/project.pbxproj
··· 59 59 60 60 /* Begin PBXBuildFile section */ 61 61 030B179B135377B400DAD1F0 /* open_dprotected_np.c in Sources */ = {isa = PBXBuildFile; fileRef = 030B179A135377B400DAD1F0 /* open_dprotected_np.c */; }; 62 + 132B8BE6245D02D400F546A7 /* system-version-compat.c in Sources */ = {isa = PBXBuildFile; fileRef = 134D9532245BEB15009D4962 /* system-version-compat.c */; }; 63 + 132B8BEC245D0B2C00F546A7 /* system-version-compat-support.c in Sources */ = {isa = PBXBuildFile; fileRef = 132B8BEA245D0AFA00F546A7 /* system-version-compat-support.c */; }; 62 64 139D584B1C7BDE41003D3B17 /* terminate_with_reason.c in Sources */ = {isa = PBXBuildFile; fileRef = 13D932CB1C7B9DE600158FA1 /* terminate_with_reason.c */; }; 63 65 13B598941A142F6400DB2D5A /* stackshot.c in Sources */ = {isa = PBXBuildFile; fileRef = 13B598931A142F5900DB2D5A /* stackshot.c */; }; 66 + 13CBF78224575F9F00B26F7D /* open-base.c in Sources */ = {isa = PBXBuildFile; fileRef = 13CBF78124575F9F00B26F7D /* open-base.c */; }; 67 + 13CBF784245783A800B26F7D /* open.c in Sources */ = {isa = PBXBuildFile; fileRef = 13CBF783245783A800B26F7D /* open.c */; }; 64 68 14FE60EC1B7D3BF400ACB44C /* mach_get_times.c in Sources */ = {isa = PBXBuildFile; fileRef = 14FE60EB1B7D3BED00ACB44C /* mach_get_times.c */; }; 65 69 240BAC4C1214770F000A1719 /* memcpy.c in Sources */ = {isa = PBXBuildFile; fileRef = 24B028D511FF4FBB00CA64A9 /* memcpy.c */; }; 66 70 2419382B12135FF6003CDE41 /* chmod.c in Sources */ = {isa = PBXBuildFile; fileRef = 2419382A12135FF6003CDE41 /* chmod.c */; }; ··· 86 90 248BA089121DA8E0008C073F /* mprotect.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA088121DA8E0008C073F /* mprotect.c */; }; 87 91 248BA08B121DAC86008C073F /* msync.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA08A121DAC86008C073F /* msync.c */; }; 88 92 248BA08D121DB0E7008C073F /* munmap.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA08C121DB0E7008C073F /* munmap.c */; }; 89 - 248BA08F121DC545008C073F /* open.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA08E121DC545008C073F /* open.c */; }; 90 93 248BA093121DE369008C073F /* select.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA092121DE369008C073F /* select.c */; }; 91 94 248BA095121DE565008C073F /* select-pre1050.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA094121DE565008C073F /* select-pre1050.c */; }; 92 95 248BA0B3121DE760008C073F /* select-cancel.c in Sources */ = {isa = PBXBuildFile; fileRef = 248BA0B2121DE760008C073F /* select-cancel.c */; }; ··· 113 116 24B8C2621237F53900D36CC3 /* remove-counter.c in Sources */ = {isa = PBXBuildFile; fileRef = 24B8C2611237F53900D36CC3 /* remove-counter.c */; }; 114 117 24D1158311E671B20063D54D /* SYS.h in Headers */ = {isa = PBXBuildFile; fileRef = 24D1157411E671B20063D54D /* SYS.h */; }; 115 118 24E4782712088267009A384D /* _libc_funcptr.c in Sources */ = {isa = PBXBuildFile; fileRef = 24E47824120881DF009A384D /* _libc_funcptr.c */; }; 119 + 2561E8AA25082E6300EAA925 /* task.c in Sources */ = {isa = PBXBuildFile; fileRef = 2561E8A925082E6300EAA925 /* task.c */; }; 116 120 291D3C281354FDD100D46061 /* mach_port.c in Sources */ = {isa = PBXBuildFile; fileRef = 291D3C261354FDD100D46061 /* mach_port.c */; }; 117 121 291D3C291354FDD100D46061 /* mach_vm.c in Sources */ = {isa = PBXBuildFile; fileRef = 291D3C271354FDD100D46061 /* mach_vm.c */; }; 118 122 29A59AE2183B0DE000E8B896 /* renameat.c in Sources */ = {isa = PBXBuildFile; fileRef = 29A59AE1183B0DE000E8B896 /* renameat.c */; }; ··· 297 301 E4D7E56216F8776300F92D8D /* strlen.c in Sources */ = {isa = PBXBuildFile; fileRef = E4D7E55A16F8776300F92D8D /* strlen.c */; }; 298 302 E4D7E56316F8776300F92D8D /* strsep.c in Sources */ = {isa = PBXBuildFile; fileRef = E4D7E55B16F8776300F92D8D /* strsep.c */; }; 299 303 EE3F605A149A6D66003BAEBA /* getaudit.c in Sources */ = {isa = PBXBuildFile; fileRef = EE3F6059149A6D66003BAEBA /* getaudit.c */; }; 304 + FBE367BF237A540A00B690B7 /* mach_eventlink.c in Sources */ = {isa = PBXBuildFile; fileRef = FBE367BE237A540A00B690B7 /* mach_eventlink.c */; }; 305 + FBE367C1237A58A500B690B7 /* mach_eventlink.defs in Sources */ = {isa = PBXBuildFile; fileRef = FBE367C0237A58A500B690B7 /* mach_eventlink.defs */; }; 300 306 /* End PBXBuildFile section */ 301 307 302 308 /* Begin PBXContainerItemProxy section */ ··· 465 471 466 472 /* Begin PBXFileReference section */ 467 473 030B179A135377B400DAD1F0 /* open_dprotected_np.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = open_dprotected_np.c; sourceTree = "<group>"; }; 474 + 132B8BEA245D0AFA00F546A7 /* system-version-compat-support.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = "system-version-compat-support.c"; sourceTree = "<group>"; }; 475 + 134D9532245BEB15009D4962 /* system-version-compat.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = "system-version-compat.c"; sourceTree = "<group>"; }; 476 + 138288582527B83800FC8585 /* system-version-compat-support.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "system-version-compat-support.h"; sourceTree = "<group>"; }; 468 477 13B598931A142F5900DB2D5A /* stackshot.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = stackshot.c; sourceTree = "<group>"; }; 478 + 13CBF78124575F9F00B26F7D /* open-base.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = "open-base.c"; sourceTree = "<group>"; }; 479 + 13CBF783245783A800B26F7D /* open.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = open.c; sourceTree = "<group>"; }; 469 480 13D932CB1C7B9DE600158FA1 /* terminate_with_reason.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = terminate_with_reason.c; sourceTree = "<group>"; }; 470 481 14FE60EB1B7D3BED00ACB44C /* mach_get_times.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mach_get_times.c; sourceTree = "<group>"; }; 471 482 240D716711933ED300556E97 /* mach_install_mig.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = mach_install_mig.sh; sourceTree = "<group>"; }; ··· 497 508 248BA088121DA8E0008C073F /* mprotect.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mprotect.c; sourceTree = "<group>"; }; 498 509 248BA08A121DAC86008C073F /* msync.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = msync.c; sourceTree = "<group>"; }; 499 510 248BA08C121DB0E7008C073F /* munmap.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = munmap.c; sourceTree = "<group>"; }; 500 - 248BA08E121DC545008C073F /* open.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = open.c; sourceTree = "<group>"; }; 501 511 248BA090121DDD7F008C073F /* select-base.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "select-base.c"; sourceTree = "<group>"; }; 502 512 248BA092121DE369008C073F /* select.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = select.c; sourceTree = "<group>"; }; 503 513 248BA094121DE565008C073F /* select-pre1050.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = "select-pre1050.c"; sourceTree = "<group>"; }; ··· 544 554 24D1159811E672270063D54D /* syscall.map */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = syscall.map; sourceTree = "<group>"; }; 545 555 24D1159911E6723E0063D54D /* create-syscalls.pl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.perl; path = "create-syscalls.pl"; sourceTree = "<group>"; }; 546 556 24E47824120881DF009A384D /* _libc_funcptr.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = _libc_funcptr.c; sourceTree = "<group>"; }; 557 + 2561E8A925082E6300EAA925 /* task.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = task.c; sourceTree = "<group>"; }; 547 558 291D3C261354FDD100D46061 /* mach_port.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mach_port.c; sourceTree = "<group>"; }; 548 559 291D3C271354FDD100D46061 /* mach_vm.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mach_vm.c; sourceTree = "<group>"; }; 549 560 29A59AE1183B0DE000E8B896 /* renameat.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = renameat.c; sourceTree = "<group>"; }; ··· 697 708 E4D7E55B16F8776300F92D8D /* strsep.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = strsep.c; sourceTree = "<group>"; }; 698 709 EE3F6059149A6D66003BAEBA /* getaudit.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = getaudit.c; sourceTree = "<group>"; }; 699 710 FB50F1B315AB7DE700F814BA /* carbon_delete.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = carbon_delete.c; sourceTree = "<group>"; }; 711 + FBE367BE237A540A00B690B7 /* mach_eventlink.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = mach_eventlink.c; sourceTree = "<group>"; }; 712 + FBE367C0237A58A500B690B7 /* mach_eventlink.defs */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.mig; path = mach_eventlink.defs; sourceTree = "<group>"; }; 700 713 /* End PBXFileReference section */ 701 714 702 715 /* Begin PBXFrameworksBuildPhase section */ ··· 750 763 C9D9BCCC114B00600000D8B9 /* err_libkern.sub */, 751 764 C9D9BCCD114B00600000D8B9 /* err_mach_ipc.sub */, 752 765 C9D9BCCE114B00600000D8B9 /* err_server.sub */, 766 + 2561E8A925082E6300EAA925 /* task.c */, 753 767 C9D9BCCF114B00600000D8B9 /* err_us.sub */, 754 768 C9D9BCD0114B00600000D8B9 /* error_codes.c */, 755 769 C9D9BCD1114B00600000D8B9 /* errorlib.h */, ··· 802 816 C962B16D18DBB43F0031244A /* thread_act.c */, 803 817 C9D9BD10114B00600000D8B9 /* thread_act.defs */, 804 818 C9D9BD11114B00600000D8B9 /* vm_map.defs */, 819 + FBE367BE237A540A00B690B7 /* mach_eventlink.c */, 820 + FBE367C0237A58A500B690B7 /* mach_eventlink.defs */, 805 821 ); 806 822 path = mach; 807 823 sourceTree = "<group>"; ··· 875 891 72FB18801B437F7A00181A5B /* mach_continuous_time.c */, 876 892 14FE60EB1B7D3BED00ACB44C /* mach_get_times.c */, 877 893 929FD46E1C5711CF0087B9C8 /* mach_timebase_info.c */, 894 + 13CBF78124575F9F00B26F7D /* open-base.c */, 895 + 134D9532245BEB15009D4962 /* system-version-compat.c */, 896 + 138288582527B83800FC8585 /* system-version-compat-support.h */, 897 + 132B8BEA245D0AFA00F546A7 /* system-version-compat-support.c */, 878 898 030B179A135377B400DAD1F0 /* open_dprotected_np.c */, 879 899 3F538F881A659C5600B37EFD /* persona.c */, 880 900 9CCF28261E68E993002EE6CD /* pid_shutdown_networking.c */, ··· 915 935 248BA04B121C8EE4008C073F /* fcntl-base.c */, 916 936 248BA04E121C8F06008C073F /* fcntl.c */, 917 937 248BA051121C8FE2008C073F /* fcntl-cancel.c */, 938 + 13CBF783245783A800B26F7D /* open.c */, 918 939 248BA0BC121DE902008C073F /* select.c */, 919 940 248BA0B2121DE760008C073F /* select-cancel.c */, 920 941 24B223AF121DFD36007DAEDE /* sigsuspend.c */, ··· 939 960 248BA088121DA8E0008C073F /* mprotect.c */, 940 961 248BA08A121DAC86008C073F /* msync.c */, 941 962 248BA08C121DB0E7008C073F /* munmap.c */, 942 - 248BA08E121DC545008C073F /* open.c */, 943 963 24A7C5B611FF8DA6007669EB /* recvfrom.c */, 944 964 24A7C5B711FF8DA6007669EB /* recvmsg.c */, 945 965 248BA092121DE369008C073F /* select.c */, ··· 1381 1401 E4D7E55F16F8776300F92D8D /* strcmp.c in Sources */, 1382 1402 E4D7E55E16F8776300F92D8D /* memset.c in Sources */, 1383 1403 240BAC4C1214770F000A1719 /* memcpy.c in Sources */, 1404 + 132B8BE6245D02D400F546A7 /* system-version-compat.c in Sources */, 1384 1405 E4D7E56316F8776300F92D8D /* strsep.c in Sources */, 1385 1406 E4D7E56016F8776300F92D8D /* strcpy.c in Sources */, 1386 1407 E4D7E56116F8776300F92D8D /* strlcpy.c in Sources */, ··· 1469 1490 24A7C5C111FF8DA6007669EB /* getsockname.c in Sources */, 1470 1491 925559921CBC23C300E527CE /* mach_boottime.c in Sources */, 1471 1492 24A7C5C211FF8DA6007669EB /* lchown.c in Sources */, 1493 + 2561E8AA25082E6300EAA925 /* task.c in Sources */, 1472 1494 24A7C5C311FF8DA6007669EB /* listen.c in Sources */, 1473 1495 24A7C5C411FF8DA6007669EB /* recvfrom.c in Sources */, 1496 + 13CBF78224575F9F00B26F7D /* open-base.c in Sources */, 1497 + FBE367BF237A540A00B690B7 /* mach_eventlink.c in Sources */, 1474 1498 92197BAF1EAD8F2C003994B9 /* utimensat.c in Sources */, 1475 1499 C962B16E18DBB43F0031244A /* thread_act.c in Sources */, 1476 1500 24A7C5C511FF8DA6007669EB /* recvmsg.c in Sources */, ··· 1481 1505 24A7C5C911FF8DA6007669EB /* socketpair.c in Sources */, 1482 1506 928336A11B83ED9100873B90 /* thread_register_state.c in Sources */, 1483 1507 9002401118FC9A7F00D73BFA /* renamex.c in Sources */, 1508 + 132B8BEC245D0B2C00F546A7 /* system-version-compat-support.c in Sources */, 1484 1509 2419382B12135FF6003CDE41 /* chmod.c in Sources */, 1485 1510 248BA01D121C56BF008C073F /* connect.c in Sources */, 1486 1511 9C4B507422273E0F00F068C1 /* log_data.c in Sources */, ··· 1499 1524 C6BEE9181806840200D25AAB /* posix_sem_obsolete.c in Sources */, 1500 1525 248BA082121DA4F3008C073F /* kill.c in Sources */, 1501 1526 248BA085121DA5E4008C073F /* kill.c in Sources */, 1527 + FBE367C1237A58A500B690B7 /* mach_eventlink.defs in Sources */, 1502 1528 9CCF28271E68E993002EE6CD /* pid_shutdown_networking.c in Sources */, 1503 1529 2BA88DCC1810A3CE00EB63F6 /* coalition.c in Sources */, 1504 1530 248BA087121DA72D008C073F /* mmap.c in Sources */, ··· 1506 1532 248BA089121DA8E0008C073F /* mprotect.c in Sources */, 1507 1533 248BA08B121DAC86008C073F /* msync.c in Sources */, 1508 1534 248BA08D121DB0E7008C073F /* munmap.c in Sources */, 1509 - 248BA08F121DC545008C073F /* open.c in Sources */, 1510 1535 E2A0F3341C3B17D100A11F8A /* fs_snapshot.c in Sources */, 1511 1536 929FD46F1C5711DB0087B9C8 /* mach_timebase_info.c in Sources */, 1512 1537 248BA093121DE369008C073F /* select.c in Sources */, ··· 1522 1547 E4216C311822D404006F2632 /* mach_voucher.defs in Sources */, 1523 1548 24B223B5121DFF29007DAEDE /* sigsuspend.c in Sources */, 1524 1549 248AA963122C7B2A0085F5B1 /* unlink.c in Sources */, 1550 + 13CBF784245783A800B26F7D /* open.c in Sources */, 1525 1551 248AA965122C7C330085F5B1 /* rmdir.c in Sources */, 1526 1552 435F3CAA1B06B7BA005ED9EF /* work_interval.c in Sources */, 1527 1553 248AA967122C7CDA0085F5B1 /* rename.c in Sources */,
+54
src/kernel/libsyscall/Platforms/DriverKit/arm64/syscall.map
··· 1 + _accept$NOCANCEL ___accept_nocancel 2 + _aio_suspend$NOCANCEL ___aio_suspend_nocancel 3 + _close$NOCANCEL ___close_nocancel 4 + _connect$NOCANCEL ___connect_nocancel 5 + _fstat ___fstat64 6 + _fstatat ___fstatat64 7 + _fstatfs ___fstatfs64 8 + _fsync$NOCANCEL ___fsync_nocancel 9 + _getfsstat ___getfsstat64 10 + _getmntinfo ___getmntinfo64 11 + _lstat ___lstat64 12 + _msgrcv$NOCANCEL ___msgrcv_nocancel 13 + _msgsnd$NOCANCEL ___msgsnd_nocancel 14 + _msync$NOCANCEL ___msync_nocancel 15 + _poll$NOCANCEL ___poll_nocancel 16 + _pread$NOCANCEL ___pread_nocancel 17 + _preadv$NOCANCEL ___preadv_nocancel 18 + _pwrite$NOCANCEL ___pwrite_nocancel 19 + _pwritev$NOCANCEL ___pwritev_nocancel 20 + _read$NOCANCEL ___read_nocancel 21 + _readv$NOCANCEL ___readv_nocancel 22 + _recvfrom$NOCANCEL ___recvfrom_nocancel 23 + _recvmsg$NOCANCEL ___recvmsg_nocancel 24 + _select$DARWIN_EXTSN ___select 25 + _select$DARWIN_EXTSN$NOCANCEL ___select_nocancel 26 + _sem_wait$NOCANCEL ___sem_wait_nocancel 27 + _sendmsg$NOCANCEL ___sendmsg_nocancel 28 + _sendto$NOCANCEL ___sendto_nocancel 29 + _stat ___stat64 30 + _statfs ___statfs64 31 + _waitid$NOCANCEL ___waitid_nocancel 32 + _write$NOCANCEL ___write_nocancel 33 + _writev$NOCANCEL ___writev_nocancel 34 + 35 + _accept ___accept 36 + _bind ___bind 37 + _connect ___connect 38 + _getattrlist ___getattrlist 39 + _getpeername ___getpeername 40 + _getsockname ___getsockname 41 + _lchown ___lchown 42 + _listen ___listen 43 + _mprotect ___mprotect 44 + _msgctl ___msgctl 45 + _msync ___msync 46 + _recvfrom ___recvfrom 47 + _recvmsg ___recvmsg 48 + _sendmsg ___sendmsg 49 + _sendto ___sendto 50 + _setattrlist ___setattrlist 51 + _setregid ___setregid 52 + _setreuid ___setreuid 53 + _shmctl ___shmctl 54 + _socketpair ___socketpair
+59
src/kernel/libsyscall/Platforms/DriverKit/x86_64/syscall.map
··· 1 + _accept$NOCANCEL ___accept_nocancel 2 + _aio_suspend$NOCANCEL ___aio_suspend_nocancel 3 + _close$NOCANCEL ___close_nocancel 4 + _connect$NOCANCEL ___connect_nocancel 5 + _fstat ___fstat64 6 + _fstatat ___fstatat64 7 + _fstatfs ___fstatfs64 8 + _fsync$NOCANCEL ___fsync_nocancel 9 + _getfsstat ___getfsstat64 10 + _lstat ___lstat64 11 + _msgrcv$NOCANCEL ___msgrcv_nocancel 12 + _msgsnd$NOCANCEL ___msgsnd_nocancel 13 + _msgsys ___msgsys 14 + _msync$NOCANCEL ___msync_nocancel 15 + _poll$NOCANCEL ___poll_nocancel 16 + _pread$NOCANCEL ___pread_nocancel 17 + _preadv$NOCANCEL ___preadv_nocancel 18 + _pwrite$NOCANCEL ___pwrite_nocancel 19 + _pwritev$NOCANCEL ___pwritev_nocancel 20 + _read$NOCANCEL ___read_nocancel 21 + _readv$NOCANCEL ___readv_nocancel 22 + _recvfrom$NOCANCEL ___recvfrom_nocancel 23 + _recvmsg$NOCANCEL ___recvmsg_nocancel 24 + _select$DARWIN_EXTSN ___select 25 + _select$DARWIN_EXTSN$NOCANCEL ___select_nocancel 26 + _sem_wait$NOCANCEL ___sem_wait_nocancel 27 + _semsys ___semsys 28 + _sendmsg$NOCANCEL ___sendmsg_nocancel 29 + _sendto$NOCANCEL ___sendto_nocancel 30 + _stat ___stat64 31 + _statfs ___statfs64 32 + _waitid$NOCANCEL ___waitid_nocancel 33 + _write$NOCANCEL ___write_nocancel 34 + _writev$NOCANCEL ___writev_nocancel 35 + 36 + _accept ___accept 37 + _bind ___bind 38 + _connect ___connect 39 + _getattrlist ___getattrlist 40 + _getpeername ___getpeername 41 + _getsockname ___getsockname 42 + _lchown ___lchown 43 + _listen ___listen 44 + _mprotect ___mprotect 45 + _msgctl ___msgctl 46 + _msync ___msync 47 + _recvfrom ___recvfrom 48 + _recvmsg ___recvmsg 49 + _semctl ___semctl 50 + _sem_open ___sem_open 51 + _sendmsg ___sendmsg 52 + _sendto ___sendto 53 + _setattrlist ___setattrlist 54 + _setregid ___setregid 55 + _setreuid ___setreuid 56 + _shmctl ___shmctl 57 + _shmsys ___shmsys 58 + _shm_open ___shm_open 59 + _socketpair ___socketpair
-1
src/kernel/libsyscall/Platforms/MacOSX/arm
··· 1 - ../iPhoneOS/arm
-1
src/kernel/libsyscall/Platforms/MacOSX/arm64
··· 1 - ../iPhoneOS/arm64
+54
src/kernel/libsyscall/Platforms/MacOSX/arm64/syscall.map
··· 1 + _accept$NOCANCEL ___accept_nocancel 2 + _aio_suspend$NOCANCEL ___aio_suspend_nocancel 3 + _close$NOCANCEL ___close_nocancel 4 + _connect$NOCANCEL ___connect_nocancel 5 + _fstat ___fstat64 6 + _fstatat ___fstatat64 7 + _fstatfs ___fstatfs64 8 + _fsync$NOCANCEL ___fsync_nocancel 9 + _getfsstat ___getfsstat64 10 + _getmntinfo ___getmntinfo64 11 + _lstat ___lstat64 12 + _msgrcv$NOCANCEL ___msgrcv_nocancel 13 + _msgsnd$NOCANCEL ___msgsnd_nocancel 14 + _msync$NOCANCEL ___msync_nocancel 15 + _poll$NOCANCEL ___poll_nocancel 16 + _pread$NOCANCEL ___pread_nocancel 17 + _preadv$NOCANCEL ___preadv_nocancel 18 + _pwrite$NOCANCEL ___pwrite_nocancel 19 + _pwritev$NOCANCEL ___pwritev_nocancel 20 + _read$NOCANCEL ___read_nocancel 21 + _readv$NOCANCEL ___readv_nocancel 22 + _recvfrom$NOCANCEL ___recvfrom_nocancel 23 + _recvmsg$NOCANCEL ___recvmsg_nocancel 24 + _select$DARWIN_EXTSN ___select 25 + _select$DARWIN_EXTSN$NOCANCEL ___select_nocancel 26 + _sem_wait$NOCANCEL ___sem_wait_nocancel 27 + _sendmsg$NOCANCEL ___sendmsg_nocancel 28 + _sendto$NOCANCEL ___sendto_nocancel 29 + _stat ___stat64 30 + _statfs ___statfs64 31 + _waitid$NOCANCEL ___waitid_nocancel 32 + _write$NOCANCEL ___write_nocancel 33 + _writev$NOCANCEL ___writev_nocancel 34 + 35 + _accept ___accept 36 + _bind ___bind 37 + _connect ___connect 38 + _getattrlist ___getattrlist 39 + _getpeername ___getpeername 40 + _getsockname ___getsockname 41 + _lchown ___lchown 42 + _listen ___listen 43 + _mprotect ___mprotect 44 + _msgctl ___msgctl 45 + _msync ___msync 46 + _recvfrom ___recvfrom 47 + _recvmsg ___recvmsg 48 + _sendmsg ___sendmsg 49 + _sendto ___sendto 50 + _setattrlist ___setattrlist 51 + _setregid ___setregid 52 + _setreuid ___setreuid 53 + _shmctl ___shmctl 54 + _socketpair ___socketpair
+5
src/kernel/libsyscall/Platforms/MacOSX/i386/syscall.map
··· 38 38 _msgsys ___msgsys 39 39 _msync$NOCANCEL$UNIX2003 ___msync_nocancel 40 40 _msync$UNIX2003 ___msync 41 + _open ___open 41 42 _open$NOCANCEL$UNIX2003 ___open_nocancel 42 43 _open$UNIX2003 ___open 43 44 _openat$NOCANCEL ___openat_nocancel ··· 48 49 _pread ___pread_nocancel 49 50 _pread$NOCANCEL$UNIX2003 ___pread_nocancel 50 51 _pread$UNIX2003 ___pread 52 + _preadv ___preadv_nocancel 53 + _preadv$NOCANCEL ___preadv_nocancel 51 54 _pwrite ___pwrite_nocancel 52 55 _pwrite$NOCANCEL$UNIX2003 ___pwrite_nocancel 53 56 _pwrite$UNIX2003 ___pwrite 57 + _pwritev ___pwritev_nocancel 58 + _pwritev$NOCANCEL ___pwritev_nocancel 54 59 _read ___read_nocancel 55 60 _read$NOCANCEL$UNIX2003 ___read_nocancel 56 61 _read$UNIX2003 ___read
-100
src/kernel/libsyscall/Platforms/MacOSX/ppc/syscall.map
··· 1 - _accept$NOCANCEL$UNIX2003 ___accept_nocancel 2 - _accept$UNIX2003 ___accept 3 - _aio_suspend ___aio_suspend_nocancel 4 - _aio_suspend$NOCANCEL$UNIX2003 ___aio_suspend_nocancel 5 - _aio_suspend$UNIX2003 ___aio_suspend 6 - _bind$UNIX2003 ___bind 7 - _close ___close_nocancel 8 - _close$NOCANCEL$UNIX2003 ___close_nocancel 9 - _close$UNIX2003 ___close 10 - _chmod ___chmod 11 - _connect$NOCANCEL$UNIX2003 ___connect_nocancel 12 - _connect$UNIX2003 ___connect 13 - _fcntl ___fcntl_nocancel 14 - _fcntl$NOCANCEL$UNIX2003 ___fcntl_nocancel 15 - _fcntl$UNIX2003 ___fcntl 16 - _fstat$INODE64 ___fstat64 17 - _fstatat$INODE64 ___fstatat64 18 - _fstatfs$INODE64 ___fstatfs64 19 - _fsync ___fsync_nocancel 20 - _fsync$NOCANCEL$UNIX2003 ___fsync_nocancel 21 - _fsync$UNIX2003 ___fsync 22 - _getattrlist$UNIX2003 ___getattrlist 23 - _getfsstat$INODE64 ___getfsstat64 24 - _getpeername$UNIX2003 ___getpeername 25 - _getsockname$UNIX2003 ___getsockname 26 - _lchown$UNIX2003 ___lchown 27 - _listen$UNIX2003 ___listen 28 - _lstat$INODE64 ___lstat64 29 - _mmap ___mmap 30 - _mprotect$UNIX2003 ___mprotect 31 - _msgctl$UNIX2003 ___msgctl 32 - _msgrcv ___msgrcv_nocancel 33 - _msgrcv$NOCANCEL$UNIX2003 ___msgrcv_nocancel 34 - _msgrcv$UNIX2003 ___msgrcv 35 - _msgsnd ___msgsnd_nocancel 36 - _msgsnd$NOCANCEL$UNIX2003 ___msgsnd_nocancel 37 - _msgsnd$UNIX2003 ___msgsnd 38 - _msgsys ___msgsys 39 - _msync$NOCANCEL$UNIX2003 ___msync_nocancel 40 - _msync$UNIX2003 ___msync 41 - _open$NOCANCEL$UNIX2003 ___open_nocancel 42 - _open$UNIX2003 ___open 43 - _openat$NOCANCEL ___openat_nocancel 44 - _openat ___openat 45 - _poll ___poll_nocancel 46 - _poll$NOCANCEL$UNIX2003 ___poll_nocancel 47 - _poll$UNIX2003 ___poll 48 - _pread ___pread_nocancel 49 - _pread$NOCANCEL$UNIX2003 ___pread_nocancel 50 - _pread$UNIX2003 ___pread 51 - _pwrite ___pwrite_nocancel 52 - _pwrite$NOCANCEL$UNIX2003 ___pwrite_nocancel 53 - _pwrite$UNIX2003 ___pwrite 54 - _read ___read_nocancel 55 - _read$NOCANCEL$UNIX2003 ___read_nocancel 56 - _read$UNIX2003 ___read 57 - _readv ___readv_nocancel 58 - _readv$NOCANCEL$UNIX2003 ___readv_nocancel 59 - _readv$UNIX2003 ___readv 60 - _recvfrom$NOCANCEL$UNIX2003 ___recvfrom_nocancel 61 - _recvfrom$UNIX2003 ___recvfrom 62 - _recvmsg$NOCANCEL$UNIX2003 ___recvmsg_nocancel 63 - _recvmsg$UNIX2003 ___recvmsg 64 - _select$DARWIN_EXTSN ___select 65 - _select$DARWIN_EXTSN$NOCANCEL ___select_nocancel 66 - _sem_open ___sem_open 67 - _sem_wait ___sem_wait_nocancel 68 - _sem_wait$NOCANCEL$UNIX2003 ___sem_wait_nocancel 69 - _sem_wait$UNIX2003 ___sem_wait 70 - _semctl$UNIX2003 ___semctl 71 - _semsys ___semsys 72 - _sendmsg$NOCANCEL$UNIX2003 ___sendmsg_nocancel 73 - _sendmsg$UNIX2003 ___sendmsg 74 - _sendto$NOCANCEL$UNIX2003 ___sendto_nocancel 75 - _sendto$UNIX2003 ___sendto 76 - _setattrlist$UNIX2003 ___setattrlist 77 - _setpgrp ___setpgid 78 - _setregid$UNIX2003 ___setregid 79 - _setreuid$UNIX2003 ___setreuid 80 - _shmctl$UNIX2003 ___shmctl 81 - _shmsys ___shmsys 82 - _shm_open ___shm_open 83 - _socketpair$UNIX2003 ___socketpair 84 - _stat$INODE64 ___stat64 85 - _statfs$INODE64 ___statfs64 86 - _waitid ___waitid_nocancel 87 - _waitid$NOCANCEL$UNIX2003 ___waitid_nocancel 88 - _waitid$UNIX2003 ___waitid 89 - _write ___write_nocancel 90 - _write$NOCANCEL$UNIX2003 ___write_nocancel 91 - _write$UNIX2003 ___write 92 - _writev ___writev_nocancel 93 - _writev$NOCANCEL$UNIX2003 ___writev_nocancel 94 - _writev$UNIX2003 ___writev 95 - 96 - _ioctl ___ioctl 97 - _sigaltstack ___sigaltstack 98 - _fchmod ___fchmod 99 - _setrlimit ___setrlimit 100 - _getrlimit ___getrlimit
+2 -4
src/kernel/libsyscall/Platforms/MacOSX/x86_64/syscall.map
··· 12 12 _msgsnd$NOCANCEL ___msgsnd_nocancel 13 13 _msgsys ___msgsys 14 14 _msync$NOCANCEL ___msync_nocancel 15 - _open$NOCANCEL ___open_nocancel 16 - _openat$NOCANCEL ___openat_nocancel 17 15 _poll$NOCANCEL ___poll_nocancel 18 16 _pread$NOCANCEL ___pread_nocancel 19 17 _pwrite$NOCANCEL ___pwrite_nocancel 18 + _pwritev$NOCANCEL ___pwritev_nocancel 20 19 _read$NOCANCEL ___read_nocancel 21 20 _readv$NOCANCEL ___readv_nocancel 21 + _preadv$NOCANCEL ___preadv_nocancel 22 22 _recvfrom$NOCANCEL ___recvfrom_nocancel 23 23 _recvmsg$NOCANCEL ___recvmsg_nocancel 24 24 _select$DARWIN_EXTSN ___select ··· 44 44 _mprotect ___mprotect 45 45 _msgctl ___msgctl 46 46 _msync ___msync 47 - _open ___open 48 - _openat ___openat 49 47 _recvfrom ___recvfrom 50 48 _recvmsg ___recvmsg 51 49 _semctl ___semctl
+2 -4
src/kernel/libsyscall/Platforms/iPhoneOS/arm/syscall.map
··· 23 23 _msgsnd$NOCANCEL ___msgsnd_nocancel 24 24 _msync$NOCANCEL ___msync_nocancel 25 25 _msgsys ___msgsys 26 - _open$NOCANCEL ___open_nocancel 27 - _openat$NOCANCEL ___openat_nocancel 28 26 _poll$NOCANCEL ___poll_nocancel 29 27 _pread$NOCANCEL ___pread_nocancel 28 + _preadv$NOCANCEL ___preadv_nocancel 30 29 _pwrite$NOCANCEL ___pwrite_nocancel 30 + _pwritev$NOCANCEL ___pwritev_nocancel 31 31 _read$NOCANCEL ___read_nocancel 32 32 _readv$NOCANCEL ___readv_nocancel 33 33 _recvfrom$NOCANCEL ___recvfrom_nocancel ··· 65 65 _mprotect ___mprotect 66 66 _setregid ___setregid 67 67 _setreuid ___setreuid 68 - _open ___open 69 - _openat ___openat 70 68 _connect ___connect 71 69 _msync ___msync 72 70 _sem_open ___sem_open
+2
src/kernel/libsyscall/Platforms/iPhoneOS/arm64/syscall.map
··· 24 24 _msync$NOCANCEL ___msync_nocancel 25 25 _poll$NOCANCEL ___poll_nocancel 26 26 _pread$NOCANCEL ___pread_nocancel 27 + _preadv$NOCANCEL ___preadv_nocancel 27 28 _pwrite$NOCANCEL ___pwrite_nocancel 29 + _pwritev$NOCANCEL ___pwritev_nocancel 28 30 _read$NOCANCEL ___read_nocancel 29 31 _readv$NOCANCEL ___readv_nocancel 30 32 _recvfrom$NOCANCEL ___recvfrom_nocancel
-521
src/kernel/libsyscall/bsdsyscalls/SYS.h
··· 1 - /* 2 - * Copyright (c) 1999-2011 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. 29 - * 30 - * File: SYS.h 31 - * 32 - * Definition of the user side of the UNIX system call interface 33 - * for M98K. 34 - * 35 - * Errors are flagged by the location of the trap return (ie., which 36 - * instruction is executed upon rfi): 37 - * 38 - * SC PC + 4: Error (typically branch to cerror()) 39 - * SC PC + 8: Success 40 - * 41 - * HISTORY 42 - * 18-Nov-92 Ben Fathi (benf@next.com) 43 - * Ported to m98k. 44 - * 45 - * 9-Jan-92 Peter King (king@next.com) 46 - * Created. 47 - */ 48 - 49 - #include <sys/syscall.h> 50 - 51 - #if defined(__i386__) 52 - 53 - #include <architecture/i386/asm_help.h> 54 - #include <mach/i386/syscall_sw.h> 55 - 56 - /* 57 - * We have two entry points. int's is used for syscalls which need to preserve 58 - * %ecx across the call, or return a 64-bit value in %eax:%edx. sysenter is used 59 - * for the majority of syscalls which just return a value in %eax. 60 - */ 61 - 62 - #ifdef DARLING 63 - #define UNIX_SYSCALL_SYSENTER call __darling_bsd_syscall 64 - #else 65 - #define UNIX_SYSCALL_SYSENTER call __sysenter_trap 66 - #endif 67 - #define UNIX_SYSCALL(name, nargs) \ 68 - .globl tramp_cerror ;\ 69 - LEAF(_##name, 0) ;\ 70 - movl $ SYS_##name, %eax ;\ 71 - UNIX_SYSCALL_SYSENTER ;\ 72 - jnb 2f ;\ 73 - BRANCH_EXTERN(tramp_cerror) ;\ 74 - 2: 75 - 76 - #define UNIX_SYSCALL_INT(name, nargs) \ 77 - .globl tramp_cerror ;\ 78 - LEAF(_##name, 0) ;\ 79 - movl $ SYS_##name, %eax ;\ 80 - UNIX_SYSCALL_TRAP ;\ 81 - jnb 2f ;\ 82 - BRANCH_EXTERN(tramp_cerror) ;\ 83 - 2: 84 - 85 - #if defined(__SYSCALL_32BIT_ARG_BYTES) && ((__SYSCALL_32BIT_ARG_BYTES >= 4) && (__SYSCALL_32BIT_ARG_BYTES <= 20)) 86 - #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 87 - movl $(SYS_##name | (__SYSCALL_32BIT_ARG_BYTES << I386_SYSCALL_ARG_BYTES_SHIFT)), %eax ;\ 88 - UNIX_SYSCALL_SYSENTER ;\ 89 - jnb 2f ;\ 90 - BRANCH_EXTERN(tramp_##cerror) ;\ 91 - 2: 92 - #else /* __SYSCALL_32BIT_ARG_BYTES < 4 || > 20 */ 93 - #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 94 - movl $ SYS_##name, %eax ;\ 95 - UNIX_SYSCALL_SYSENTER ;\ 96 - jnb 2f ;\ 97 - BRANCH_EXTERN(tramp_##cerror) ;\ 98 - 2: 99 - #endif 100 - 101 - #define UNIX_SYSCALL_INT_NONAME(name, nargs) \ 102 - .globl tramp_cerror_nocancel ;\ 103 - movl $ SYS_##name, %eax ;\ 104 - UNIX_SYSCALL_TRAP ;\ 105 - jnb 2f ;\ 106 - BRANCH_EXTERN(tramp_cerror_nocancel) ;\ 107 - 2: 108 - 109 - #define PSEUDO(pseudo, name, nargs, cerror) \ 110 - LEAF(pseudo, 0) ;\ 111 - UNIX_SYSCALL_NONAME(name, nargs, cerror) 112 - 113 - #define PSEUDO_INT(pseudo, name, nargs) \ 114 - LEAF(pseudo, 0) ;\ 115 - UNIX_SYSCALL_INT_NONAME(name, nargs) 116 - 117 - #define __SYSCALL2(pseudo, name, nargs, cerror) \ 118 - PSEUDO(pseudo, name, nargs, cerror) ;\ 119 - ret 120 - 121 - #define __SYSCALL(pseudo, name, nargs) \ 122 - PSEUDO(pseudo, name, nargs, cerror) ;\ 123 - ret 124 - 125 - #define __SYSCALL_INT(pseudo, name, nargs) \ 126 - PSEUDO_INT(pseudo, name, nargs) ;\ 127 - ret 128 - 129 - #elif defined(__x86_64__) 130 - 131 - #include <architecture/i386/asm_help.h> 132 - #include <mach/i386/syscall_sw.h> 133 - 134 - #ifdef DARLING 135 - #define UNIX_SYSCALL(name, nargs) \ 136 - .globl cerror ;\ 137 - LEAF(_#name, 0) ;\ 138 - movl $ SYS_##name, %eax ;\ 139 - call __darling_bsd_syscall ;\ 140 - cmpq $-4095, %rax ;\ 141 - jb 2f ;\ 142 - movq %rax, %rdi ;\ 143 - negq %rdi ;\ 144 - BRANCH_EXTERN(_cerror) ;\ 145 - 2: 146 - 147 - #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 148 - .globl cerror ;\ 149 - movl $ SYS_##name, %eax ;\ 150 - call __darling_bsd_syscall ;\ 151 - cmpq $-4095, %rax ;\ 152 - jb 2f ;\ 153 - movq %rax, %rdi ;\ 154 - negq %rdi ;\ 155 - BRANCH_EXTERN(_##cerror) ;\ 156 - 2: 157 - #else 158 - #define UNIX_SYSCALL_SYSCALL \ 159 - movq %rcx, %r10 ;\ 160 - syscall 161 - 162 - #define UNIX_SYSCALL(name, nargs) \ 163 - .globl cerror ;\ 164 - LEAF(_##name, 0) ;\ 165 - movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ 166 - UNIX_SYSCALL_SYSCALL ;\ 167 - jnb 2f ;\ 168 - movq %rax, %rdi ;\ 169 - BRANCH_EXTERN(_cerror) ;\ 170 - 2: 171 - 172 - #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 173 - .globl cerror ;\ 174 - movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ 175 - UNIX_SYSCALL_SYSCALL ;\ 176 - jnb 2f ;\ 177 - movq %rax, %rdi ;\ 178 - BRANCH_EXTERN(_##cerror) ;\ 179 - 2: 180 - #endif 181 - 182 - #define PSEUDO(pseudo, name, nargs, cerror) \ 183 - LEAF(pseudo, 0) ;\ 184 - UNIX_SYSCALL_NONAME(name, nargs, cerror) 185 - 186 - #define __SYSCALL2(pseudo, name, nargs, cerror) \ 187 - PSEUDO(pseudo, name, nargs, cerror) ;\ 188 - ret 189 - 190 - #define __SYSCALL(pseudo, name, nargs) \ 191 - PSEUDO(pseudo, name, nargs, cerror) ;\ 192 - ret 193 - 194 - #elif defined(__arm__) 195 - 196 - #include <architecture/arm/asm_help.h> 197 - #include <mach/arm/syscall_sw.h> 198 - 199 - /* 200 - * ARM system call interface: 201 - * 202 - * swi 0x80 203 - * args: r0-r6 204 - * return code: r0 205 - * on error, carry bit is set in the psr, otherwise carry bit is cleared. 206 - */ 207 - 208 - /* 209 - * Macros. 210 - */ 211 - 212 - /* 213 - * until we update the architecture project, these live here 214 - */ 215 - 216 - #if defined(__DYNAMIC__) 217 - #define MI_GET_ADDRESS(reg,var) \ 218 - ldr reg, 4f ;\ 219 - 3: ldr reg, [pc, reg] ;\ 220 - b 5f ;\ 221 - 4: .long 6f - (3b + 8) ;\ 222 - 5: ;\ 223 - .non_lazy_symbol_pointer ;\ 224 - 6: ;\ 225 - .indirect_symbol var ;\ 226 - .long 0 ;\ 227 - .text ;\ 228 - .align 2 229 - #else 230 - #define MI_GET_ADDRESS(reg,var) \ 231 - ldr reg, 3f ;\ 232 - b 4f ;\ 233 - 3: .long var ;\ 234 - 4: 235 - #endif 236 - 237 - #if defined(__DYNAMIC__) 238 - #define MI_BRANCH_EXTERNAL(var) \ 239 - .globl var ;\ 240 - MI_GET_ADDRESS(ip, var) ;\ 241 - bx ip 242 - #else 243 - #define MI_BRANCH_EXTERNAL(var) ;\ 244 - .globl var ;\ 245 - b var 246 - #endif 247 - 248 - #if defined(__DYNAMIC__) 249 - #define MI_CALL_EXTERNAL(var) \ 250 - .globl var ;\ 251 - MI_GET_ADDRESS(ip,var) ;\ 252 - blx ip 253 - #else 254 - #define MI_CALL_EXTERNAL(var) \ 255 - .globl var ;\ 256 - bl var 257 - #endif 258 - 259 - #define MI_ENTRY_POINT(name) \ 260 - .text ;\ 261 - .align 2 ;\ 262 - .globl name ;\ 263 - name: 264 - 265 - /* load the syscall number into r12 and trap */ 266 - #define DO_SYSCALL(num) \ 267 - .if (((num) & 0xff) == (num)) ;\ 268 - mov r12, #(num) ;\ 269 - .elseif (((num) & 0x3fc) == (num)) ;\ 270 - mov r12, #(num) ;\ 271 - .else ;\ 272 - mov r12, #((num) & 0xffffff00) /* top half of the syscall number */ ;\ 273 - orr r12, r12, #((num) & 0xff) /* bottom half */ ;\ 274 - .endif ;\ 275 - swi #SWI_SYSCALL 276 - 277 - /* simple syscalls (0 to 4 args) */ 278 - #define SYSCALL_0to4(name, cerror) \ 279 - MI_ENTRY_POINT(_##name) ;\ 280 - DO_SYSCALL(SYS_##name) ;\ 281 - bxcc lr /* return if carry is clear (no error) */ ; \ 282 - 1: MI_BRANCH_EXTERNAL(_##cerror) 283 - 284 - /* syscalls with 5 args is different, because of the single arg register load */ 285 - #define SYSCALL_5(name, cerror) \ 286 - MI_ENTRY_POINT(_##name) ;\ 287 - mov ip, sp /* save a pointer to the args */ ; \ 288 - stmfd sp!, { r4-r5 } /* save r4-r5 */ ;\ 289 - ldr r4, [ip] /* load 5th arg */ ; \ 290 - DO_SYSCALL(SYS_##name) ;\ 291 - ldmfd sp!, { r4-r5 } /* restore r4-r5 */ ; \ 292 - bxcc lr /* return if carry is clear (no error) */ ; \ 293 - 1: MI_BRANCH_EXTERNAL(_##cerror) 294 - 295 - /* syscalls with 6 to 12 args. kernel may have to read from stack */ 296 - #define SYSCALL_6to12(name, save_regs, arg_regs, cerror) \ 297 - MI_ENTRY_POINT(_##name) ;\ 298 - mov ip, sp /* save a pointer to the args */ ; \ 299 - stmfd sp!, { save_regs } /* callee saved regs */ ;\ 300 - ldmia ip, { arg_regs } /* load arg regs */ ; \ 301 - DO_SYSCALL(SYS_##name) ;\ 302 - ldmfd sp!, { save_regs } /* restore callee saved regs */ ; \ 303 - bxcc lr /* return if carry is clear (no error) */ ; \ 304 - 1: MI_BRANCH_EXTERNAL(_##cerror) 305 - 306 - #define COMMA , 307 - 308 - #if __BIGGEST_ALIGNMENT__ > 4 309 - 310 - /* For the armv7k ABI, the alignment requirements may add padding. So we 311 - * let the kernel figure it out and push extra on the stack to avoid un-needed 312 - * copy-ins */ 313 - 314 - /* We'll also use r8 for moving arguments */ 315 - 316 - #define SYSCALL_0(name) SYSCALL_0to4(name) 317 - #define SYSCALL_1(name) SYSCALL_0to4(name) 318 - #define SYSCALL_2(name) SYSCALL_0to4(name) 319 - #define SYSCALL_3(name) SYSCALL_0to4(name) 320 - #define SYSCALL_4(name) SYSCALL_6to12(name, r4-r5, r4-r5) 321 - #undef SYSCALL_5 322 - #define SYSCALL_5(name) SYSCALL_6to12(name, r4-r5, r4-r5) 323 - #define SYSCALL_6(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) 324 - #define SYSCALL_7(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) 325 - #define SYSCALL_8(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) 326 - #define SYSCALL_12(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8) 327 - 328 - #else // !(__BIGGEST_ALIGNMENT__ > 4) (the normal arm32 ABI case) 329 - 330 - #define SYSCALL_0(name) SYSCALL_0to4(name) 331 - #define SYSCALL_1(name) SYSCALL_0to4(name) 332 - #define SYSCALL_2(name) SYSCALL_0to4(name) 333 - #define SYSCALL_3(name) SYSCALL_0to4(name) 334 - #define SYSCALL_4(name) SYSCALL_0to4(name) 335 - /* SYSCALL_5 declared above */ 336 - #define SYSCALL_6(name) SYSCALL_6to12(name, r4-r5, r4-r5) 337 - #define SYSCALL_7(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6) 338 - #define SYSCALL_8(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6) /* 8th on stack */ 339 - #define SYSCALL_12(name) SYSCALL_6to12(name, r4-r6 COMMA r8, r4-r6) /* 8th-12th on stack */ 340 - 341 - #endif // __BIGGEST_ALIGNMENT__ > 4 342 - 343 - /* select the appropriate syscall code, based on the number of arguments */ 344 - #ifndef __SYSCALL_32BIT_ARG_BYTES 345 - #define SYSCALL(name, nargs, cerror) SYSCALL_##nargs(name, cerror) 346 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_##nargs(name, cerror) 347 - #else 348 - #if __SYSCALL_32BIT_ARG_BYTES < 20 349 - #define SYSCALL(name, nargs, cerror) SYSCALL_0to4(name, cerror) 350 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_0to4(name, cerror) 351 - #elif __SYSCALL_32BIT_ARG_BYTES == 20 352 - #define SYSCALL(name, nargs, cerror) SYSCALL_5(name, cerror) 353 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_5(name, cerror) 354 - #elif __SYSCALL_32BIT_ARG_BYTES == 24 355 - #define SYSCALL(name, nargs, cerror) SYSCALL_6(name, cerror) 356 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_6(name, cerror) 357 - #elif __SYSCALL_32BIT_ARG_BYTES == 28 358 - #define SYSCALL(name, nargs, cerror) SYSCALL_7(name, cerror) 359 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_7(name, cerror) 360 - #elif __SYSCALL_32BIT_ARG_BYTES == 32 361 - #define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) 362 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) 363 - #elif __SYSCALL_32BIT_ARG_BYTES == 36 364 - #define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) 365 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) 366 - #elif __SYSCALL_32BIT_ARG_BYTES == 44 367 - #define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) 368 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) 369 - #elif __SYSCALL_32BIT_ARG_BYTES == 48 370 - #define SYSCALL(name, nargs, cerror) SYSCALL_12(name, cerror) 371 - #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_12(name, cerror) 372 - #endif 373 - #endif 374 - 375 - #define SYSCALL_NONAME_0to4(name, cerror) \ 376 - DO_SYSCALL(SYS_##name) ;\ 377 - bcc 1f /* branch if carry bit is clear (no error) */ ; \ 378 - MI_BRANCH_EXTERNAL(_##cerror) /* call cerror */ ; \ 379 - 1: 380 - 381 - #define SYSCALL_NONAME_5(name, cerror) \ 382 - mov ip, sp /* save a pointer to the args */ ; \ 383 - stmfd sp!, { r4-r5 } /* save r4-r5 */ ;\ 384 - ldr r4, [ip] /* load 5th arg */ ; \ 385 - DO_SYSCALL(SYS_##name) ;\ 386 - ldmfd sp!, { r4-r5 } /* restore r4-r7 */ ; \ 387 - bcc 1f /* branch if carry bit is clear (no error) */ ; \ 388 - MI_BRANCH_EXTERNAL(_##cerror) /* call cerror */ ; \ 389 - 1: 390 - 391 - #define SYSCALL_NONAME_6to12(name, save_regs, arg_regs, cerror) \ 392 - mov ip, sp /* save a pointer to the args */ ; \ 393 - stmfd sp!, { save_regs } /* callee save regs */ ;\ 394 - ldmia ip, { arg_regs } /* load arguments */ ; \ 395 - DO_SYSCALL(SYS_##name) ;\ 396 - ldmfd sp!, { save_regs } /* restore callee saved regs */ ; \ 397 - bcc 1f /* branch if carry bit is clear (no error) */ ; \ 398 - MI_BRANCH_EXTERNAL(_##cerror) /* call cerror */ ; \ 399 - 1: 400 - 401 - 402 - #if __BIGGEST_ALIGNMENT__ > 4 403 - 404 - /* For the armv7k ABI, the alignment requirements may add padding. So we 405 - * let the kernel figure it out and push extra on the stack to avoid un-needed 406 - * copy-ins. We are relying on arguments that aren't in registers starting 407 - * 32 bytes from sp. We also use r8 like in the mach case. */ 408 - 409 - #define SYSCALL_NONAME_0(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 410 - #define SYSCALL_NONAME_1(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 411 - #define SYSCALL_NONAME_2(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 412 - #define SYSCALL_NONAME_3(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 413 - #define SYSCALL_NONAME_4(name, cerror) SYSCALL_NONAME_6to12(name, r4-r5, r4-r5, cerror) 414 - #undef SYSCALL_NONAME_5 415 - #define SYSCALL_NONAME_5(name, cerror) SYSCALL_NONAME_6to12(name, r4-r5, r4-r5, cerror) 416 - #define SYSCALL_NONAME_6(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) 417 - #define SYSCALL_NONAME_7(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) 418 - #define SYSCALL_NONAME_8(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) 419 - #define SYSCALL_NONAME_12(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6 COMMA r8, cerror) 420 - 421 - #else // !(__BIGGEST_ALIGNMENT__ > 4) (the normal arm32 ABI case) 422 - 423 - #define SYSCALL_NONAME_0(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 424 - #define SYSCALL_NONAME_1(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 425 - #define SYSCALL_NONAME_2(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 426 - #define SYSCALL_NONAME_3(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 427 - #define SYSCALL_NONAME_4(name, cerror) SYSCALL_NONAME_0to4(name, cerror) 428 - /* SYSCALL_NONAME_5 declared above */ 429 - #define SYSCALL_NONAME_6(name, cerror) SYSCALL_NONAME_6to12(name, r4-r5, r4-r5, cerror) 430 - #define SYSCALL_NONAME_7(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6, cerror) 431 - #define SYSCALL_NONAME_8(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6, cerror) 432 - #define SYSCALL_NONAME_12(name, cerror) SYSCALL_NONAME_6to12(name, r4-r6 COMMA r8, r4-r6, cerror) 433 - 434 - #endif // __BIGGEST_ALIGNMENT__ > 4 435 - 436 - #define PSEUDO(pseudo, name, nargs, cerror) \ 437 - .globl pseudo ;\ 438 - .text ;\ 439 - .align 2 ;\ 440 - pseudo: ;\ 441 - SYSCALL_NONAME(name, nargs, cerror) 442 - 443 - #define __SYSCALL2(pseudo, name, nargs, cerror) \ 444 - PSEUDO(pseudo, name, nargs, cerror) ;\ 445 - bx lr 446 - 447 - #define __SYSCALL(pseudo, name, nargs) \ 448 - PSEUDO(pseudo, name, nargs, cerror) ;\ 449 - bx lr 450 - 451 - #elif defined(__arm64__) 452 - 453 - #include <mach/arm/syscall_sw.h> 454 - #include <mach/arm/vm_param.h> 455 - #include <mach/arm64/asm.h> 456 - 457 - #if defined(__arm64__) && !defined(__LP64__) 458 - #define ZERO_EXTEND(argnum) uxtw x ## argnum, w ## argnum 459 - #else 460 - #define ZERO_EXTEND(argnum) 461 - #endif 462 - 463 - #if defined(__arm64__) && !defined(__LP64__) 464 - #define SIGN_EXTEND(argnum) sxtw x ## argnum, w ## argnum 465 - #else 466 - #define SIGN_EXTEND(argnum) 467 - #endif 468 - 469 - /* 470 - * ARM64 system call interface: 471 - * 472 - * TBD 473 - */ 474 - 475 - #define DO_SYSCALL(num, cerror) \ 476 - mov x16, #(num) %%\ 477 - svc #SWI_SYSCALL %%\ 478 - b.cc 2f %%\ 479 - PUSH_FRAME %%\ 480 - bl _##cerror %%\ 481 - POP_FRAME %%\ 482 - ret %%\ 483 - 2: 484 - 485 - #define MI_GET_ADDRESS(reg,var) \ 486 - adrp reg, var@page %%\ 487 - add reg, reg, var@pageoff %% 488 - 489 - #define MI_CALL_EXTERNAL(sym) \ 490 - .globl sym %% \ 491 - bl sym 492 - 493 - #define SYSCALL_NONAME(name, nargs, cerror) \ 494 - DO_SYSCALL(SYS_##name, cerror) %% \ 495 - 1: 496 - 497 - #define MI_ENTRY_POINT(name) \ 498 - .text %% \ 499 - .align 2 %% \ 500 - .globl name %% \ 501 - name: 502 - 503 - #define PSEUDO(pseudo, name, nargs, cerror) \ 504 - .text %% \ 505 - .align 2 %% \ 506 - .globl pseudo %% \ 507 - pseudo: %% \ 508 - SYSCALL_NONAME(name, nargs, cerror) 509 - 510 - #define __SYSCALL(pseudo, name, nargs) \ 511 - PSEUDO(pseudo, name, nargs, cerror) %% \ 512 - ret 513 - 514 - #define __SYSCALL2(pseudo, name, nargs, cerror) \ 515 - PSEUDO(pseudo, name, nargs, cerror) %% \ 516 - ret 517 - 518 - #else 519 - #error Unsupported architecture 520 - #endif 521 -
-18
src/kernel/libsyscall/bsdsyscalls/_____old_semwait_signal_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___old_semwait_signal_nocancel 5 - #error "SYS___old_semwait_signal_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_____old_semwait_signal_nocancel) 10 - SYSCALL_NONAME(__old_semwait_signal_nocancel, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_____old_semwait_signal_nocancel, __old_semwait_signal_nocancel, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_____sigwait_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___sigwait_nocancel 5 - #error "SYS___sigwait_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_____sigwait_nocancel) 10 - SYSCALL_NONAME(__sigwait_nocancel, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_____sigwait_nocancel, __sigwait_nocancel, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___abort_with_payload.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 32 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_abort_with_payload 5 - #error "SYS_abort_with_payload not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___abort_with_payload) 10 - SYSCALL_NONAME(abort_with_payload, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___abort_with_payload, abort_with_payload, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___accept.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_accept 5 - #error "SYS_accept not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___accept) 10 - SYSCALL_NONAME(accept, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___accept, accept, 3, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _accept$UNIX2003 21 - .set _accept$UNIX2003, ___accept 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _accept 26 - .set _accept, ___accept 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _accept$UNIX2003 31 - .set _accept$UNIX2003, ___accept 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _accept 36 - .set _accept, ___accept 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _accept 41 - .set _accept, ___accept 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___accept_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_accept_nocancel 5 - #error "SYS_accept_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___accept_nocancel) 10 - SYSCALL_NONAME(accept_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___accept_nocancel, accept_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _accept$NOCANCEL$UNIX2003 21 - .set _accept$NOCANCEL$UNIX2003, ___accept_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _accept$NOCANCEL 26 - .set _accept$NOCANCEL, ___accept_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _accept$NOCANCEL$UNIX2003 31 - .set _accept$NOCANCEL$UNIX2003, ___accept_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _accept$NOCANCEL 36 - .set _accept$NOCANCEL, ___accept_nocancel 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _accept$NOCANCEL 41 - .set _accept$NOCANCEL, ___accept_nocancel 42 - #endif 43 -
-44
src/kernel/libsyscall/bsdsyscalls/___access_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_access_extended 5 - #error "SYS_access_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___access_extended) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(access_extended, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___access_extended, access_extended, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _accessx_np 22 - .set _accessx_np, ___access_extended 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _accessx_np 27 - .set _accessx_np, ___access_extended 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _accessx_np 32 - .set _accessx_np, ___access_extended 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _accessx_np 37 - .set _accessx_np, ___access_extended 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _accessx_np 42 - .set _accessx_np, ___access_extended 43 - #endif 44 -
-47
src/kernel/libsyscall/bsdsyscalls/___aio_suspend_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_suspend_nocancel 5 - #error "SYS_aio_suspend_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___aio_suspend_nocancel) 10 - SYSCALL_NONAME(aio_suspend_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___aio_suspend_nocancel, aio_suspend_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _aio_suspend 21 - .set _aio_suspend, ___aio_suspend_nocancel 22 - .globl _aio_suspend$NOCANCEL$UNIX2003 23 - .set _aio_suspend$NOCANCEL$UNIX2003, ___aio_suspend_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _aio_suspend$NOCANCEL 28 - .set _aio_suspend$NOCANCEL, ___aio_suspend_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _aio_suspend 33 - .set _aio_suspend, ___aio_suspend_nocancel 34 - .globl _aio_suspend$NOCANCEL$UNIX2003 35 - .set _aio_suspend$NOCANCEL$UNIX2003, ___aio_suspend_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _aio_suspend$NOCANCEL 40 - .set _aio_suspend$NOCANCEL, ___aio_suspend_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _aio_suspend$NOCANCEL 45 - .set _aio_suspend$NOCANCEL, ___aio_suspend_nocancel 46 - #endif 47 -
-43
src/kernel/libsyscall/bsdsyscalls/___bind.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_bind 5 - #error "SYS_bind not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___bind) 10 - SYSCALL_NONAME(bind, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___bind, bind, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _bind$UNIX2003 21 - .set _bind$UNIX2003, ___bind 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _bind 26 - .set _bind, ___bind 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _bind$UNIX2003 31 - .set _bind$UNIX2003, ___bind 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _bind 36 - .set _bind, ___bind 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _bind 41 - .set _bind, ___bind 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___bsdthread_create.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_bsdthread_create 5 - #error "SYS_bsdthread_create not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___bsdthread_create) 10 - SYSCALL_NONAME(bsdthread_create, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___bsdthread_create, bsdthread_create, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___bsdthread_ctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_bsdthread_ctl 5 - #error "SYS_bsdthread_ctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___bsdthread_ctl) 10 - SYSCALL_NONAME(bsdthread_ctl, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___bsdthread_ctl, bsdthread_ctl, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___bsdthread_register.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_bsdthread_register 5 - #error "SYS_bsdthread_register not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___bsdthread_register) 10 - SYSCALL_NONAME(bsdthread_register, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___bsdthread_register, bsdthread_register, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/___bsdthread_terminate.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_bsdthread_terminate 5 - #error "SYS_bsdthread_terminate not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___bsdthread_terminate) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(bsdthread_terminate, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___bsdthread_terminate, bsdthread_terminate, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-28
src/kernel/libsyscall/bsdsyscalls/___chmod.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_chmod 5 - #error "SYS_chmod not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___chmod) 10 - SYSCALL_NONAME(chmod, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___chmod, chmod, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _chmod 21 - .set _chmod, ___chmod 22 - #endif 23 - 24 - #if defined(__ppc__) 25 - .globl _chmod 26 - .set _chmod, ___chmod 27 - #endif 28 -
-18
src/kernel/libsyscall/bsdsyscalls/___chmod_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_chmod_extended 5 - #error "SYS_chmod_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___chmod_extended) 10 - SYSCALL_NONAME(chmod_extended, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___chmod_extended, chmod_extended, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-47
src/kernel/libsyscall/bsdsyscalls/___close_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_close_nocancel 5 - #error "SYS_close_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___close_nocancel) 10 - SYSCALL_NONAME(close_nocancel, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___close_nocancel, close_nocancel, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _close 21 - .set _close, ___close_nocancel 22 - .globl _close$NOCANCEL$UNIX2003 23 - .set _close$NOCANCEL$UNIX2003, ___close_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _close$NOCANCEL 28 - .set _close$NOCANCEL, ___close_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _close 33 - .set _close, ___close_nocancel 34 - .globl _close$NOCANCEL$UNIX2003 35 - .set _close$NOCANCEL$UNIX2003, ___close_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _close$NOCANCEL 40 - .set _close$NOCANCEL, ___close_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _close$NOCANCEL 45 - .set _close$NOCANCEL, ___close_nocancel 46 - #endif 47 -
-18
src/kernel/libsyscall/bsdsyscalls/___coalition.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_coalition 5 - #error "SYS_coalition not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___coalition) 10 - SYSCALL_NONAME(coalition, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___coalition, coalition, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___coalition_info.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_coalition_info 5 - #error "SYS_coalition_info not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___coalition_info) 10 - SYSCALL_NONAME(coalition_info, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___coalition_info, coalition_info, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___coalition_ledger.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_coalition_ledger 5 - #error "SYS_coalition_ledger not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___coalition_ledger) 10 - SYSCALL_NONAME(coalition_ledger, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___coalition_ledger, coalition_ledger, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___connect.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_connect 5 - #error "SYS_connect not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___connect) 10 - SYSCALL_NONAME(connect, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___connect, connect, 3, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _connect$UNIX2003 21 - .set _connect$UNIX2003, ___connect 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _connect 26 - .set _connect, ___connect 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _connect$UNIX2003 31 - .set _connect$UNIX2003, ___connect 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _connect 36 - .set _connect, ___connect 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _connect 41 - .set _connect, ___connect 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___connect_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_connect_nocancel 5 - #error "SYS_connect_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___connect_nocancel) 10 - SYSCALL_NONAME(connect_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___connect_nocancel, connect_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _connect$NOCANCEL$UNIX2003 21 - .set _connect$NOCANCEL$UNIX2003, ___connect_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _connect$NOCANCEL 26 - .set _connect$NOCANCEL, ___connect_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _connect$NOCANCEL$UNIX2003 31 - .set _connect$NOCANCEL$UNIX2003, ___connect_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _connect$NOCANCEL 36 - .set _connect$NOCANCEL, ___connect_nocancel 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _connect$NOCANCEL 41 - .set _connect$NOCANCEL, ___connect_nocancel 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___copyfile.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_copyfile 5 - #error "SYS_copyfile not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___copyfile) 10 - SYSCALL_NONAME(copyfile, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___copyfile, copyfile, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___csrctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_csrctl 5 - #error "SYS_csrctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___csrctl) 10 - SYSCALL_NONAME(csrctl, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___csrctl, csrctl, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___delete.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_delete 5 - #error "SYS_delete not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___delete) 10 - SYSCALL_NONAME(delete, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___delete, delete, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___disable_threadsignal.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___disable_threadsignal 5 - #error "SYS___disable_threadsignal not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___disable_threadsignal) 10 - SYSCALL_NONAME(__disable_threadsignal, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___disable_threadsignal, __disable_threadsignal, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___exit.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_exit 5 - #error "SYS_exit not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___exit) 10 - SYSCALL_NONAME(exit, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___exit, exit, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl __exit 21 - .set __exit, ___exit 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl __exit 26 - .set __exit, ___exit 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl __exit 31 - .set __exit, ___exit 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl __exit 36 - .set __exit, ___exit 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl __exit 41 - .set __exit, ___exit 42 - #endif 43 -
-28
src/kernel/libsyscall/bsdsyscalls/___fchmod.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchmod 5 - #error "SYS_fchmod not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fchmod) 10 - SYSCALL_NONAME(fchmod, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___fchmod, fchmod, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _fchmod 21 - .set _fchmod, ___fchmod 22 - #endif 23 - 24 - #if defined(__ppc__) 25 - .globl _fchmod 26 - .set _fchmod, ___fchmod 27 - #endif 28 -
-18
src/kernel/libsyscall/bsdsyscalls/___fchmod_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchmod_extended 5 - #error "SYS_fchmod_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fchmod_extended) 10 - SYSCALL_NONAME(fchmod_extended, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___fchmod_extended, fchmod_extended, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-29
src/kernel/libsyscall/bsdsyscalls/___fcntl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fcntl 5 - #error "SYS_fcntl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fcntl) 10 - SIGN_EXTEND(2) 11 - SYSCALL_NONAME(fcntl, 3, cerror) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___fcntl, fcntl, 3, cerror) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _fcntl$UNIX2003 22 - .set _fcntl$UNIX2003, ___fcntl 23 - #endif 24 - 25 - #if defined(__ppc__) 26 - .globl _fcntl$UNIX2003 27 - .set _fcntl$UNIX2003, ___fcntl 28 - #endif 29 -
-33
src/kernel/libsyscall/bsdsyscalls/___fcntl_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fcntl_nocancel 5 - #error "SYS_fcntl_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fcntl_nocancel) 10 - SIGN_EXTEND(2) 11 - SYSCALL_NONAME(fcntl_nocancel, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___fcntl_nocancel, fcntl_nocancel, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _fcntl 22 - .set _fcntl, ___fcntl_nocancel 23 - .globl _fcntl$NOCANCEL$UNIX2003 24 - .set _fcntl$NOCANCEL$UNIX2003, ___fcntl_nocancel 25 - #endif 26 - 27 - #if defined(__ppc__) 28 - .globl _fcntl 29 - .set _fcntl, ___fcntl_nocancel 30 - .globl _fcntl$NOCANCEL$UNIX2003 31 - .set _fcntl$NOCANCEL$UNIX2003, ___fcntl_nocancel 32 - #endif 33 -
-177
src/kernel/libsyscall/bsdsyscalls/___fork.S
··· 1 - /* 2 - * Copyright (c) 1999-2010 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. 29 - * 30 - * File: libc/ppc/sys/fork.s 31 - * 32 - * HISTORY 33 - * 18-Nov-92 Ben Fathi (benf@next.com) 34 - * Created from M88K sources 35 - * 36 - * 11-Jan-92 Peter King (king@next.com) 37 - * Created from M68K sources 38 - */ 39 - 40 - /* 41 - * All of the asm stubs in this file have been adjusted so the pre/post 42 - * fork handlers and dyld fixup are done in C inside Libc. As such, Libc 43 - * expects the __fork asm to fix up the return code to be -1, 0 or pid 44 - * and errno if needed. 45 - */ 46 - 47 - #include "SYS.h" 48 - 49 - #if defined(__i386__) 50 - 51 - LEAF(___fork, 0) 52 - subl $28, %esp // Align the stack, with 16 bytes of extra padding that we'll need 53 - 54 - movl $ SYS_fork,%eax; // code for fork -> eax 55 - #ifdef DARLING 56 - call __darling_bsd_syscall 57 - cmpl $0, %eax 58 - jnb L1 59 - #else 60 - UNIX_SYSCALL_TRAP // do the system call 61 - jnc L1 // jump if CF==0 62 - #endif 63 - 64 - CALL_EXTERN(tramp_cerror) 65 - movl $-1,%eax 66 - addl $28, %esp // restore the stack 67 - ret 68 - 69 - L1: 70 - orl %edx,%edx // CF=OF=0, ZF set if zero result 71 - jz L2 // parent, since r1 == 0 in parent, 1 in child 72 - 73 - //child here... 74 - xorl %eax,%eax // zero eax 75 - REG_TO_EXTERN(%eax, __current_pid); 76 - L2: 77 - addl $28, %esp // restore the stack 78 - // parent ends up here skipping child portion 79 - ret 80 - 81 - #elif defined(__x86_64__) 82 - 83 - LEAF(___fork, 0) 84 - subq $24, %rsp // Align the stack, plus room for local storage 85 - 86 - #ifdef DARLING 87 - movl $ SYS_fork, %eax 88 - call __darling_bsd_syscall 89 - cmpq $0, %rax 90 - jnb L1 91 - #else 92 - movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax 93 - UNIX_SYSCALL_TRAP // do the system call 94 - jnc L1 // jump if CF==0 95 - #endif 96 - 97 - movq %rax, %rdi 98 - CALL_EXTERN(_cerror) 99 - movq $-1, %rax 100 - addq $24, %rsp // restore the stack 101 - ret 102 - 103 - L1: 104 - #ifdef DARLING 105 - testl %eax, %eax 106 - jnz L2 107 - #else 108 - orl %edx,%edx // CF=OF=0, ZF set if zero result 109 - jz L2 // parent, since r1 == 0 in parent, 1 in child 110 - #endif 111 - 112 - //child here... 113 - xorq %rax, %rax 114 - PICIFY(__current_pid) 115 - movl %eax,(%r11) 116 - L2: 117 - // parent ends up here skipping child portion 118 - addq $24, %rsp // restore the stack 119 - ret 120 - 121 - #elif defined(__arm__) 122 - 123 - MI_ENTRY_POINT(___fork) 124 - stmfd sp!, {r4, r7, lr} 125 - add r7, sp, #4 126 - 127 - mov r1, #1 // prime results 128 - mov r12, #SYS_fork 129 - swi #SWI_SYSCALL // make the syscall 130 - bcs Lbotch // error? 131 - 132 - cmp r1, #0 // parent (r1=0) or child(r1=1) 133 - beq Lparent 134 - 135 - //child here... 136 - MI_GET_ADDRESS(r3, __current_pid) 137 - mov r0, #0 138 - str r0, [r3] // clear cached pid in child 139 - ldmfd sp!, {r4, r7, pc} 140 - 141 - Lbotch: 142 - MI_CALL_EXTERNAL(_cerror) // jump here on error 143 - mov r0,#-1 // set the error 144 - // fall thru 145 - Lparent: 146 - ldmfd sp!, {r4, r7, pc} // pop and return 147 - 148 - #elif defined(__arm64__) 149 - 150 - #include <mach/arm64/asm.h> 151 - 152 - MI_ENTRY_POINT(___fork) 153 - ARM64_STACK_PROLOG 154 - PUSH_FRAME 155 - // ARM moves a 1 in to r1 here, but I can't see why. 156 - mov x16, #SYS_fork // Syscall code 157 - svc #SWI_SYSCALL // Trap to kernel 158 - b.cs Lbotch // Carry bit indicates failure 159 - cbz x1, Lparent // x1 == 0 indicates that we are the parent 160 - 161 - // Child 162 - MI_GET_ADDRESS(x9, __current_pid) // Get address of cached "current pid" 163 - mov w0, #0 164 - str w0, [x9] // Clear cached current pid 165 - POP_FRAME // And done 166 - ARM64_STACK_EPILOG 167 - 168 - Lbotch: 169 - MI_CALL_EXTERNAL(_cerror) // Handle error 170 - mov w0, #-1 // Return value is -1 171 - Lparent: 172 - POP_FRAME // Return 173 - ARM64_STACK_EPILOG 174 - 175 - #else 176 - #error Unsupported architecture 177 - #endif
-18
src/kernel/libsyscall/bsdsyscalls/___fs_snapshot.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fs_snapshot 5 - #error "SYS_fs_snapshot not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fs_snapshot) 10 - SYSCALL_NONAME(fs_snapshot, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___fs_snapshot, fs_snapshot, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___fstat64_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstat64_extended 5 - #error "SYS_fstat64_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fstat64_extended) 10 - SYSCALL_NONAME(fstat64_extended, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___fstat64_extended, fstat64_extended, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___fstat_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstat_extended 5 - #error "SYS_fstat_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fstat_extended) 10 - SYSCALL_NONAME(fstat_extended, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___fstat_extended, fstat_extended, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-47
src/kernel/libsyscall/bsdsyscalls/___fsync_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsync_nocancel 5 - #error "SYS_fsync_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___fsync_nocancel) 10 - SYSCALL_NONAME(fsync_nocancel, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___fsync_nocancel, fsync_nocancel, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _fsync 21 - .set _fsync, ___fsync_nocancel 22 - .globl _fsync$NOCANCEL$UNIX2003 23 - .set _fsync$NOCANCEL$UNIX2003, ___fsync_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _fsync$NOCANCEL 28 - .set _fsync$NOCANCEL, ___fsync_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _fsync 33 - .set _fsync, ___fsync_nocancel 34 - .globl _fsync$NOCANCEL$UNIX2003 35 - .set _fsync$NOCANCEL$UNIX2003, ___fsync_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _fsync$NOCANCEL 40 - .set _fsync$NOCANCEL, ___fsync_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _fsync$NOCANCEL 45 - .set _fsync$NOCANCEL, ___fsync_nocancel 46 - #endif 47 -
-45
src/kernel/libsyscall/bsdsyscalls/___getattrlist.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getattrlist 5 - #error "SYS_getattrlist not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getattrlist) 10 - ZERO_EXTEND(4) 11 - ZERO_EXTEND(3) 12 - SYSCALL_NONAME(getattrlist, 5, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(___getattrlist, getattrlist, 5, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _getattrlist$UNIX2003 23 - .set _getattrlist$UNIX2003, ___getattrlist 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _getattrlist 28 - .set _getattrlist, ___getattrlist 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _getattrlist$UNIX2003 33 - .set _getattrlist$UNIX2003, ___getattrlist 34 - #endif 35 - 36 - #if defined(__arm__) 37 - .globl _getattrlist 38 - .set _getattrlist, ___getattrlist 39 - #endif 40 - 41 - #if defined(__arm64__) 42 - .globl _getattrlist 43 - .set _getattrlist, ___getattrlist 44 - #endif 45 -
-19
src/kernel/libsyscall/bsdsyscalls/___getdirentries64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getdirentries64 5 - #error "SYS_getdirentries64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getdirentries64) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(getdirentries64, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___getdirentries64, getdirentries64, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/___gethostuuid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_gethostuuid 5 - #error "SYS_gethostuuid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___gethostuuid) 10 - SYSCALL_NONAME(gethostuuid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___gethostuuid, gethostuuid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___getlogin.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getlogin 5 - #error "SYS_getlogin not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getlogin) 10 - SYSCALL_NONAME(getlogin, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___getlogin, getlogin, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___getpeername.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getpeername 5 - #error "SYS_getpeername not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getpeername) 10 - SYSCALL_NONAME(getpeername, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___getpeername, getpeername, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _getpeername$UNIX2003 21 - .set _getpeername$UNIX2003, ___getpeername 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _getpeername 26 - .set _getpeername, ___getpeername 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _getpeername$UNIX2003 31 - .set _getpeername$UNIX2003, ___getpeername 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _getpeername 36 - .set _getpeername, ___getpeername 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _getpeername 41 - .set _getpeername, ___getpeername 42 - #endif 43 -
-198
src/kernel/libsyscall/bsdsyscalls/___getpid.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - 29 - #include "SYS.h" 30 - 31 - #if defined(__i386__) 32 - 33 - .data 34 - .private_extern __current_pid 35 - L__current_pid_addr: 36 - __current_pid: 37 - .long 0 38 - 39 - #if defined(__DYNAMIC__) 40 - #define GET_CURRENT_PID \ 41 - call 0f ; \ 42 - 0: ; \ 43 - popl %ecx ; \ 44 - leal L__current_pid_addr-0b(%ecx), %ecx 45 - 46 - #define __current_pid (%ecx) 47 - 48 - #else 49 - #define GET_CURRENT_PID 50 - #endif 51 - 52 - /* 53 - * If __current_pid is > 0, return it, else make syscall. 54 - * If __current_pid is 0, cache result of syscall. 55 - */ 56 - TEXT 57 - LEAF(___getpid, 0) 58 - GET_CURRENT_PID 59 - movl __current_pid, %eax 60 - testl %eax, %eax 61 - jle 1f 62 - ret 63 - 1: 64 - UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel) 65 - movl %eax, %edx 66 - xorl %eax, %eax 67 - GET_CURRENT_PID 68 - lock 69 - cmpxchgl %edx, __current_pid 70 - movl %edx, %eax 71 - ret 72 - 73 - #elif defined(__x86_64__) 74 - 75 - .data 76 - .private_extern __current_pid 77 - __current_pid: 78 - .long 0 79 - 80 - /* 81 - * If __current_pid is > 0, return it, else make syscall. 82 - * If __current_pid is 0, cache result of syscall. 83 - */ 84 - TEXT 85 - LEAF(___getpid, 0) 86 - movl __current_pid(%rip), %eax 87 - testl %eax, %eax 88 - jle 1f 89 - ret 90 - 1: 91 - UNIX_SYSCALL_NONAME(getpid, 0, cerror_nocancel) 92 - movl %eax, %edx 93 - xorl %eax, %eax 94 - leaq __current_pid(%rip), %rcx 95 - lock 96 - cmpxchgl %edx, (%rcx) 97 - movl %edx, %eax 98 - ret 99 - 100 - #elif defined(__arm__) 101 - 102 - #include <arm/arch.h> 103 - 104 - .data 105 - .globl __current_pid 106 - .align 2 107 - __current_pid: 108 - /* Cached pid. Possible values: 109 - * 0: no value cached 110 - * > 0: cached PID of current process 111 - * < 0: negative number of vforks in progress 112 - * INT_MIN: for pre-ARMv6, "looking" value (0x80000000) 113 - */ 114 - .long 0 115 - 116 - MI_ENTRY_POINT(___getpid) 117 - ldr r3, L__current_pid 118 - L1: add r3, pc, r3 // r3 = &__current_pid 119 - ldr r0, [r3] // get the cached pid 120 - cmp r0, #0 121 - bxgt lr // if positive, return it 122 - 123 - SYSCALL_NONAME(getpid, 0, cerror_nocancel) 124 - 125 - #ifdef _ARM_ARCH_6 126 - ldrex r2, [r3] // see if we can cache it 127 - cmp r2, #0 // we can't if there are any... 128 - bxlt lr // ...vforks in progress 129 - strex r2, r0, [r3] // ignore conflicts 130 - #else 131 - mov r1, #0x80000000 // load "looking" value 132 - swp r2, r1, [r3] // look at the value, lock others out 133 - cmp r2, r1 // anyone else trying to look? 134 - bxeq lr // yes, so return immediately/ 135 - cmp r2, #0 // see if we can cache it 136 - streq r0, [r3] // if zero, we can 137 - strne r2, [r3] // otherwise restore previous value 138 - #endif 139 - 140 - bx lr 141 - 142 - L__current_pid: 143 - .long __current_pid - (L1+8) 144 - 145 - #elif defined(__arm64__) 146 - .data 147 - .globl __current_pid 148 - .align 2 149 - __current_pid: 150 - /* cached pid. possible values: 151 - * 0: no value cached 152 - * > 0: cached pid of current process 153 - * < 0: negative number of vforks in progress 154 - * int_min: for pre-armv6, "looking" value (0x80000000) 155 - */ 156 - .long 0 157 - 158 - MI_ENTRY_POINT(___getpid) 159 - MI_GET_ADDRESS(x9, __current_pid) // Get address of cached value 160 - ldr w0, [x9] // Load it 161 - cmp w0, #0 // See if there's a cached value 162 - b.le L_notcached // If not, make syscall 163 - ret // Else, we're done 164 - L_notcached: 165 - SYSCALL_NONAME(getpid, 0, cerror_nocancel) 166 - ldxr w10, [x9] // Exclusive load 167 - cbnz w10, L_done // Unless unset, don't even try 168 - stxr wzr, w0, [x9] // Try to store, but don't care if we fail (someone will win, or not) 169 - L_done: 170 - ret // Done 171 - #else 172 - #error Unsupported architecture 173 - #endif 174 - #if defined(__i386__) 175 - .globl _getpid 176 - .set _getpid, ___getpid 177 - #endif 178 - 179 - #if defined(__x86_64__) 180 - .globl _getpid 181 - .set _getpid, ___getpid 182 - #endif 183 - 184 - #if defined(__ppc__) 185 - .globl _getpid 186 - .set _getpid, ___getpid 187 - #endif 188 - 189 - #if defined(__arm__) 190 - .globl _getpid 191 - .set _getpid, ___getpid 192 - #endif 193 - 194 - #if defined(__arm64__) 195 - .globl _getpid 196 - .set _getpid, ___getpid 197 - #endif 198 -
-28
src/kernel/libsyscall/bsdsyscalls/___getrlimit.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getrlimit 5 - #error "SYS_getrlimit not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getrlimit) 10 - SYSCALL_NONAME(getrlimit, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___getrlimit, getrlimit, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _getrlimit 21 - .set _getrlimit, ___getrlimit 22 - #endif 23 - 24 - #if defined(__ppc__) 25 - .globl _getrlimit 26 - .set _getrlimit, ___getrlimit 27 - #endif 28 -
-43
src/kernel/libsyscall/bsdsyscalls/___getsgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getsgroups 5 - #error "SYS_getsgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getsgroups) 10 - SYSCALL_NONAME(getsgroups, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___getsgroups, getsgroups, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _getsgroups_np 21 - .set _getsgroups_np, ___getsgroups 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _getsgroups_np 26 - .set _getsgroups_np, ___getsgroups 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _getsgroups_np 31 - .set _getsgroups_np, ___getsgroups 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _getsgroups_np 36 - .set _getsgroups_np, ___getsgroups 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _getsgroups_np 41 - .set _getsgroups_np, ___getsgroups 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___getsockname.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getsockname 5 - #error "SYS_getsockname not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getsockname) 10 - SYSCALL_NONAME(getsockname, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___getsockname, getsockname, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _getsockname$UNIX2003 21 - .set _getsockname$UNIX2003, ___getsockname 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _getsockname 26 - .set _getsockname, ___getsockname 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _getsockname$UNIX2003 31 - .set _getsockname$UNIX2003, ___getsockname 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _getsockname 36 - .set _getsockname, ___getsockname 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _getsockname 41 - .set _getsockname, ___getsockname 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___gettid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_gettid 5 - #error "SYS_gettid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___gettid) 10 - SYSCALL_NONAME(gettid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___gettid, gettid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _pthread_getugid_np 21 - .set _pthread_getugid_np, ___gettid 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _pthread_getugid_np 26 - .set _pthread_getugid_np, ___gettid 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _pthread_getugid_np 31 - .set _pthread_getugid_np, ___gettid 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _pthread_getugid_np 36 - .set _pthread_getugid_np, ___gettid 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _pthread_getugid_np 41 - .set _pthread_getugid_np, ___gettid 42 - #endif 43 -
-120
src/kernel/libsyscall/bsdsyscalls/___gettimeofday.S
··· 1 - /* 2 - * Copyright (c) 1999-2016 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - 29 - #include "SYS.h" 30 - 31 - /* 32 - * A third argument, of type uint64_t*, was added to the gettimeofday syscall 33 - * for use cases that also want to know the mach_absolute_time that matches the 34 - * time value returned. 35 - * 36 - * __gettimeofday takes the traditional two arguments. It will zero out the 37 - * third argument argument before entering the kernel, behaving like the old 38 - * call. 39 - * 40 - * __gettimeofday_with_mach will pass it through and supporting kernels will 41 - * copy-out the mach_absolute_time. Old kernels will leave the pointed to 42 - * value alone. 43 - */ 44 - 45 - .private_extern ___gettimeofday_with_mach 46 - 47 - #if defined(__i386__) 48 - 49 - LABEL(___gettimeofday) 50 - pushl $0 51 - pushl 12(%esp) 52 - pushl 12(%esp) 53 - calll ___gettimeofday_with_mach 54 - addl $12, %esp 55 - ret 56 - 57 - LABEL(___gettimeofday_with_mach) 58 - UNIX_SYSCALL_INT_NONAME(gettimeofday,0) 59 - /* 60 - * <rdar://problem/26410029> 61 - * If eax is 0, we're on a new kernel and timeval was written by the kernel. 62 - * Otherwise, eax:edx contains the timeval and we marshal into timeval. 63 - */ 64 - cmp $0, %eax 65 - je 2f 66 - mov 4(%esp),%ecx 67 - mov %eax,(%ecx) 68 - mov %edx,4(%ecx) 69 - xor %eax,%eax 70 - 2: 71 - ret 72 - 73 - #elif defined(__x86_64__) 74 - 75 - __SYSCALL(___gettimeofday_with_mach, gettimeofday, 3) 76 - 77 - LABEL(___gettimeofday) 78 - movq $0x0, %rdx // zero out third argument 79 - 80 - UNIX_SYSCALL_NONAME(gettimeofday,0,cerror_nocancel) 81 - /* 82 - * <rdar://problem/26410029> 83 - * If rax is 0, we're on a new kernel and timeval was written by the kernel. 84 - * Otherwise, rax:rdx contains the timeval and we marshal into timeval. 85 - */ 86 - cmp $0, %rax 87 - je 2f 88 - movq %rax, (%rdi) 89 - movl %edx, 8(%rdi) 90 - xorl %eax, %eax 91 - 2: 92 - ret 93 - 94 - #elif defined(__arm__) 95 - 96 - __SYSCALL2(___gettimeofday_with_mach, gettimeofday, 3, cerror_nocancel) 97 - 98 - .text 99 - .align 2 100 - .globl ___gettimeofday 101 - ___gettimeofday: 102 - mov r2, #0x0 103 - SYSCALL_NONAME(gettimeofday, 3, cerror_nocancel) 104 - bx lr 105 - 106 - #elif defined(__arm64__) 107 - 108 - __SYSCALL2(___gettimeofday_with_mach, gettimeofday, 3, cerror_nocancel) 109 - 110 - .text 111 - .align 2 112 - .globl ___gettimeofday 113 - ___gettimeofday: 114 - movz x2, #0x0 115 - SYSCALL_NONAME(gettimeofday, 3, cerror_nocancel) 116 - ret 117 - 118 - #else 119 - #error Unsupported architecture 120 - #endif
-43
src/kernel/libsyscall/bsdsyscalls/___getwgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getwgroups 5 - #error "SYS_getwgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___getwgroups) 10 - SYSCALL_NONAME(getwgroups, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___getwgroups, getwgroups, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _getwgroups_np 21 - .set _getwgroups_np, ___getwgroups 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _getwgroups_np 26 - .set _getwgroups_np, ___getwgroups 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _getwgroups_np 31 - .set _getwgroups_np, ___getwgroups 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _getwgroups_np 36 - .set _getwgroups_np, ___getwgroups 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _getwgroups_np 41 - .set _getwgroups_np, ___getwgroups 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___guarded_open_dprotected_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_open_dprotected_np 5 - #error "SYS_guarded_open_dprotected_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___guarded_open_dprotected_np) 10 - SYSCALL_NONAME(guarded_open_dprotected_np, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___guarded_open_dprotected_np, guarded_open_dprotected_np, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___guarded_open_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_open_np 5 - #error "SYS_guarded_open_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___guarded_open_np) 10 - SYSCALL_NONAME(guarded_open_np, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___guarded_open_np, guarded_open_np, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___identitysvc.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_identitysvc 5 - #error "SYS_identitysvc not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___identitysvc) 10 - SYSCALL_NONAME(identitysvc, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___identitysvc, identitysvc, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___initgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_initgroups 5 - #error "SYS_initgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___initgroups) 10 - SYSCALL_NONAME(initgroups, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___initgroups, initgroups, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-29
src/kernel/libsyscall/bsdsyscalls/___ioctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ioctl 5 - #error "SYS_ioctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___ioctl) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(ioctl, 3, cerror) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___ioctl, ioctl, 3, cerror) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _ioctl 22 - .set _ioctl, ___ioctl 23 - #endif 24 - 25 - #if defined(__ppc__) 26 - .globl _ioctl 27 - .set _ioctl, ___ioctl 28 - #endif 29 -
-18
src/kernel/libsyscall/bsdsyscalls/___iopolicysys.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_iopolicysys 5 - #error "SYS_iopolicysys not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___iopolicysys) 10 - SYSCALL_NONAME(iopolicysys, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___iopolicysys, iopolicysys, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-22
src/kernel/libsyscall/bsdsyscalls/___kdebug_trace.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kdebug_trace 5 - #error "SYS_kdebug_trace not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___kdebug_trace) 10 - ZERO_EXTEND(1) 11 - ZERO_EXTEND(4) 12 - ZERO_EXTEND(3) 13 - ZERO_EXTEND(2) 14 - SYSCALL_NONAME(kdebug_trace, 5, cerror_nocancel) 15 - ret 16 - #else 17 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 18 - __SYSCALL2(___kdebug_trace, kdebug_trace, 5, cerror_nocancel) 19 - #endif 20 - 21 - #endif 22 -
-18
src/kernel/libsyscall/bsdsyscalls/___kdebug_trace64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 36 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kdebug_trace64 5 - #error "SYS_kdebug_trace64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___kdebug_trace64) 10 - SYSCALL_NONAME(kdebug_trace64, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___kdebug_trace64, kdebug_trace64, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-49
src/kernel/libsyscall/bsdsyscalls/___kdebug_trace_string.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - 29 - #include "SYS.h" 30 - 31 - #if defined(__x86_64__) 32 - 33 - __SYSCALL(___kdebug_trace_string, kdebug_trace_string, 3) 34 - 35 - #elif defined(__i386__) 36 - 37 - __SYSCALL_INT(___kdebug_trace_string, kdebug_trace_string, 3) 38 - 39 - #elif defined(__arm__) 40 - 41 - __SYSCALL(___kdebug_trace_string, kdebug_trace_string, 4) 42 - 43 - #elif defined(__arm64__) 44 - 45 - __SYSCALL(___kdebug_trace_string, kdebug_trace_string, 3) 46 - 47 - #else 48 - #error Unsupported architecture 49 - #endif
-18
src/kernel/libsyscall/bsdsyscalls/___kdebug_typefilter.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kdebug_typefilter 5 - #error "SYS_kdebug_typefilter not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___kdebug_typefilter) 10 - SYSCALL_NONAME(kdebug_typefilter, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___kdebug_typefilter, kdebug_typefilter, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___kill.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kill 5 - #error "SYS_kill not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___kill) 10 - SYSCALL_NONAME(kill, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___kill, kill, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/___kqueue_workloop_ctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kqueue_workloop_ctl 5 - #error "SYS_kqueue_workloop_ctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___kqueue_workloop_ctl) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(kqueue_workloop_ctl, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___kqueue_workloop_ctl, kqueue_workloop_ctl, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-43
src/kernel/libsyscall/bsdsyscalls/___lchown.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_lchown 5 - #error "SYS_lchown not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___lchown) 10 - SYSCALL_NONAME(lchown, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___lchown, lchown, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _lchown$UNIX2003 21 - .set _lchown$UNIX2003, ___lchown 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _lchown 26 - .set _lchown, ___lchown 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _lchown$UNIX2003 31 - .set _lchown$UNIX2003, ___lchown 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _lchown 36 - .set _lchown, ___lchown 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _lchown 41 - .set _lchown, ___lchown 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___listen.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_listen 5 - #error "SYS_listen not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___listen) 10 - SYSCALL_NONAME(listen, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___listen, listen, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _listen$UNIX2003 21 - .set _listen$UNIX2003, ___listen 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _listen 26 - .set _listen, ___listen 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _listen$UNIX2003 31 - .set _listen$UNIX2003, ___listen 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _listen 36 - .set _listen, ___listen 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _listen 41 - .set _listen, ___listen 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___log_data.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_log_data 5 - #error "SYS_log_data not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___log_data) 10 - SYSCALL_NONAME(log_data, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___log_data, log_data, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-74
src/kernel/libsyscall/bsdsyscalls/___lseek.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - 29 - #include "SYS.h" 30 - 31 - #if defined(__x86_64__) 32 - 33 - __SYSCALL(___lseek, lseek, 3) 34 - 35 - #elif defined(__i386__) 36 - 37 - __SYSCALL_INT(___lseek, lseek, 3) 38 - 39 - #elif defined(__arm__) 40 - 41 - __SYSCALL(___lseek, lseek, 4) 42 - 43 - #elif defined(__arm64__) 44 - 45 - __SYSCALL(___lseek, lseek, 3) 46 - 47 - #else 48 - #error Unsupported architecture 49 - #endif 50 - #if defined(__i386__) 51 - .globl _lseek 52 - .set _lseek, ___lseek 53 - #endif 54 - 55 - #if defined(__x86_64__) 56 - .globl _lseek 57 - .set _lseek, ___lseek 58 - #endif 59 - 60 - #if defined(__ppc__) 61 - .globl _lseek 62 - .set _lseek, ___lseek 63 - #endif 64 - 65 - #if defined(__arm__) 66 - .globl _lseek 67 - .set _lseek, ___lseek 68 - #endif 69 - 70 - #if defined(__arm64__) 71 - .globl _lseek 72 - .set _lseek, ___lseek 73 - #endif 74 -
-18
src/kernel/libsyscall/bsdsyscalls/___lstat64_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_lstat64_extended 5 - #error "SYS_lstat64_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___lstat64_extended) 10 - SYSCALL_NONAME(lstat64_extended, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___lstat64_extended, lstat64_extended, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___lstat_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_lstat_extended 5 - #error "SYS_lstat_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___lstat_extended) 10 - SYSCALL_NONAME(lstat_extended, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___lstat_extended, lstat_extended, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___mac_execve.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_execve 5 - #error "SYS___mac_execve not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_execve) 10 - SYSCALL_NONAME(__mac_execve, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_execve, __mac_execve, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl ___sandbox_me 21 - .set ___sandbox_me, ___mac_execve 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl ___sandbox_me 26 - .set ___sandbox_me, ___mac_execve 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl ___sandbox_me 31 - .set ___sandbox_me, ___mac_execve 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl ___sandbox_me 36 - .set ___sandbox_me, ___mac_execve 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl ___sandbox_me 41 - .set ___sandbox_me, ___mac_execve 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_get_fd.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_get_fd 5 - #error "SYS___mac_get_fd not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_get_fd) 10 - SYSCALL_NONAME(__mac_get_fd, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_get_fd, __mac_get_fd, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_get_file.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_get_file 5 - #error "SYS___mac_get_file not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_get_file) 10 - SYSCALL_NONAME(__mac_get_file, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_get_file, __mac_get_file, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_get_link.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_get_link 5 - #error "SYS___mac_get_link not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_get_link) 10 - SYSCALL_NONAME(__mac_get_link, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_get_link, __mac_get_link, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_get_mount.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_get_mount 5 - #error "SYS___mac_get_mount not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_get_mount) 10 - SYSCALL_NONAME(__mac_get_mount, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_get_mount, __mac_get_mount, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_get_pid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_get_pid 5 - #error "SYS___mac_get_pid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_get_pid) 10 - SYSCALL_NONAME(__mac_get_pid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_get_pid, __mac_get_pid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_get_proc.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_get_proc 5 - #error "SYS___mac_get_proc not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_get_proc) 10 - SYSCALL_NONAME(__mac_get_proc, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_get_proc, __mac_get_proc, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_getfsstat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_getfsstat 5 - #error "SYS___mac_getfsstat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_getfsstat) 10 - SYSCALL_NONAME(__mac_getfsstat, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_getfsstat, __mac_getfsstat, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___mac_mount.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_mount 5 - #error "SYS___mac_mount not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_mount) 10 - SYSCALL_NONAME(__mac_mount, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_mount, __mac_mount, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl ___sandbox_mm 21 - .set ___sandbox_mm, ___mac_mount 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl ___sandbox_mm 26 - .set ___sandbox_mm, ___mac_mount 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl ___sandbox_mm 31 - .set ___sandbox_mm, ___mac_mount 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl ___sandbox_mm 36 - .set ___sandbox_mm, ___mac_mount 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl ___sandbox_mm 41 - .set ___sandbox_mm, ___mac_mount 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_set_fd.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_set_fd 5 - #error "SYS___mac_set_fd not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_set_fd) 10 - SYSCALL_NONAME(__mac_set_fd, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_set_fd, __mac_set_fd, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_set_file.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_set_file 5 - #error "SYS___mac_set_file not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_set_file) 10 - SYSCALL_NONAME(__mac_set_file, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_set_file, __mac_set_file, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mac_set_link.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_set_link 5 - #error "SYS___mac_set_link not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_set_link) 10 - SYSCALL_NONAME(__mac_set_link, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_set_link, __mac_set_link, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___mac_set_proc.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_set_proc 5 - #error "SYS___mac_set_proc not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_set_proc) 10 - SYSCALL_NONAME(__mac_set_proc, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_set_proc, __mac_set_proc, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl ___sandbox_msp 21 - .set ___sandbox_msp, ___mac_set_proc 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl ___sandbox_msp 26 - .set ___sandbox_msp, ___mac_set_proc 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl ___sandbox_msp 31 - .set ___sandbox_msp, ___mac_set_proc 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl ___sandbox_msp 36 - .set ___sandbox_msp, ___mac_set_proc 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl ___sandbox_msp 41 - .set ___sandbox_msp, ___mac_set_proc 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___mac_syscall.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mac_syscall 5 - #error "SYS___mac_syscall not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mac_syscall) 10 - SYSCALL_NONAME(__mac_syscall, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mac_syscall, __mac_syscall, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl ___sandbox_ms 21 - .set ___sandbox_ms, ___mac_syscall 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl ___sandbox_ms 26 - .set ___sandbox_ms, ___mac_syscall 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl ___sandbox_ms 31 - .set ___sandbox_ms, ___mac_syscall 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl ___sandbox_ms 36 - .set ___sandbox_ms, ___mac_syscall 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl ___sandbox_ms 41 - .set ___sandbox_ms, ___mac_syscall 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___mach_bridge_remote_time.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___mach_bridge_remote_time 5 - #error "SYS___mach_bridge_remote_time not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mach_bridge_remote_time) 10 - SYSCALL_NONAME(__mach_bridge_remote_time, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mach_bridge_remote_time, __mach_bridge_remote_time, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___memorystatus_available_memory.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_memorystatus_available_memory 5 - #error "SYS_memorystatus_available_memory not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___memorystatus_available_memory) 10 - SYSCALL_NONAME(memorystatus_available_memory, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___memorystatus_available_memory, memorystatus_available_memory, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___microstackshot.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_microstackshot 5 - #error "SYS_microstackshot not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___microstackshot) 10 - SYSCALL_NONAME(microstackshot, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___microstackshot, microstackshot, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mkdir_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mkdir_extended 5 - #error "SYS_mkdir_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mkdir_extended) 10 - SYSCALL_NONAME(mkdir_extended, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mkdir_extended, mkdir_extended, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___mkfifo_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mkfifo_extended 5 - #error "SYS_mkfifo_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mkfifo_extended) 10 - SYSCALL_NONAME(mkfifo_extended, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___mkfifo_extended, mkfifo_extended, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-29
src/kernel/libsyscall/bsdsyscalls/___mmap.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mmap 5 - #error "SYS_mmap not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mmap) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(mmap, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___mmap, mmap, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _mmap 22 - .set _mmap, ___mmap 23 - #endif 24 - 25 - #if defined(__ppc__) 26 - .globl _mmap 27 - .set _mmap, ___mmap 28 - #endif 29 -
-44
src/kernel/libsyscall/bsdsyscalls/___mprotect.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mprotect 5 - #error "SYS_mprotect not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___mprotect) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(mprotect, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___mprotect, mprotect, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _mprotect$UNIX2003 22 - .set _mprotect$UNIX2003, ___mprotect 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _mprotect 27 - .set _mprotect, ___mprotect 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _mprotect$UNIX2003 32 - .set _mprotect$UNIX2003, ___mprotect 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _mprotect 37 - .set _mprotect, ___mprotect 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _mprotect 42 - .set _mprotect, ___mprotect 43 - #endif 44 -
-43
src/kernel/libsyscall/bsdsyscalls/___msgctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgctl 5 - #error "SYS_msgctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___msgctl) 10 - SYSCALL_NONAME(msgctl, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___msgctl, msgctl, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _msgctl$UNIX2003 21 - .set _msgctl$UNIX2003, ___msgctl 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _msgctl 26 - .set _msgctl, ___msgctl 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _msgctl$UNIX2003 31 - .set _msgctl$UNIX2003, ___msgctl 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _msgctl 36 - .set _msgctl, ___msgctl 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _msgctl 41 - .set _msgctl, ___msgctl 42 - #endif 43 -
-49
src/kernel/libsyscall/bsdsyscalls/___msgrcv_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgrcv_nocancel 5 - #error "SYS_msgrcv_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___msgrcv_nocancel) 10 - SIGN_EXTEND(3) 11 - ZERO_EXTEND(2) 12 - SYSCALL_NONAME(msgrcv_nocancel, 5, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(___msgrcv_nocancel, msgrcv_nocancel, 5, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _msgrcv 23 - .set _msgrcv, ___msgrcv_nocancel 24 - .globl _msgrcv$NOCANCEL$UNIX2003 25 - .set _msgrcv$NOCANCEL$UNIX2003, ___msgrcv_nocancel 26 - #endif 27 - 28 - #if defined(__x86_64__) 29 - .globl _msgrcv$NOCANCEL 30 - .set _msgrcv$NOCANCEL, ___msgrcv_nocancel 31 - #endif 32 - 33 - #if defined(__ppc__) 34 - .globl _msgrcv 35 - .set _msgrcv, ___msgrcv_nocancel 36 - .globl _msgrcv$NOCANCEL$UNIX2003 37 - .set _msgrcv$NOCANCEL$UNIX2003, ___msgrcv_nocancel 38 - #endif 39 - 40 - #if defined(__arm__) 41 - .globl _msgrcv$NOCANCEL 42 - .set _msgrcv$NOCANCEL, ___msgrcv_nocancel 43 - #endif 44 - 45 - #if defined(__arm64__) 46 - .globl _msgrcv$NOCANCEL 47 - .set _msgrcv$NOCANCEL, ___msgrcv_nocancel 48 - #endif 49 -
-48
src/kernel/libsyscall/bsdsyscalls/___msgsnd_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgsnd_nocancel 5 - #error "SYS_msgsnd_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___msgsnd_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(msgsnd_nocancel, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___msgsnd_nocancel, msgsnd_nocancel, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _msgsnd 22 - .set _msgsnd, ___msgsnd_nocancel 23 - .globl _msgsnd$NOCANCEL$UNIX2003 24 - .set _msgsnd$NOCANCEL$UNIX2003, ___msgsnd_nocancel 25 - #endif 26 - 27 - #if defined(__x86_64__) 28 - .globl _msgsnd$NOCANCEL 29 - .set _msgsnd$NOCANCEL, ___msgsnd_nocancel 30 - #endif 31 - 32 - #if defined(__ppc__) 33 - .globl _msgsnd 34 - .set _msgsnd, ___msgsnd_nocancel 35 - .globl _msgsnd$NOCANCEL$UNIX2003 36 - .set _msgsnd$NOCANCEL$UNIX2003, ___msgsnd_nocancel 37 - #endif 38 - 39 - #if defined(__arm__) 40 - .globl _msgsnd$NOCANCEL 41 - .set _msgsnd$NOCANCEL, ___msgsnd_nocancel 42 - #endif 43 - 44 - #if defined(__arm64__) 45 - .globl _msgsnd$NOCANCEL 46 - .set _msgsnd$NOCANCEL, ___msgsnd_nocancel 47 - #endif 48 -
-38
src/kernel/libsyscall/bsdsyscalls/___msgsys.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgsys 5 - #error "SYS_msgsys not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___msgsys) 10 - SYSCALL_NONAME(msgsys, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___msgsys, msgsys, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _msgsys 21 - .set _msgsys, ___msgsys 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _msgsys 26 - .set _msgsys, ___msgsys 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _msgsys 31 - .set _msgsys, ___msgsys 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _msgsys 36 - .set _msgsys, ___msgsys 37 - #endif 38 -
-44
src/kernel/libsyscall/bsdsyscalls/___msync.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msync 5 - #error "SYS_msync not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___msync) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(msync, 3, cerror) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___msync, msync, 3, cerror) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _msync$UNIX2003 22 - .set _msync$UNIX2003, ___msync 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _msync 27 - .set _msync, ___msync 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _msync$UNIX2003 32 - .set _msync$UNIX2003, ___msync 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _msync 37 - .set _msync, ___msync 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _msync 42 - .set _msync, ___msync 43 - #endif 44 -
-44
src/kernel/libsyscall/bsdsyscalls/___msync_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msync_nocancel 5 - #error "SYS_msync_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___msync_nocancel) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(msync_nocancel, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___msync_nocancel, msync_nocancel, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _msync$NOCANCEL$UNIX2003 22 - .set _msync$NOCANCEL$UNIX2003, ___msync_nocancel 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _msync$NOCANCEL 27 - .set _msync$NOCANCEL, ___msync_nocancel 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _msync$NOCANCEL$UNIX2003 32 - .set _msync$NOCANCEL$UNIX2003, ___msync_nocancel 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _msync$NOCANCEL 37 - .set _msync$NOCANCEL, ___msync_nocancel 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _msync$NOCANCEL 42 - .set _msync$NOCANCEL, ___msync_nocancel 43 - #endif 44 -
-19
src/kernel/libsyscall/bsdsyscalls/___munmap.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_munmap 5 - #error "SYS_munmap not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___munmap) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(munmap, 2, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___munmap, munmap, 2, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/___old_semwait_signal.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___old_semwait_signal 5 - #error "SYS___old_semwait_signal not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___old_semwait_signal) 10 - SYSCALL_NONAME(__old_semwait_signal, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___old_semwait_signal, __old_semwait_signal, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-38
src/kernel/libsyscall/bsdsyscalls/___open.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_open 5 - #error "SYS_open not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___open) 10 - SYSCALL_NONAME(open, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___open, open, 3, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _open$UNIX2003 21 - .set _open$UNIX2003, ___open 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _open 26 - .set _open, ___open 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _open$UNIX2003 31 - .set _open$UNIX2003, ___open 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _open 36 - .set _open, ___open 37 - #endif 38 -
-18
src/kernel/libsyscall/bsdsyscalls/___open_dprotected_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_open_dprotected_np 5 - #error "SYS_open_dprotected_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___open_dprotected_np) 10 - SYSCALL_NONAME(open_dprotected_np, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___open_dprotected_np, open_dprotected_np, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___open_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_open_extended 5 - #error "SYS_open_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___open_extended) 10 - SYSCALL_NONAME(open_extended, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___open_extended, open_extended, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-38
src/kernel/libsyscall/bsdsyscalls/___open_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_open_nocancel 5 - #error "SYS_open_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___open_nocancel) 10 - SYSCALL_NONAME(open_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___open_nocancel, open_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _open$NOCANCEL$UNIX2003 21 - .set _open$NOCANCEL$UNIX2003, ___open_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _open$NOCANCEL 26 - .set _open$NOCANCEL, ___open_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _open$NOCANCEL$UNIX2003 31 - .set _open$NOCANCEL$UNIX2003, ___open_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _open$NOCANCEL 36 - .set _open$NOCANCEL, ___open_nocancel 37 - #endif 38 -
-38
src/kernel/libsyscall/bsdsyscalls/___openat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_openat 5 - #error "SYS_openat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___openat) 10 - SYSCALL_NONAME(openat, 4, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___openat, openat, 4, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _openat 21 - .set _openat, ___openat 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _openat 26 - .set _openat, ___openat 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _openat 31 - .set _openat, ___openat 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _openat 36 - .set _openat, ___openat 37 - #endif 38 -
-38
src/kernel/libsyscall/bsdsyscalls/___openat_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_openat_nocancel 5 - #error "SYS_openat_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___openat_nocancel) 10 - SYSCALL_NONAME(openat_nocancel, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___openat_nocancel, openat_nocancel, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _openat$NOCANCEL 21 - .set _openat$NOCANCEL, ___openat_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _openat$NOCANCEL 26 - .set _openat$NOCANCEL, ___openat_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _openat$NOCANCEL 31 - .set _openat$NOCANCEL, ___openat_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _openat$NOCANCEL 36 - .set _openat$NOCANCEL, ___openat_nocancel 37 - #endif 38 -
-18
src/kernel/libsyscall/bsdsyscalls/___persona.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_persona 5 - #error "SYS_persona not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___persona) 10 - SYSCALL_NONAME(persona, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___persona, persona, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-95
src/kernel/libsyscall/bsdsyscalls/___pipe.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */ 29 - 30 - #include "SYS.h" 31 - 32 - #if defined(__i386__) 33 - 34 - PSEUDO_INT(___pipe, pipe, 0) 35 - movl 4(%esp),%ecx 36 - movl %eax,(%ecx) 37 - movl %edx,4(%ecx) 38 - xorl %eax,%eax 39 - ret 40 - 41 - #elif defined(__x86_64__) 42 - 43 - PSEUDO(___pipe, pipe, 0, cerror_nocancel) 44 - movl %eax, (%rdi) 45 - movl %edx, 4(%rdi) 46 - xorl %eax, %eax 47 - ret 48 - 49 - #elif defined(__arm__) 50 - 51 - MI_ENTRY_POINT(___pipe) 52 - mov r3,r0 // save fildes across syscall 53 - SYSCALL_NONAME(pipe, 0, cerror_nocancel) 54 - str r0, [r3, #0] 55 - str r1, [r3, #4] 56 - mov r0,#0 57 - bx lr 58 - 59 - #elif defined(__arm64__) 60 - 61 - MI_ENTRY_POINT(___pipe) 62 - mov x9, x0 // Stash FD array 63 - SYSCALL_NONAME(pipe, 0, cerror_nocancel) 64 - stp w0, w1, [x9] // Save results 65 - mov x0, #0 // Success 66 - ret // Done 67 - 68 - #else 69 - #error Unsupported architecture 70 - #endif 71 - #if defined(__i386__) 72 - .globl _pipe 73 - .set _pipe, ___pipe 74 - #endif 75 - 76 - #if defined(__x86_64__) 77 - .globl _pipe 78 - .set _pipe, ___pipe 79 - #endif 80 - 81 - #if defined(__ppc__) 82 - .globl _pipe 83 - .set _pipe, ___pipe 84 - #endif 85 - 86 - #if defined(__arm__) 87 - .globl _pipe 88 - .set _pipe, ___pipe 89 - #endif 90 - 91 - #if defined(__arm64__) 92 - .globl _pipe 93 - .set _pipe, ___pipe 94 - #endif 95 -
-47
src/kernel/libsyscall/bsdsyscalls/___poll_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_poll_nocancel 5 - #error "SYS_poll_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___poll_nocancel) 10 - SYSCALL_NONAME(poll_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___poll_nocancel, poll_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _poll 21 - .set _poll, ___poll_nocancel 22 - .globl _poll$NOCANCEL$UNIX2003 23 - .set _poll$NOCANCEL$UNIX2003, ___poll_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _poll$NOCANCEL 28 - .set _poll$NOCANCEL, ___poll_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _poll 33 - .set _poll, ___poll_nocancel 34 - .globl _poll$NOCANCEL$UNIX2003 35 - .set _poll$NOCANCEL$UNIX2003, ___poll_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _poll$NOCANCEL 40 - .set _poll$NOCANCEL, ___poll_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _poll$NOCANCEL 45 - .set _poll$NOCANCEL, ___poll_nocancel 46 - #endif 47 -
-18
src/kernel/libsyscall/bsdsyscalls/___posix_spawn.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_posix_spawn 5 - #error "SYS_posix_spawn not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___posix_spawn) 10 - SYSCALL_NONAME(posix_spawn, 5, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___posix_spawn, posix_spawn, 5, cerror) 15 - #endif 16 - 17 - #endif 18 -
-48
src/kernel/libsyscall/bsdsyscalls/___pread_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pread_nocancel 5 - #error "SYS_pread_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pread_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(pread_nocancel, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___pread_nocancel, pread_nocancel, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _pread 22 - .set _pread, ___pread_nocancel 23 - .globl _pread$NOCANCEL$UNIX2003 24 - .set _pread$NOCANCEL$UNIX2003, ___pread_nocancel 25 - #endif 26 - 27 - #if defined(__x86_64__) 28 - .globl _pread$NOCANCEL 29 - .set _pread$NOCANCEL, ___pread_nocancel 30 - #endif 31 - 32 - #if defined(__ppc__) 33 - .globl _pread 34 - .set _pread, ___pread_nocancel 35 - .globl _pread$NOCANCEL$UNIX2003 36 - .set _pread$NOCANCEL$UNIX2003, ___pread_nocancel 37 - #endif 38 - 39 - #if defined(__arm__) 40 - .globl _pread$NOCANCEL 41 - .set _pread$NOCANCEL, ___pread_nocancel 42 - #endif 43 - 44 - #if defined(__arm64__) 45 - .globl _pread$NOCANCEL 46 - .set _pread$NOCANCEL, ___pread_nocancel 47 - #endif 48 -
-18
src/kernel/libsyscall/bsdsyscalls/___proc_info.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_proc_info 5 - #error "SYS_proc_info not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___proc_info) 10 - SYSCALL_NONAME(proc_info, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___proc_info, proc_info, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___process_policy.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 32 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_process_policy 5 - #error "SYS_process_policy not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___process_policy) 10 - SYSCALL_NONAME(process_policy, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___process_policy, process_policy, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pselect.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pselect 5 - #error "SYS_pselect not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pselect) 10 - SYSCALL_NONAME(pselect, 6, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pselect, pselect, 6, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pselect_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pselect_nocancel 5 - #error "SYS_pselect_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pselect_nocancel) 10 - SYSCALL_NONAME(pselect_nocancel, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pselect_nocancel, pselect_nocancel, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_cvbroad.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 44 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_cvbroad 5 - #error "SYS_psynch_cvbroad not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_cvbroad) 10 - SYSCALL_NONAME(psynch_cvbroad, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_cvbroad, psynch_cvbroad, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_cvclrprepost.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_cvclrprepost 5 - #error "SYS_psynch_cvclrprepost not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_cvclrprepost) 10 - SYSCALL_NONAME(psynch_cvclrprepost, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_cvclrprepost, psynch_cvclrprepost, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_cvsignal.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 44 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_cvsignal 5 - #error "SYS_psynch_cvsignal not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_cvsignal) 10 - SYSCALL_NONAME(psynch_cvsignal, 8, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_cvsignal, psynch_cvsignal, 8, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_cvwait.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 44 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_cvwait 5 - #error "SYS_psynch_cvwait not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_cvwait) 10 - SYSCALL_NONAME(psynch_cvwait, 8, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_cvwait, psynch_cvwait, 8, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_mutexdrop.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_mutexdrop 5 - #error "SYS_psynch_mutexdrop not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_mutexdrop) 10 - SYSCALL_NONAME(psynch_mutexdrop, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_mutexdrop, psynch_mutexdrop, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_mutexwait.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_mutexwait 5 - #error "SYS_psynch_mutexwait not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_mutexwait) 10 - SYSCALL_NONAME(psynch_mutexwait, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_mutexwait, psynch_mutexwait, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_downgrade.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_downgrade 5 - #error "SYS_psynch_rw_downgrade not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_downgrade) 10 - SYSCALL_NONAME(psynch_rw_downgrade, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_downgrade, psynch_rw_downgrade, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_longrdlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_longrdlock 5 - #error "SYS_psynch_rw_longrdlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_longrdlock) 10 - SYSCALL_NONAME(psynch_rw_longrdlock, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_longrdlock, psynch_rw_longrdlock, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_rdlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_rdlock 5 - #error "SYS_psynch_rw_rdlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_rdlock) 10 - SYSCALL_NONAME(psynch_rw_rdlock, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_rdlock, psynch_rw_rdlock, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_unlock 5 - #error "SYS_psynch_rw_unlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_unlock) 10 - SYSCALL_NONAME(psynch_rw_unlock, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_unlock, psynch_rw_unlock, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_unlock2.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_unlock2 5 - #error "SYS_psynch_rw_unlock2 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_unlock2) 10 - SYSCALL_NONAME(psynch_rw_unlock2, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_unlock2, psynch_rw_unlock2, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_upgrade.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_upgrade 5 - #error "SYS_psynch_rw_upgrade not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_upgrade) 10 - SYSCALL_NONAME(psynch_rw_upgrade, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_upgrade, psynch_rw_upgrade, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_wrlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_wrlock 5 - #error "SYS_psynch_rw_wrlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_wrlock) 10 - SYSCALL_NONAME(psynch_rw_wrlock, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_wrlock, psynch_rw_wrlock, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___psynch_rw_yieldwrlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_psynch_rw_yieldwrlock 5 - #error "SYS_psynch_rw_yieldwrlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___psynch_rw_yieldwrlock) 10 - SYSCALL_NONAME(psynch_rw_yieldwrlock, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___psynch_rw_yieldwrlock, psynch_rw_yieldwrlock, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pthread_canceled.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___pthread_canceled 5 - #error "SYS___pthread_canceled not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pthread_canceled) 10 - SYSCALL_NONAME(__pthread_canceled, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pthread_canceled, __pthread_canceled, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pthread_chdir.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___pthread_chdir 5 - #error "SYS___pthread_chdir not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pthread_chdir) 10 - SYSCALL_NONAME(__pthread_chdir, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pthread_chdir, __pthread_chdir, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pthread_fchdir.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___pthread_fchdir 5 - #error "SYS___pthread_fchdir not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pthread_fchdir) 10 - SYSCALL_NONAME(__pthread_fchdir, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pthread_fchdir, __pthread_fchdir, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pthread_kill.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___pthread_kill 5 - #error "SYS___pthread_kill not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pthread_kill) 10 - SYSCALL_NONAME(__pthread_kill, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pthread_kill, __pthread_kill, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pthread_markcancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___pthread_markcancel 5 - #error "SYS___pthread_markcancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pthread_markcancel) 10 - SYSCALL_NONAME(__pthread_markcancel, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pthread_markcancel, __pthread_markcancel, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___pthread_sigmask.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___pthread_sigmask 5 - #error "SYS___pthread_sigmask not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pthread_sigmask) 10 - SYSCALL_NONAME(__pthread_sigmask, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___pthread_sigmask, __pthread_sigmask, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-99
src/kernel/libsyscall/bsdsyscalls/___ptrace.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */ 29 - 30 - #include "SYS.h" 31 - 32 - #if defined(__i386__) 33 - 34 - .globl _errno 35 - 36 - LEAF(___ptrace, 0) 37 - xorl %eax,%eax 38 - REG_TO_EXTERN(%eax,_errno) 39 - UNIX_SYSCALL_NONAME(ptrace, 4, cerror) 40 - ret 41 - 42 - #elif defined(__x86_64__) 43 - 44 - .globl _errno 45 - 46 - LEAF(___ptrace, 0) 47 - xorq %rax,%rax 48 - PICIFY(_errno) 49 - movl %eax,(%r11) 50 - UNIX_SYSCALL_NONAME(ptrace, 4, cerror) 51 - ret 52 - 53 - #elif defined(__arm__) 54 - 55 - MI_ENTRY_POINT(___ptrace) 56 - MI_GET_ADDRESS(ip,_errno) 57 - str r8, [sp, #-4]! 58 - mov r8, #0 59 - str r8, [ip] 60 - ldr r8, [sp], #4 61 - SYSCALL_NONAME(ptrace, 4, cerror) 62 - bx lr 63 - 64 - #elif defined(__arm64__) 65 - 66 - MI_ENTRY_POINT(___ptrace) 67 - MI_GET_ADDRESS(x9,_errno) 68 - str wzr, [x9] 69 - SYSCALL_NONAME(ptrace, 4, cerror) 70 - ret 71 - 72 - #else 73 - #error Unsupported architecture 74 - #endif 75 - #if defined(__i386__) 76 - .globl _ptrace 77 - .set _ptrace, ___ptrace 78 - #endif 79 - 80 - #if defined(__x86_64__) 81 - .globl _ptrace 82 - .set _ptrace, ___ptrace 83 - #endif 84 - 85 - #if defined(__ppc__) 86 - .globl _ptrace 87 - .set _ptrace, ___ptrace 88 - #endif 89 - 90 - #if defined(__arm__) 91 - .globl _ptrace 92 - .set _ptrace, ___ptrace 93 - #endif 94 - 95 - #if defined(__arm64__) 96 - .globl _ptrace 97 - .set _ptrace, ___ptrace 98 - #endif 99 -
-48
src/kernel/libsyscall/bsdsyscalls/___pwrite_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pwrite_nocancel 5 - #error "SYS_pwrite_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___pwrite_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(pwrite_nocancel, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___pwrite_nocancel, pwrite_nocancel, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _pwrite 22 - .set _pwrite, ___pwrite_nocancel 23 - .globl _pwrite$NOCANCEL$UNIX2003 24 - .set _pwrite$NOCANCEL$UNIX2003, ___pwrite_nocancel 25 - #endif 26 - 27 - #if defined(__x86_64__) 28 - .globl _pwrite$NOCANCEL 29 - .set _pwrite$NOCANCEL, ___pwrite_nocancel 30 - #endif 31 - 32 - #if defined(__ppc__) 33 - .globl _pwrite 34 - .set _pwrite, ___pwrite_nocancel 35 - .globl _pwrite$NOCANCEL$UNIX2003 36 - .set _pwrite$NOCANCEL$UNIX2003, ___pwrite_nocancel 37 - #endif 38 - 39 - #if defined(__arm__) 40 - .globl _pwrite$NOCANCEL 41 - .set _pwrite$NOCANCEL, ___pwrite_nocancel 42 - #endif 43 - 44 - #if defined(__arm64__) 45 - .globl _pwrite$NOCANCEL 46 - .set _pwrite$NOCANCEL, ___pwrite_nocancel 47 - #endif 48 -
-48
src/kernel/libsyscall/bsdsyscalls/___read_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_read_nocancel 5 - #error "SYS_read_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___read_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(read_nocancel, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___read_nocancel, read_nocancel, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _read 22 - .set _read, ___read_nocancel 23 - .globl _read$NOCANCEL$UNIX2003 24 - .set _read$NOCANCEL$UNIX2003, ___read_nocancel 25 - #endif 26 - 27 - #if defined(__x86_64__) 28 - .globl _read$NOCANCEL 29 - .set _read$NOCANCEL, ___read_nocancel 30 - #endif 31 - 32 - #if defined(__ppc__) 33 - .globl _read 34 - .set _read, ___read_nocancel 35 - .globl _read$NOCANCEL$UNIX2003 36 - .set _read$NOCANCEL$UNIX2003, ___read_nocancel 37 - #endif 38 - 39 - #if defined(__arm__) 40 - .globl _read$NOCANCEL 41 - .set _read$NOCANCEL, ___read_nocancel 42 - #endif 43 - 44 - #if defined(__arm64__) 45 - .globl _read$NOCANCEL 46 - .set _read$NOCANCEL, ___read_nocancel 47 - #endif 48 -
-47
src/kernel/libsyscall/bsdsyscalls/___readv_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_readv_nocancel 5 - #error "SYS_readv_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___readv_nocancel) 10 - SYSCALL_NONAME(readv_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___readv_nocancel, readv_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _readv 21 - .set _readv, ___readv_nocancel 22 - .globl _readv$NOCANCEL$UNIX2003 23 - .set _readv$NOCANCEL$UNIX2003, ___readv_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _readv$NOCANCEL 28 - .set _readv$NOCANCEL, ___readv_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _readv 33 - .set _readv, ___readv_nocancel 34 - .globl _readv$NOCANCEL$UNIX2003 35 - .set _readv$NOCANCEL$UNIX2003, ___readv_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _readv$NOCANCEL 40 - .set _readv$NOCANCEL, ___readv_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _readv$NOCANCEL 45 - .set _readv$NOCANCEL, ___readv_nocancel 46 - #endif 47 -
-18
src/kernel/libsyscall/bsdsyscalls/___reboot.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_reboot 5 - #error "SYS_reboot not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___reboot) 10 - SYSCALL_NONAME(reboot, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___reboot, reboot, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-44
src/kernel/libsyscall/bsdsyscalls/___recvfrom.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_recvfrom 5 - #error "SYS_recvfrom not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___recvfrom) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(recvfrom, 6, cerror) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___recvfrom, recvfrom, 6, cerror) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _recvfrom$UNIX2003 22 - .set _recvfrom$UNIX2003, ___recvfrom 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _recvfrom 27 - .set _recvfrom, ___recvfrom 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _recvfrom$UNIX2003 32 - .set _recvfrom$UNIX2003, ___recvfrom 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _recvfrom 37 - .set _recvfrom, ___recvfrom 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _recvfrom 42 - .set _recvfrom, ___recvfrom 43 - #endif 44 -
-44
src/kernel/libsyscall/bsdsyscalls/___recvfrom_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_recvfrom_nocancel 5 - #error "SYS_recvfrom_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___recvfrom_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(recvfrom_nocancel, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___recvfrom_nocancel, recvfrom_nocancel, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _recvfrom$NOCANCEL$UNIX2003 22 - .set _recvfrom$NOCANCEL$UNIX2003, ___recvfrom_nocancel 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _recvfrom$NOCANCEL 27 - .set _recvfrom$NOCANCEL, ___recvfrom_nocancel 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _recvfrom$NOCANCEL$UNIX2003 32 - .set _recvfrom$NOCANCEL$UNIX2003, ___recvfrom_nocancel 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _recvfrom$NOCANCEL 37 - .set _recvfrom$NOCANCEL, ___recvfrom_nocancel 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _recvfrom$NOCANCEL 42 - .set _recvfrom$NOCANCEL, ___recvfrom_nocancel 43 - #endif 44 -
-43
src/kernel/libsyscall/bsdsyscalls/___recvmsg.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_recvmsg 5 - #error "SYS_recvmsg not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___recvmsg) 10 - SYSCALL_NONAME(recvmsg, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___recvmsg, recvmsg, 3, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _recvmsg$UNIX2003 21 - .set _recvmsg$UNIX2003, ___recvmsg 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _recvmsg 26 - .set _recvmsg, ___recvmsg 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _recvmsg$UNIX2003 31 - .set _recvmsg$UNIX2003, ___recvmsg 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _recvmsg 36 - .set _recvmsg, ___recvmsg 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _recvmsg 41 - .set _recvmsg, ___recvmsg 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___recvmsg_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_recvmsg_nocancel 5 - #error "SYS_recvmsg_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___recvmsg_nocancel) 10 - SYSCALL_NONAME(recvmsg_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___recvmsg_nocancel, recvmsg_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _recvmsg$NOCANCEL$UNIX2003 21 - .set _recvmsg$NOCANCEL$UNIX2003, ___recvmsg_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _recvmsg$NOCANCEL 26 - .set _recvmsg$NOCANCEL, ___recvmsg_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _recvmsg$NOCANCEL$UNIX2003 31 - .set _recvmsg$NOCANCEL$UNIX2003, ___recvmsg_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _recvmsg$NOCANCEL 36 - .set _recvmsg$NOCANCEL, ___recvmsg_nocancel 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _recvmsg$NOCANCEL 41 - .set _recvmsg$NOCANCEL, ___recvmsg_nocancel 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___rename.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_rename 5 - #error "SYS_rename not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___rename) 10 - SYSCALL_NONAME(rename, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___rename, rename, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___renameat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_renameat 5 - #error "SYS_renameat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___renameat) 10 - SYSCALL_NONAME(renameat, 4, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___renameat, renameat, 4, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___renameatx_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_renameatx_np 5 - #error "SYS_renameatx_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___renameatx_np) 10 - SYSCALL_NONAME(renameatx_np, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___renameatx_np, renameatx_np, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___rmdir.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_rmdir 5 - #error "SYS_rmdir not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___rmdir) 10 - SYSCALL_NONAME(rmdir, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___rmdir, rmdir, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___select.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_select 5 - #error "SYS_select not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___select) 10 - SYSCALL_NONAME(select, 5, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___select, select, 5, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _select$DARWIN_EXTSN 21 - .set _select$DARWIN_EXTSN, ___select 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _select$DARWIN_EXTSN 26 - .set _select$DARWIN_EXTSN, ___select 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _select$DARWIN_EXTSN 31 - .set _select$DARWIN_EXTSN, ___select 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _select$DARWIN_EXTSN 36 - .set _select$DARWIN_EXTSN, ___select 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _select$DARWIN_EXTSN 41 - .set _select$DARWIN_EXTSN, ___select 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___select_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_select_nocancel 5 - #error "SYS_select_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___select_nocancel) 10 - SYSCALL_NONAME(select_nocancel, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___select_nocancel, select_nocancel, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _select$DARWIN_EXTSN$NOCANCEL 21 - .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _select$DARWIN_EXTSN$NOCANCEL 26 - .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _select$DARWIN_EXTSN$NOCANCEL 31 - .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _select$DARWIN_EXTSN$NOCANCEL 36 - .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _select$DARWIN_EXTSN$NOCANCEL 41 - .set _select$DARWIN_EXTSN$NOCANCEL, ___select_nocancel 42 - #endif 43 -
-38
src/kernel/libsyscall/bsdsyscalls/___sem_open.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_open 5 - #error "SYS_sem_open not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sem_open) 10 - SYSCALL_NONAME(sem_open, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sem_open, sem_open, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _sem_open 21 - .set _sem_open, ___sem_open 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _sem_open 26 - .set _sem_open, ___sem_open 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _sem_open 31 - .set _sem_open, ___sem_open 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _sem_open 36 - .set _sem_open, ___sem_open 37 - #endif 38 -
-47
src/kernel/libsyscall/bsdsyscalls/___sem_wait_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_wait_nocancel 5 - #error "SYS_sem_wait_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sem_wait_nocancel) 10 - SYSCALL_NONAME(sem_wait_nocancel, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sem_wait_nocancel, sem_wait_nocancel, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _sem_wait 21 - .set _sem_wait, ___sem_wait_nocancel 22 - .globl _sem_wait$NOCANCEL$UNIX2003 23 - .set _sem_wait$NOCANCEL$UNIX2003, ___sem_wait_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _sem_wait$NOCANCEL 28 - .set _sem_wait$NOCANCEL, ___sem_wait_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _sem_wait 33 - .set _sem_wait, ___sem_wait_nocancel 34 - .globl _sem_wait$NOCANCEL$UNIX2003 35 - .set _sem_wait$NOCANCEL$UNIX2003, ___sem_wait_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _sem_wait$NOCANCEL 40 - .set _sem_wait$NOCANCEL, ___sem_wait_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _sem_wait$NOCANCEL 45 - .set _sem_wait$NOCANCEL, ___sem_wait_nocancel 46 - #endif 47 -
-38
src/kernel/libsyscall/bsdsyscalls/___semctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_semctl 5 - #error "SYS_semctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___semctl) 10 - SYSCALL_NONAME(semctl, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___semctl, semctl, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _semctl$UNIX2003 21 - .set _semctl$UNIX2003, ___semctl 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _semctl 26 - .set _semctl, ___semctl 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _semctl$UNIX2003 31 - .set _semctl$UNIX2003, ___semctl 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _semctl 36 - .set _semctl, ___semctl 37 - #endif 38 -
-38
src/kernel/libsyscall/bsdsyscalls/___semsys.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_semsys 5 - #error "SYS_semsys not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___semsys) 10 - SYSCALL_NONAME(semsys, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___semsys, semsys, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _semsys 21 - .set _semsys, ___semsys 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _semsys 26 - .set _semsys, ___semsys 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _semsys 31 - .set _semsys, ___semsys 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _semsys 36 - .set _semsys, ___semsys 37 - #endif 38 -
-18
src/kernel/libsyscall/bsdsyscalls/___semwait_signal.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___semwait_signal 5 - #error "SYS___semwait_signal not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___semwait_signal) 10 - SYSCALL_NONAME(__semwait_signal, 6, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___semwait_signal, __semwait_signal, 6, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___semwait_signal_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___semwait_signal_nocancel 5 - #error "SYS___semwait_signal_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___semwait_signal_nocancel) 10 - SYSCALL_NONAME(__semwait_signal_nocancel, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___semwait_signal_nocancel, __semwait_signal_nocancel, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___sendmsg.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sendmsg 5 - #error "SYS_sendmsg not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sendmsg) 10 - SYSCALL_NONAME(sendmsg, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sendmsg, sendmsg, 3, cerror) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _sendmsg$UNIX2003 21 - .set _sendmsg$UNIX2003, ___sendmsg 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _sendmsg 26 - .set _sendmsg, ___sendmsg 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _sendmsg$UNIX2003 31 - .set _sendmsg$UNIX2003, ___sendmsg 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _sendmsg 36 - .set _sendmsg, ___sendmsg 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _sendmsg 41 - .set _sendmsg, ___sendmsg 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___sendmsg_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sendmsg_nocancel 5 - #error "SYS_sendmsg_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sendmsg_nocancel) 10 - SYSCALL_NONAME(sendmsg_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sendmsg_nocancel, sendmsg_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _sendmsg$NOCANCEL$UNIX2003 21 - .set _sendmsg$NOCANCEL$UNIX2003, ___sendmsg_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _sendmsg$NOCANCEL 26 - .set _sendmsg$NOCANCEL, ___sendmsg_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _sendmsg$NOCANCEL$UNIX2003 31 - .set _sendmsg$NOCANCEL$UNIX2003, ___sendmsg_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _sendmsg$NOCANCEL 36 - .set _sendmsg$NOCANCEL, ___sendmsg_nocancel 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _sendmsg$NOCANCEL 41 - .set _sendmsg$NOCANCEL, ___sendmsg_nocancel 42 - #endif 43 -
-44
src/kernel/libsyscall/bsdsyscalls/___sendto.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sendto 5 - #error "SYS_sendto not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sendto) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(sendto, 6, cerror) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___sendto, sendto, 6, cerror) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _sendto$UNIX2003 22 - .set _sendto$UNIX2003, ___sendto 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _sendto 27 - .set _sendto, ___sendto 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _sendto$UNIX2003 32 - .set _sendto$UNIX2003, ___sendto 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _sendto 37 - .set _sendto, ___sendto 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _sendto 42 - .set _sendto, ___sendto 43 - #endif 44 -
-44
src/kernel/libsyscall/bsdsyscalls/___sendto_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sendto_nocancel 5 - #error "SYS_sendto_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sendto_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(sendto_nocancel, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___sendto_nocancel, sendto_nocancel, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _sendto$NOCANCEL$UNIX2003 22 - .set _sendto$NOCANCEL$UNIX2003, ___sendto_nocancel 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _sendto$NOCANCEL 27 - .set _sendto$NOCANCEL, ___sendto_nocancel 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _sendto$NOCANCEL$UNIX2003 32 - .set _sendto$NOCANCEL$UNIX2003, ___sendto_nocancel 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _sendto$NOCANCEL 37 - .set _sendto$NOCANCEL, ___sendto_nocancel 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _sendto$NOCANCEL 42 - .set _sendto$NOCANCEL, ___sendto_nocancel 43 - #endif 44 -
-45
src/kernel/libsyscall/bsdsyscalls/___setattrlist.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setattrlist 5 - #error "SYS_setattrlist not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setattrlist) 10 - ZERO_EXTEND(4) 11 - ZERO_EXTEND(3) 12 - SYSCALL_NONAME(setattrlist, 5, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(___setattrlist, setattrlist, 5, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _setattrlist$UNIX2003 23 - .set _setattrlist$UNIX2003, ___setattrlist 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _setattrlist 28 - .set _setattrlist, ___setattrlist 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _setattrlist$UNIX2003 33 - .set _setattrlist$UNIX2003, ___setattrlist 34 - #endif 35 - 36 - #if defined(__arm__) 37 - .globl _setattrlist 38 - .set _setattrlist, ___setattrlist 39 - #endif 40 - 41 - #if defined(__arm64__) 42 - .globl _setattrlist 43 - .set _setattrlist, ___setattrlist 44 - #endif 45 -
-18
src/kernel/libsyscall/bsdsyscalls/___setlogin.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setlogin 5 - #error "SYS_setlogin not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setlogin) 10 - SYSCALL_NONAME(setlogin, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setlogin, setlogin, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___setpriority.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setpriority 5 - #error "SYS_setpriority not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setpriority) 10 - SYSCALL_NONAME(setpriority, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setpriority, setpriority, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___setregid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setregid 5 - #error "SYS_setregid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setregid) 10 - SYSCALL_NONAME(setregid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setregid, setregid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _setregid$UNIX2003 21 - .set _setregid$UNIX2003, ___setregid 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _setregid 26 - .set _setregid, ___setregid 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _setregid$UNIX2003 31 - .set _setregid$UNIX2003, ___setregid 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _setregid 36 - .set _setregid, ___setregid 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _setregid 41 - .set _setregid, ___setregid 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___setreuid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setreuid 5 - #error "SYS_setreuid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setreuid) 10 - SYSCALL_NONAME(setreuid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setreuid, setreuid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _setreuid$UNIX2003 21 - .set _setreuid$UNIX2003, ___setreuid 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _setreuid 26 - .set _setreuid, ___setreuid 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _setreuid$UNIX2003 31 - .set _setreuid$UNIX2003, ___setreuid 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _setreuid 36 - .set _setreuid, ___setreuid 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _setreuid 41 - .set _setreuid, ___setreuid 42 - #endif 43 -
-28
src/kernel/libsyscall/bsdsyscalls/___setrlimit.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setrlimit 5 - #error "SYS_setrlimit not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setrlimit) 10 - SYSCALL_NONAME(setrlimit, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setrlimit, setrlimit, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _setrlimit 21 - .set _setrlimit, ___setrlimit 22 - #endif 23 - 24 - #if defined(__ppc__) 25 - .globl _setrlimit 26 - .set _setrlimit, ___setrlimit 27 - #endif 28 -
-43
src/kernel/libsyscall/bsdsyscalls/___setsgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setsgroups 5 - #error "SYS_setsgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setsgroups) 10 - SYSCALL_NONAME(setsgroups, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setsgroups, setsgroups, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _setsgroups_np 21 - .set _setsgroups_np, ___setsgroups 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _setsgroups_np 26 - .set _setsgroups_np, ___setsgroups 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _setsgroups_np 31 - .set _setsgroups_np, ___setsgroups 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _setsgroups_np 36 - .set _setsgroups_np, ___setsgroups 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _setsgroups_np 41 - .set _setsgroups_np, ___setsgroups 42 - #endif 43 -
-43
src/kernel/libsyscall/bsdsyscalls/___settid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_settid 5 - #error "SYS_settid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___settid) 10 - SYSCALL_NONAME(settid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___settid, settid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _pthread_setugid_np 21 - .set _pthread_setugid_np, ___settid 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _pthread_setugid_np 26 - .set _pthread_setugid_np, ___settid 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _pthread_setugid_np 31 - .set _pthread_setugid_np, ___settid 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _pthread_setugid_np 36 - .set _pthread_setugid_np, ___settid 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _pthread_setugid_np 41 - .set _pthread_setugid_np, ___settid 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___settid_with_pid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_settid_with_pid 5 - #error "SYS_settid_with_pid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___settid_with_pid) 10 - SYSCALL_NONAME(settid_with_pid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___settid_with_pid, settid_with_pid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___settimeofday.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_settimeofday 5 - #error "SYS_settimeofday not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___settimeofday) 10 - SYSCALL_NONAME(settimeofday, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___settimeofday, settimeofday, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___setwgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setwgroups 5 - #error "SYS_setwgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___setwgroups) 10 - SYSCALL_NONAME(setwgroups, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___setwgroups, setwgroups, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _setwgroups_np 21 - .set _setwgroups_np, ___setwgroups 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _setwgroups_np 26 - .set _setwgroups_np, ___setwgroups 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _setwgroups_np 31 - .set _setwgroups_np, ___setwgroups 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _setwgroups_np 36 - .set _setwgroups_np, ___setwgroups 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _setwgroups_np 41 - .set _setwgroups_np, ___setwgroups 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/___sfi_ctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sfi_ctl 5 - #error "SYS_sfi_ctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sfi_ctl) 10 - SYSCALL_NONAME(sfi_ctl, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sfi_ctl, sfi_ctl, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___sfi_pidctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sfi_pidctl 5 - #error "SYS_sfi_pidctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sfi_pidctl) 10 - SYSCALL_NONAME(sfi_pidctl, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sfi_pidctl, sfi_pidctl, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___shared_region_check_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shared_region_check_np 5 - #error "SYS_shared_region_check_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___shared_region_check_np) 10 - SYSCALL_NONAME(shared_region_check_np, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___shared_region_check_np, shared_region_check_np, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___shared_region_map_and_slide_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shared_region_map_and_slide_np 5 - #error "SYS_shared_region_map_and_slide_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___shared_region_map_and_slide_np) 10 - SYSCALL_NONAME(shared_region_map_and_slide_np, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___shared_region_map_and_slide_np, shared_region_map_and_slide_np, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-38
src/kernel/libsyscall/bsdsyscalls/___shm_open.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shm_open 5 - #error "SYS_shm_open not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___shm_open) 10 - SYSCALL_NONAME(shm_open, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___shm_open, shm_open, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _shm_open 21 - .set _shm_open, ___shm_open 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _shm_open 26 - .set _shm_open, ___shm_open 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _shm_open 31 - .set _shm_open, ___shm_open 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _shm_open 36 - .set _shm_open, ___shm_open 37 - #endif 38 -
-43
src/kernel/libsyscall/bsdsyscalls/___shmctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shmctl 5 - #error "SYS_shmctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___shmctl) 10 - SYSCALL_NONAME(shmctl, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___shmctl, shmctl, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _shmctl$UNIX2003 21 - .set _shmctl$UNIX2003, ___shmctl 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _shmctl 26 - .set _shmctl, ___shmctl 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _shmctl$UNIX2003 31 - .set _shmctl$UNIX2003, ___shmctl 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _shmctl 36 - .set _shmctl, ___shmctl 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _shmctl 41 - .set _shmctl, ___shmctl 42 - #endif 43 -
-38
src/kernel/libsyscall/bsdsyscalls/___shmsys.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shmsys 5 - #error "SYS_shmsys not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___shmsys) 10 - SYSCALL_NONAME(shmsys, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___shmsys, shmsys, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _shmsys 21 - .set _shmsys, ___shmsys 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _shmsys 26 - .set _shmsys, ___shmsys 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _shmsys 31 - .set _shmsys, ___shmsys 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _shmsys 36 - .set _shmsys, ___shmsys 37 - #endif 38 -
-18
src/kernel/libsyscall/bsdsyscalls/___sigaction.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sigaction 5 - #error "SYS_sigaction not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sigaction) 10 - SYSCALL_NONAME(sigaction, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sigaction, sigaction, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-59
src/kernel/libsyscall/bsdsyscalls/___sigaltstack.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - 29 - #include "SYS.h" 30 - 31 - #if defined(__x86_64__) 32 - 33 - __SYSCALL(___sigaltstack, sigaltstack, 3) 34 - 35 - #elif defined(__i386__) 36 - 37 - __SYSCALL_INT(___sigaltstack, sigaltstack, 3) 38 - 39 - #elif defined(__arm__) 40 - 41 - __SYSCALL(___sigaltstack, sigaltstack, 3) 42 - 43 - #elif defined(__arm64__) 44 - 45 - __SYSCALL(___sigaltstack, sigaltstack, 3) 46 - 47 - #else 48 - #error Unsupported architecture 49 - #endif 50 - #if defined(__i386__) 51 - .globl _sigaltstack 52 - .set _sigaltstack, ___sigaltstack 53 - #endif 54 - 55 - #if defined(__ppc__) 56 - .globl _sigaltstack 57 - .set _sigaltstack, ___sigaltstack 58 - #endif 59 -
+19 -21
src/kernel/libsyscall/bsdsyscalls/___sigreturn.S src/kernel/libsyscall/mach/task.c
··· 1 1 /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 2 + * Copyright (c) 2020 Apple Inc. All rights reserved. 3 3 * 4 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 5 + * 6 6 * This file contains Original Code and/or Modifications of Original Code 7 7 * as defined in and that are subject to the Apple Public Source License 8 8 * Version 2.0 (the 'License'). You may not use this file except in ··· 11 11 * unlawful or unlicensed copies of an Apple operating system, or to 12 12 * circumvent, violate, or enable the circumvention or violation of, any 13 13 * terms of an Apple operating system software license agreement. 14 - * 14 + * 15 15 * Please obtain a copy of the License at 16 16 * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 17 + * 18 18 * The Original Code and all software distributed under the License are 19 19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ··· 22 22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 23 * Please see the License for the specific language governing rights and 24 24 * limitations under the License. 25 - * 25 + * 26 26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 27 */ 28 28 29 - #include "SYS.h" 30 - 31 - #if defined(__x86_64__) 32 - 33 - __SYSCALL(___sigreturn, sigreturn, 3) 34 - 35 - #elif defined(__i386__) 36 - 37 - __SYSCALL_INT(___sigreturn, sigreturn, 3) 29 + #undef _task_user_ 30 + #include <mach/task_internal.h> 38 31 39 - #elif defined(__arm__) 32 + extern mach_port_t mach_task_self_; 40 33 41 - __SYSCALL(___sigreturn, sigreturn, 3) 34 + boolean_t 35 + mach_task_is_self(task_name_t task) 36 + { 37 + boolean_t is_self; 38 + kern_return_t kr; 42 39 43 - #elif defined(__arm64__) 40 + if (task == mach_task_self_) { 41 + return TRUE; 42 + } 44 43 45 - __SYSCALL(___sigreturn, sigreturn, 3) 44 + kr = _kernelrpc_mach_task_is_self(task, &is_self); 46 45 47 - #else 48 - #error Unsupported architecture 49 - #endif 46 + return kr == KERN_SUCCESS && is_self; 47 + }
-18
src/kernel/libsyscall/bsdsyscalls/___sigsuspend.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sigsuspend 5 - #error "SYS_sigsuspend not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sigsuspend) 10 - SYSCALL_NONAME(sigsuspend, 1, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sigsuspend, sigsuspend, 1, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___sigsuspend_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sigsuspend_nocancel 5 - #error "SYS_sigsuspend_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sigsuspend_nocancel) 10 - SYSCALL_NONAME(sigsuspend_nocancel, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sigsuspend_nocancel, sigsuspend_nocancel, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___sigwait.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS___sigwait 5 - #error "SYS___sigwait not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sigwait) 10 - SYSCALL_NONAME(__sigwait, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___sigwait, __sigwait, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___socketpair.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_socketpair 5 - #error "SYS_socketpair not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___socketpair) 10 - SYSCALL_NONAME(socketpair, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___socketpair, socketpair, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _socketpair$UNIX2003 21 - .set _socketpair$UNIX2003, ___socketpair 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _socketpair 26 - .set _socketpair, ___socketpair 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _socketpair$UNIX2003 31 - .set _socketpair$UNIX2003, ___socketpair 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _socketpair 36 - .set _socketpair, ___socketpair 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _socketpair 41 - .set _socketpair, ___socketpair 42 - #endif 43 -
-19
src/kernel/libsyscall/bsdsyscalls/___stack_snapshot_with_config.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_stack_snapshot_with_config 5 - #error "SYS_stack_snapshot_with_config not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___stack_snapshot_with_config) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(stack_snapshot_with_config, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___stack_snapshot_with_config, stack_snapshot_with_config, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/___stat64_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_stat64_extended 5 - #error "SYS_stat64_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___stat64_extended) 10 - SYSCALL_NONAME(stat64_extended, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___stat64_extended, stat64_extended, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___stat_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_stat_extended 5 - #error "SYS_stat_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___stat_extended) 10 - SYSCALL_NONAME(stat_extended, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___stat_extended, stat_extended, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-98
src/kernel/libsyscall/bsdsyscalls/___syscall.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. */ 29 - 30 - #include "SYS.h" 31 - 32 - #if defined(__i386__) 33 - 34 - LEAF(___syscall, 0) 35 - popl %ecx // ret addr 36 - popl %eax // syscall number 37 - pushl %ecx 38 - UNIX_SYSCALL_TRAP 39 - movl (%esp),%edx // add one element to stack so 40 - pushl %edx // caller "pop" will work 41 - jnb 2f 42 - BRANCH_EXTERN(tramp_cerror) 43 - 2: 44 - END(___syscall) 45 - 46 - #elif defined(__x86_64__) 47 - 48 - // For x86-64, the kernel slides the argument list for us. 49 - // The number of arguments here is variable, but our macros ignore 50 - // that value anyway. 51 - __SYSCALL(___syscall, syscall, 0); 52 - 53 - #elif defined(__arm__) 54 - 55 - __SYSCALL(___syscall, syscall, 7) 56 - 57 - #elif defined(__arm64__) 58 - 59 - /* 60 - * Ignore nominal number of arguments: just pop from stack and let the kernel 61 - * interpret. 62 - */ 63 - #include <mach/arm64/asm.h> 64 - MI_ENTRY_POINT(___syscall) 65 - ldp x1, x2, [sp] 66 - ldp x3, x4, [sp, #16] 67 - ldp x5, x6, [sp, #32] 68 - ldr x7, [sp, #48] 69 - DO_SYSCALL(SYS_syscall, cerror) 70 - ret 71 - #else 72 - #error Unsupported architecture 73 - #endif 74 - #if defined(__i386__) 75 - .globl _syscall 76 - .set _syscall, ___syscall 77 - #endif 78 - 79 - #if defined(__x86_64__) 80 - .globl _syscall 81 - .set _syscall, ___syscall 82 - #endif 83 - 84 - #if defined(__ppc__) 85 - .globl _syscall 86 - .set _syscall, ___syscall 87 - #endif 88 - 89 - #if defined(__arm__) 90 - .globl _syscall 91 - .set _syscall, ___syscall 92 - #endif 93 - 94 - #if defined(__arm64__) 95 - .globl _syscall 96 - .set _syscall, ___syscall 97 - #endif 98 -
-19
src/kernel/libsyscall/bsdsyscalls/___sysctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sysctl 5 - #error "SYS_sysctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sysctl) 10 - ZERO_EXTEND(5) 11 - SYSCALL_NONAME(sysctl, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___sysctl, sysctl, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-20
src/kernel/libsyscall/bsdsyscalls/___sysctlbyname.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sysctlbyname 5 - #error "SYS_sysctlbyname not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___sysctlbyname) 10 - ZERO_EXTEND(1) 11 - ZERO_EXTEND(5) 12 - SYSCALL_NONAME(sysctlbyname, 6, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(___sysctlbyname, sysctlbyname, 6, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-18
src/kernel/libsyscall/bsdsyscalls/___telemetry.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 48 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_telemetry 5 - #error "SYS_telemetry not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___telemetry) 10 - SYSCALL_NONAME(telemetry, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___telemetry, telemetry, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___terminate_with_payload.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 36 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_terminate_with_payload 5 - #error "SYS_terminate_with_payload not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___terminate_with_payload) 10 - SYSCALL_NONAME(terminate_with_payload, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___terminate_with_payload, terminate_with_payload, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
+13 -23
src/kernel/libsyscall/bsdsyscalls/___thread_selfid.S src/kernel/libsyscall/wrappers/system-version-compat-support.h
··· 1 1 /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 2 + * Copyright (c) 2020 Apple Inc. All rights reserved. 3 3 * 4 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 5 + * 6 6 * This file contains Original Code and/or Modifications of Original Code 7 7 * as defined in and that are subject to the Apple Public Source License 8 8 * Version 2.0 (the 'License'). You may not use this file except in ··· 11 11 * unlawful or unlicensed copies of an Apple operating system, or to 12 12 * circumvent, violate, or enable the circumvention or violation of, any 13 13 * terms of an Apple operating system software license agreement. 14 - * 14 + * 15 15 * Please obtain a copy of the License at 16 16 * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 17 + * 18 18 * The Original Code and all software distributed under the License are 19 19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, ··· 22 22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 23 * Please see the License for the specific language governing rights and 24 24 * limitations under the License. 25 - * 25 + * 26 26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 27 */ 28 - 29 - #include "SYS.h" 30 - 31 - #if defined(__x86_64__) 32 - 33 - __SYSCALL(___thread_selfid, thread_selfid, 0) 34 - 35 - #elif defined(__i386__) 36 - 37 - __SYSCALL_INT(___thread_selfid, thread_selfid, 0) 38 - 39 - #elif defined(__arm__) 40 - 41 - __SYSCALL(___thread_selfid, thread_selfid, 0) 42 - 43 - #elif defined(__arm64__) 28 + #ifndef __SYSTEM_VERSION_COMPAT_SUPPORT_H 29 + #define __SYSTEM_VERSION_COMPAT_SUPPORT_H 44 30 45 - __SYSCALL(___thread_selfid, thread_selfid, 0) 31 + typedef enum system_version_compat_mode { 32 + SYSTEM_VERSION_COMPAT_MODE_DISABLED = 0, 33 + SYSTEM_VERSION_COMPAT_MODE_MACOSX = 1, 34 + SYSTEM_VERSION_COMPAT_MODE_IOS = 2, 35 + } system_version_compat_mode_t; 46 36 47 - #endif 37 + #endif /* __SYSTEM_VERSION_COMPAT_SUPPORT_H */
-47
src/kernel/libsyscall/bsdsyscalls/___thread_selfusage.S
··· 1 - /* 2 - * Copyright (c) 2014 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - 29 - #include "SYS.h" 30 - 31 - #if defined(__x86_64__) 32 - 33 - __SYSCALL(___thread_selfusage, thread_selfusage, 0) 34 - 35 - #elif defined(__i386__) 36 - 37 - __SYSCALL_INT(___thread_selfusage, thread_selfusage, 0) 38 - 39 - #elif defined(__arm__) 40 - 41 - __SYSCALL(___thread_selfusage, thread_selfusage, 0) 42 - 43 - #elif defined(__arm64__) 44 - 45 - __SYSCALL(___thread_selfusage, thread_selfusage, 0) 46 - 47 - #endif
-18
src/kernel/libsyscall/bsdsyscalls/___ulock_wait.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ulock_wait 5 - #error "SYS_ulock_wait not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___ulock_wait) 10 - SYSCALL_NONAME(ulock_wait, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___ulock_wait, ulock_wait, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___ulock_wake.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ulock_wake 5 - #error "SYS_ulock_wake not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___ulock_wake) 10 - SYSCALL_NONAME(ulock_wake, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___ulock_wake, ulock_wake, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___umask_extended.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_umask_extended 5 - #error "SYS_umask_extended not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___umask_extended) 10 - SYSCALL_NONAME(umask_extended, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___umask_extended, umask_extended, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___unlink.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_unlink 5 - #error "SYS_unlink not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___unlink) 10 - SYSCALL_NONAME(unlink, 1, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___unlink, unlink, 1, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___unlinkat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_unlinkat 5 - #error "SYS_unlinkat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___unlinkat) 10 - SYSCALL_NONAME(unlinkat, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___unlinkat, unlinkat, 3, cerror) 15 - #endif 16 - 17 - #endif 18 -
-279
src/kernel/libsyscall/bsdsyscalls/___vfork.S
··· 1 - /* 2 - * Copyright (c) 1999-2007 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1998 Apple Computer, Inc. All rights reserved. 29 - * 30 - * File: libc/ppc/sys/vfork.s 31 - * 32 - * HISTORY 33 - * 23-Jun-1998 Umesh Vaishampayan (umeshv@apple.com) 34 - * Created from fork.s 35 - * 36 - */ 37 - 38 - #include "SYS.h" 39 - 40 - #if defined(__i386__) 41 - 42 - #if defined(__DYNAMIC__) 43 - #define GET_CURRENT_PID PICIFY(__current_pid) 44 - 45 - NON_LAZY_STUB(__current_pid) 46 - #define __current_pid (%edx) 47 - #else 48 - #define GET_CURRENT_PID 49 - #endif 50 - 51 - /* 52 - * If __current_pid >= 0, we want to put a -1 in there 53 - * otherwise we just decrement it 54 - */ 55 - 56 - LEAF(___vfork, 0) 57 - GET_CURRENT_PID 58 - movl __current_pid, %eax 59 - 0: 60 - xorl %ecx, %ecx 61 - testl %eax, %eax 62 - cmovs %eax, %ecx 63 - decl %ecx 64 - lock 65 - cmpxchgl %ecx, __current_pid 66 - jne 0b 67 - popl %ecx 68 - movl $(SYS_vfork), %eax // code for vfork -> eax 69 - UNIX_SYSCALL_TRAP // do the system call 70 - jnb L1 // jump if CF==0 71 - GET_CURRENT_PID 72 - lock 73 - incl __current_pid 74 - pushl %ecx 75 - BRANCH_EXTERN(tramp_cerror) 76 - 77 - L1: 78 - testl %edx, %edx // CF=OF=0, ZF set if zero result 79 - jz L2 // parent, since r1 == 0 in parent, 1 in child 80 - xorl %eax, %eax // zero eax 81 - jmp *%ecx 82 - 83 - L2: 84 - GET_CURRENT_PID 85 - lock 86 - incl __current_pid 87 - jmp *%ecx 88 - 89 - #elif defined(__x86_64__) 90 - 91 - /* 92 - * If __current_pid >= 0, we want to put a -1 in there 93 - * otherwise we just decrement it 94 - */ 95 - 96 - LEAF(___vfork, 0) 97 - movq __current_pid@GOTPCREL(%rip), %rax 98 - movl (%rax), %eax 99 - 0: 100 - xorl %ecx, %ecx 101 - testl %eax, %eax 102 - cmovs %eax, %ecx 103 - subl $1, %ecx 104 - movq __current_pid@GOTPCREL(%rip), %rdx 105 - lock 106 - cmpxchgl %ecx, (%rdx) 107 - jne 0b 108 - #ifdef DARLING 109 - movl $ SYS_vfork, %eax 110 - call __darling_bsd_syscall 111 - cmpq $0, %rax 112 - jnb L1 113 - #else 114 - popq %rdi // return address in %rdi 115 - movq $ SYSCALL_CONSTRUCT_UNIX(SYS_vfork), %rax // code for vfork -> rax 116 - UNIX_SYSCALL_TRAP // do the system call 117 - jnb L1 // jump if CF==0 118 - pushq %rdi // put return address back on stack for cerror 119 - #endif 120 - movq __current_pid@GOTPCREL(%rip), %rcx 121 - lock 122 - addl $1, (%rcx) 123 - movq %rax, %rdi 124 - BRANCH_EXTERN(_cerror) 125 - 126 - L1: 127 - #ifdef DARLING 128 - testl %eax, %eax 129 - jnz L2 130 - #else 131 - testl %edx, %edx // CF=OF=0, ZF set if zero result 132 - jz L2 // parent, since r1 == 0 in parent, 1 in child 133 - #endif 134 - xorq %rax, %rax // zero rax 135 - #ifdef DARLING 136 - ret 137 - #else 138 - jmp *%rdi 139 - #endif 140 - 141 - L2: 142 - movq __current_pid@GOTPCREL(%rip), %rdx 143 - lock 144 - addl $1, (%rdx) 145 - #ifdef DARLING 146 - ret 147 - #else 148 - jmp *%rdi 149 - #endif 150 - 151 - #elif defined(__arm__) 152 - 153 - #include <arm/arch.h> 154 - 155 - .globl cerror 156 - MI_ENTRY_POINT(___vfork) 157 - 158 - MI_GET_ADDRESS(r3, __current_pid) // get address of __current_pid 159 - #ifdef _ARM_ARCH_6 160 - L0: 161 - ldrex r1, [r3] 162 - subs r1, r1, #1 // if __current_pid <= 0, decrement it 163 - movpl r1, #-1 // otherwise put -1 in there 164 - strex r2, r1, [r3] 165 - cmp r2, #0 166 - bne L0 167 - #else 168 - mov r2, #0x80000000 // load "looking" value 169 - L0: 170 - swp r1, r2, [r3] // look at the value, lock others out 171 - cmp r1, r2 // anyone else trying to look? 172 - beq L0 // yes, so wait our turn 173 - subs r1, r1, #1 // if __current_pid <= 0, decrement it 174 - movpl r1, #-1 // otherwise put -1 in there 175 - str r1, [r3] 176 - #endif 177 - 178 - mov r1, #1 // prime results 179 - mov r12, #SYS_vfork 180 - swi #SWI_SYSCALL // make the syscall 181 - bcs Lbotch // error? 182 - cmp r1, #0 // parent (r1=0) or child(r1=1) 183 - beq Lparent 184 - 185 - //child here... 186 - mov r0, #0 187 - bx lr // return 188 - 189 - Lbotch: 190 - MI_CALL_EXTERNAL(_cerror) // jump here on error 191 - mov r0,#-1 // set the error 192 - // reload values clobbered by cerror (so we can treat them as live in Lparent) 193 - MI_GET_ADDRESS(r3, __current_pid) // get address of __current_pid 194 - #ifndef _ARM_ARCH_6 195 - mov r2, #0x80000000 // load "looking" value 196 - #endif 197 - // fall thru 198 - 199 - Lparent: 200 - #ifdef _ARM_ARCH_6 201 - ldrex r1, [r3] 202 - add r1, r1, #1 // we're back, decrement vfork count 203 - strex r2, r1, [r3] 204 - cmp r2, #0 205 - bne Lparent 206 - #else 207 - swp r1, r2, [r3] // look at the value, lock others out 208 - cmp r1, r2 // anyone else trying to look? 209 - beq Lparent // yes, so wait our turn 210 - add r1, r1, #1 // we're back, decrement vfork count 211 - str r1, [r3] 212 - #endif 213 - 214 - bx lr // return 215 - 216 - #elif defined(__arm64__) 217 - 218 - MI_ENTRY_POINT(___vfork) 219 - 220 - MI_GET_ADDRESS(x9, __current_pid) 221 - Ltry_set_vfork: 222 - ldxr w10, [x9] // Get old current pid value (exclusive) 223 - mov w11, #-1 // Will be -1 if current value is positive 224 - subs w10, w10, #1 // Subtract one 225 - csel w12, w11, w10, pl // If >= 0, set to -1, else set to (current - 1) 226 - stxr w13, w12, [x9] // Attempt exclusive store to current pid 227 - cbnz w13, Ltry_set_vfork // If store failed, retry 228 - 229 - // ARM sets r1 to 1 here. I don't see why. 230 - mov w16, #SYS_vfork // Set syscall code 231 - svc #SWI_SYSCALL 232 - b.cs Lbotch 233 - cbz w1, Lparent 234 - 235 - // Child 236 - mov w0, #0 237 - ret 238 - 239 - // Error case 240 - Lbotch: 241 - bl _cerror // Update errno 242 - mov w0, #-1 // Set return value 243 - MI_GET_ADDRESS(x9, __current_pid) // Reload current pid address 244 - // Fall through 245 - Lparent: 246 - ldxr w10, [x9] // Exclusive load current pid value 247 - add w10, w10, #1 // Increment (i.e. decrement vfork count) 248 - stxr w11, w10, [x9] // Attempt exclusive store of updated vfork count 249 - cbnz w11, Lparent // If exclusive store failed, retry 250 - ret // Done, return 251 - 252 - #else 253 - #error Unsupported architecture 254 - #endif 255 - #if defined(__i386__) 256 - .globl _vfork 257 - .set _vfork, ___vfork 258 - #endif 259 - 260 - #if defined(__x86_64__) 261 - .globl _vfork 262 - .set _vfork, ___vfork 263 - #endif 264 - 265 - #if defined(__ppc__) 266 - .globl _vfork 267 - .set _vfork, ___vfork 268 - #endif 269 - 270 - #if defined(__arm__) 271 - .globl _vfork 272 - .set _vfork, ___vfork 273 - #endif 274 - 275 - #if defined(__arm64__) 276 - .globl _vfork 277 - .set _vfork, ___vfork 278 - #endif 279 -
-18
src/kernel/libsyscall/bsdsyscalls/___wait4.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_wait4 5 - #error "SYS_wait4 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___wait4) 10 - SYSCALL_NONAME(wait4, 4, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___wait4, wait4, 4, cerror) 15 - #endif 16 - 17 - #endif 18 -
-43
src/kernel/libsyscall/bsdsyscalls/___wait4_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_wait4_nocancel 5 - #error "SYS_wait4_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___wait4_nocancel) 10 - SYSCALL_NONAME(wait4_nocancel, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___wait4_nocancel, wait4_nocancel, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _wait4 21 - .set _wait4, ___wait4_nocancel 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _wait4 26 - .set _wait4, ___wait4_nocancel 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _wait4 31 - .set _wait4, ___wait4_nocancel 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _wait4 36 - .set _wait4, ___wait4_nocancel 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _wait4 41 - .set _wait4, ___wait4_nocancel 42 - #endif 43 -
-47
src/kernel/libsyscall/bsdsyscalls/___waitid_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_waitid_nocancel 5 - #error "SYS_waitid_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___waitid_nocancel) 10 - SYSCALL_NONAME(waitid_nocancel, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___waitid_nocancel, waitid_nocancel, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _waitid 21 - .set _waitid, ___waitid_nocancel 22 - .globl _waitid$NOCANCEL$UNIX2003 23 - .set _waitid$NOCANCEL$UNIX2003, ___waitid_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _waitid$NOCANCEL 28 - .set _waitid$NOCANCEL, ___waitid_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _waitid 33 - .set _waitid, ___waitid_nocancel 34 - .globl _waitid$NOCANCEL$UNIX2003 35 - .set _waitid$NOCANCEL$UNIX2003, ___waitid_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _waitid$NOCANCEL 40 - .set _waitid$NOCANCEL, ___waitid_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _waitid$NOCANCEL 45 - .set _waitid$NOCANCEL, ___waitid_nocancel 46 - #endif 47 -
-19
src/kernel/libsyscall/bsdsyscalls/___work_interval_ctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_work_interval_ctl 5 - #error "SYS_work_interval_ctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___work_interval_ctl) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(work_interval_ctl, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___work_interval_ctl, work_interval_ctl, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/___workq_kernreturn.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_workq_kernreturn 5 - #error "SYS_workq_kernreturn not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___workq_kernreturn) 10 - SYSCALL_NONAME(workq_kernreturn, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___workq_kernreturn, workq_kernreturn, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/___workq_open.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_workq_open 5 - #error "SYS_workq_open not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___workq_open) 10 - SYSCALL_NONAME(workq_open, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___workq_open, workq_open, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-48
src/kernel/libsyscall/bsdsyscalls/___write_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_write_nocancel 5 - #error "SYS_write_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___write_nocancel) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(write_nocancel, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(___write_nocancel, write_nocancel, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _write 22 - .set _write, ___write_nocancel 23 - .globl _write$NOCANCEL$UNIX2003 24 - .set _write$NOCANCEL$UNIX2003, ___write_nocancel 25 - #endif 26 - 27 - #if defined(__x86_64__) 28 - .globl _write$NOCANCEL 29 - .set _write$NOCANCEL, ___write_nocancel 30 - #endif 31 - 32 - #if defined(__ppc__) 33 - .globl _write 34 - .set _write, ___write_nocancel 35 - .globl _write$NOCANCEL$UNIX2003 36 - .set _write$NOCANCEL$UNIX2003, ___write_nocancel 37 - #endif 38 - 39 - #if defined(__arm__) 40 - .globl _write$NOCANCEL 41 - .set _write$NOCANCEL, ___write_nocancel 42 - #endif 43 - 44 - #if defined(__arm64__) 45 - .globl _write$NOCANCEL 46 - .set _write$NOCANCEL, ___write_nocancel 47 - #endif 48 -
-47
src/kernel/libsyscall/bsdsyscalls/___writev_nocancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_writev_nocancel 5 - #error "SYS_writev_nocancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(___writev_nocancel) 10 - SYSCALL_NONAME(writev_nocancel, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(___writev_nocancel, writev_nocancel, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _writev 21 - .set _writev, ___writev_nocancel 22 - .globl _writev$NOCANCEL$UNIX2003 23 - .set _writev$NOCANCEL$UNIX2003, ___writev_nocancel 24 - #endif 25 - 26 - #if defined(__x86_64__) 27 - .globl _writev$NOCANCEL 28 - .set _writev$NOCANCEL, ___writev_nocancel 29 - #endif 30 - 31 - #if defined(__ppc__) 32 - .globl _writev 33 - .set _writev, ___writev_nocancel 34 - .globl _writev$NOCANCEL$UNIX2003 35 - .set _writev$NOCANCEL$UNIX2003, ___writev_nocancel 36 - #endif 37 - 38 - #if defined(__arm__) 39 - .globl _writev$NOCANCEL 40 - .set _writev$NOCANCEL, ___writev_nocancel 41 - #endif 42 - 43 - #if defined(__arm64__) 44 - .globl _writev$NOCANCEL 45 - .set _writev$NOCANCEL, ___writev_nocancel 46 - #endif 47 -
-18
src/kernel/libsyscall/bsdsyscalls/_access.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_access 5 - #error "SYS_access not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_access) 10 - SYSCALL_NONAME(access, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_access, access, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_acct.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_acct 5 - #error "SYS_acct not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_acct) 10 - SYSCALL_NONAME(acct, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_acct, acct, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_adjtime.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_adjtime 5 - #error "SYS_adjtime not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_adjtime) 10 - SYSCALL_NONAME(adjtime, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_adjtime, adjtime, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_aio_cancel.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_cancel 5 - #error "SYS_aio_cancel not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_cancel) 10 - SYSCALL_NONAME(aio_cancel, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_cancel, aio_cancel, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_aio_error.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_error 5 - #error "SYS_aio_error not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_error) 10 - SYSCALL_NONAME(aio_error, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_error, aio_error, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_aio_fsync.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_fsync 5 - #error "SYS_aio_fsync not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_fsync) 10 - SYSCALL_NONAME(aio_fsync, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_fsync, aio_fsync, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_aio_read.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_read 5 - #error "SYS_aio_read not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_read) 10 - SYSCALL_NONAME(aio_read, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_read, aio_read, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_aio_return.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_return 5 - #error "SYS_aio_return not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_return) 10 - SYSCALL_NONAME(aio_return, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_return, aio_return, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-30
src/kernel/libsyscall/bsdsyscalls/_aio_suspend.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_suspend 5 - #error "SYS_aio_suspend not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_suspend) 10 - SYSCALL_NONAME(aio_suspend, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_suspend, aio_suspend, 3, cerror) 15 - #else 16 - __SYSCALL2(___aio_suspend, aio_suspend, 3, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _aio_suspend$UNIX2003 23 - .set _aio_suspend$UNIX2003, ___aio_suspend 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _aio_suspend$UNIX2003 28 - .set _aio_suspend$UNIX2003, ___aio_suspend 29 - #endif 30 -
-18
src/kernel/libsyscall/bsdsyscalls/_aio_write.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_aio_write 5 - #error "SYS_aio_write not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_aio_write) 10 - SYSCALL_NONAME(aio_write, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_aio_write, aio_write, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_audit.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_audit 5 - #error "SYS_audit not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_audit) 10 - SYSCALL_NONAME(audit, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_audit, audit, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_audit_session_join.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_audit_session_join 5 - #error "SYS_audit_session_join not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_audit_session_join) 10 - SYSCALL_NONAME(audit_session_join, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_audit_session_join, audit_session_join, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_audit_session_port.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_audit_session_port 5 - #error "SYS_audit_session_port not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_audit_session_port) 10 - SYSCALL_NONAME(audit_session_port, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_audit_session_port, audit_session_port, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_audit_session_self.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_audit_session_self 5 - #error "SYS_audit_session_self not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_audit_session_self) 10 - SYSCALL_NONAME(audit_session_self, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_audit_session_self, audit_session_self, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_auditctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_auditctl 5 - #error "SYS_auditctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_auditctl) 10 - SYSCALL_NONAME(auditctl, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_auditctl, auditctl, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_auditon.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_auditon 5 - #error "SYS_auditon not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_auditon) 10 - SYSCALL_NONAME(auditon, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_auditon, auditon, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_change_fdguard_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_change_fdguard_np 5 - #error "SYS_change_fdguard_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_change_fdguard_np) 10 - SYSCALL_NONAME(change_fdguard_np, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_change_fdguard_np, change_fdguard_np, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_chdir.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_chdir 5 - #error "SYS_chdir not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_chdir) 10 - SYSCALL_NONAME(chdir, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_chdir, chdir, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_chflags.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_chflags 5 - #error "SYS_chflags not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_chflags) 10 - SYSCALL_NONAME(chflags, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_chflags, chflags, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_chown.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_chown 5 - #error "SYS_chown not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_chown) 10 - SYSCALL_NONAME(chown, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_chown, chown, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_chroot.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_chroot 5 - #error "SYS_chroot not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_chroot) 10 - SYSCALL_NONAME(chroot, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_chroot, chroot, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_clonefileat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_clonefileat 5 - #error "SYS_clonefileat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_clonefileat) 10 - SYSCALL_NONAME(clonefileat, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_clonefileat, clonefileat, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-30
src/kernel/libsyscall/bsdsyscalls/_close.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_close 5 - #error "SYS_close not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_close) 10 - SYSCALL_NONAME(close, 1, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_close, close, 1, cerror) 15 - #else 16 - __SYSCALL2(___close, close, 1, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _close$UNIX2003 23 - .set _close$UNIX2003, ___close 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _close$UNIX2003 28 - .set _close$UNIX2003, ___close 29 - #endif 30 -
-18
src/kernel/libsyscall/bsdsyscalls/_connectx.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 32 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_connectx 5 - #error "SYS_connectx not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_connectx) 10 - SYSCALL_NONAME(connectx, 8, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_connectx, connectx, 8, cerror) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_csops.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_csops 5 - #error "SYS_csops not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_csops) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(csops, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_csops, csops, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-19
src/kernel/libsyscall/bsdsyscalls/_csops_audittoken.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_csops_audittoken 5 - #error "SYS_csops_audittoken not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_csops_audittoken) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(csops_audittoken, 5, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_csops_audittoken, csops_audittoken, 5, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_disconnectx.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_disconnectx 5 - #error "SYS_disconnectx not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_disconnectx) 10 - SYSCALL_NONAME(disconnectx, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_disconnectx, disconnectx, 3, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_dup.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_dup 5 - #error "SYS_dup not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_dup) 10 - SYSCALL_NONAME(dup, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_dup, dup, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_dup2.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_dup2 5 - #error "SYS_dup2 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_dup2) 10 - SYSCALL_NONAME(dup2, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_dup2, dup2, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_exchangedata.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_exchangedata 5 - #error "SYS_exchangedata not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_exchangedata) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(exchangedata, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_exchangedata, exchangedata, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_execve.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_execve 5 - #error "SYS_execve not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_execve) 10 - SYSCALL_NONAME(execve, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_execve, execve, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_faccessat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_faccessat 5 - #error "SYS_faccessat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_faccessat) 10 - SYSCALL_NONAME(faccessat, 4, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_faccessat, faccessat, 4, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fchdir.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchdir 5 - #error "SYS_fchdir not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fchdir) 10 - SYSCALL_NONAME(fchdir, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fchdir, fchdir, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fchflags.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchflags 5 - #error "SYS_fchflags not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fchflags) 10 - SYSCALL_NONAME(fchflags, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fchflags, fchflags, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fchmodat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchmodat 5 - #error "SYS_fchmodat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fchmodat) 10 - SYSCALL_NONAME(fchmodat, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fchmodat, fchmodat, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fchown.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchown 5 - #error "SYS_fchown not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fchown) 10 - SYSCALL_NONAME(fchown, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fchown, fchown, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fchownat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fchownat 5 - #error "SYS_fchownat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fchownat) 10 - SYSCALL_NONAME(fchownat, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fchownat, fchownat, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fclonefileat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fclonefileat 5 - #error "SYS_fclonefileat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fclonefileat) 10 - SYSCALL_NONAME(fclonefileat, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fclonefileat, fclonefileat, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fdatasync.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fdatasync 5 - #error "SYS_fdatasync not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fdatasync) 10 - SYSCALL_NONAME(fdatasync, 1, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fdatasync, fdatasync, 1, cerror) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_ffsctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ffsctl 5 - #error "SYS_ffsctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_ffsctl) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(ffsctl, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_ffsctl, ffsctl, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-20
src/kernel/libsyscall/bsdsyscalls/_fgetattrlist.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fgetattrlist 5 - #error "SYS_fgetattrlist not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fgetattrlist) 10 - ZERO_EXTEND(3) 11 - ZERO_EXTEND(4) 12 - SYSCALL_NONAME(fgetattrlist, 5, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_fgetattrlist, fgetattrlist, 5, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-19
src/kernel/libsyscall/bsdsyscalls/_fgetxattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fgetxattr 5 - #error "SYS_fgetxattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fgetxattr) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(fgetxattr, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_fgetxattr, fgetxattr, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_fhopen.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fhopen 5 - #error "SYS_fhopen not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fhopen) 10 - SYSCALL_NONAME(fhopen, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fhopen, fhopen, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fileport_makefd.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fileport_makefd 5 - #error "SYS_fileport_makefd not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fileport_makefd) 10 - SYSCALL_NONAME(fileport_makefd, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fileport_makefd, fileport_makefd, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fileport_makeport.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fileport_makeport 5 - #error "SYS_fileport_makeport not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fileport_makeport) 10 - SYSCALL_NONAME(fileport_makeport, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fileport_makeport, fileport_makeport, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_flistxattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_flistxattr 5 - #error "SYS_flistxattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_flistxattr) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(flistxattr, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_flistxattr, flistxattr, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_flock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_flock 5 - #error "SYS_flock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_flock) 10 - SYSCALL_NONAME(flock, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_flock, flock, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fmount.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fmount 5 - #error "SYS_fmount not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fmount) 10 - SYSCALL_NONAME(fmount, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fmount, fmount, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fpathconf.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fpathconf 5 - #error "SYS_fpathconf not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fpathconf) 10 - SYSCALL_NONAME(fpathconf, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fpathconf, fpathconf, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_fremovexattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fremovexattr 5 - #error "SYS_fremovexattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fremovexattr) 10 - SYSCALL_NONAME(fremovexattr, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fremovexattr, fremovexattr, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_fsctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsctl 5 - #error "SYS_fsctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fsctl) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(fsctl, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_fsctl, fsctl, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-20
src/kernel/libsyscall/bsdsyscalls/_fsetattrlist.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsetattrlist 5 - #error "SYS_fsetattrlist not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fsetattrlist) 10 - ZERO_EXTEND(4) 11 - ZERO_EXTEND(3) 12 - SYSCALL_NONAME(fsetattrlist, 5, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_fsetattrlist, fsetattrlist, 5, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-19
src/kernel/libsyscall/bsdsyscalls/_fsetxattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsetxattr 5 - #error "SYS_fsetxattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fsetxattr) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(fsetxattr, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_fsetxattr, fsetxattr, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-19
src/kernel/libsyscall/bsdsyscalls/_fsgetpath.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsgetpath 5 - #error "SYS_fsgetpath not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fsgetpath) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(fsgetpath, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_fsgetpath, fsgetpath, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-19
src/kernel/libsyscall/bsdsyscalls/_fsgetpath_ext.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsgetpath_ext 5 - #error "SYS_fsgetpath_ext not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fsgetpath_ext) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(fsgetpath_ext, 5, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_fsgetpath_ext, fsgetpath_ext, 5, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-13
src/kernel/libsyscall/bsdsyscalls/_fstat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstat 5 - #error "SYS_fstat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_fstat, fstat, 2, cerror) 10 - #else 11 - __SYSCALL2(___fstat, fstat, 2, cerror) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_fstat64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstat64 5 - #error "SYS_fstat64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fstat64) 10 - SYSCALL_NONAME(fstat64, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fstat64, fstat64, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _fstat$INODE64 21 - .set _fstat$INODE64, _fstat64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _fstat$INODE64 26 - .set _fstat$INODE64, _fstat64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _fstat$INODE64 31 - .set _fstat$INODE64, _fstat64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _fstat 36 - .set _fstat, _fstat64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _fstat 41 - .set _fstat, _fstat64 42 - #endif 43 -
-13
src/kernel/libsyscall/bsdsyscalls/_fstatat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstatat 5 - #error "SYS_fstatat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_fstatat, fstatat, 4, cerror) 10 - #else 11 - __SYSCALL2(___fstatat, fstatat, 4, cerror) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_fstatat64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstatat64 5 - #error "SYS_fstatat64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fstatat64) 10 - SYSCALL_NONAME(fstatat64, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fstatat64, fstatat64, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _fstatat$INODE64 21 - .set _fstatat$INODE64, _fstatat64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _fstatat$INODE64 26 - .set _fstatat$INODE64, _fstatat64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _fstatat$INODE64 31 - .set _fstatat$INODE64, _fstatat64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _fstatat 36 - .set _fstatat, _fstatat64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _fstatat 41 - .set _fstatat, _fstatat64 42 - #endif 43 -
-13
src/kernel/libsyscall/bsdsyscalls/_fstatfs.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstatfs 5 - #error "SYS_fstatfs not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_fstatfs, fstatfs, 2, cerror_nocancel) 10 - #else 11 - __SYSCALL2(___fstatfs, fstatfs, 2, cerror_nocancel) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_fstatfs64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fstatfs64 5 - #error "SYS_fstatfs64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fstatfs64) 10 - SYSCALL_NONAME(fstatfs64, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fstatfs64, fstatfs64, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _fstatfs$INODE64 21 - .set _fstatfs$INODE64, _fstatfs64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _fstatfs$INODE64 26 - .set _fstatfs$INODE64, _fstatfs64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _fstatfs$INODE64 31 - .set _fstatfs$INODE64, _fstatfs64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _fstatfs 36 - .set _fstatfs, _fstatfs64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _fstatfs 41 - .set _fstatfs, _fstatfs64 42 - #endif 43 -
-30
src/kernel/libsyscall/bsdsyscalls/_fsync.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_fsync 5 - #error "SYS_fsync not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_fsync) 10 - SYSCALL_NONAME(fsync, 1, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_fsync, fsync, 1, cerror) 15 - #else 16 - __SYSCALL2(___fsync, fsync, 1, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _fsync$UNIX2003 23 - .set _fsync$UNIX2003, ___fsync 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _fsync$UNIX2003 28 - .set _fsync$UNIX2003, ___fsync 29 - #endif 30 -
-18
src/kernel/libsyscall/bsdsyscalls/_ftruncate.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ftruncate 5 - #error "SYS_ftruncate not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_ftruncate) 10 - SYSCALL_NONAME(ftruncate, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_ftruncate, ftruncate, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_futimes.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_futimes 5 - #error "SYS_futimes not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_futimes) 10 - SYSCALL_NONAME(futimes, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_futimes, futimes, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-20
src/kernel/libsyscall/bsdsyscalls/_getattrlistat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getattrlistat 5 - #error "SYS_getattrlistat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getattrlistat) 10 - ZERO_EXTEND(4) 11 - ZERO_EXTEND(5) 12 - SYSCALL_NONAME(getattrlistat, 6, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_getattrlistat, getattrlistat, 6, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-19
src/kernel/libsyscall/bsdsyscalls/_getattrlistbulk.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getattrlistbulk 5 - #error "SYS_getattrlistbulk not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getattrlistbulk) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(getattrlistbulk, 5, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_getattrlistbulk, getattrlistbulk, 5, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_getaudit_addr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getaudit_addr 5 - #error "SYS_getaudit_addr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getaudit_addr) 10 - SYSCALL_NONAME(getaudit_addr, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getaudit_addr, getaudit_addr, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getauid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getauid 5 - #error "SYS_getauid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getauid) 10 - SYSCALL_NONAME(getauid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getauid, getauid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getdirentries.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getdirentries 5 - #error "SYS_getdirentries not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getdirentries) 10 - SYSCALL_NONAME(getdirentries, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getdirentries, getdirentries, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-20
src/kernel/libsyscall/bsdsyscalls/_getdirentriesattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 32 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getdirentriesattr 5 - #error "SYS_getdirentriesattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getdirentriesattr) 10 - ZERO_EXTEND(3) 11 - ZERO_EXTEND(7) 12 - SYSCALL_NONAME(getdirentriesattr, 8, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_getdirentriesattr, getdirentriesattr, 8, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-18
src/kernel/libsyscall/bsdsyscalls/_getdtablesize.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getdtablesize 5 - #error "SYS_getdtablesize not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getdtablesize) 10 - SYSCALL_NONAME(getdtablesize, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getdtablesize, getdtablesize, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getegid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getegid 5 - #error "SYS_getegid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getegid) 10 - SYSCALL_NONAME(getegid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getegid, getegid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_getentropy.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getentropy 5 - #error "SYS_getentropy not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getentropy) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(getentropy, 2, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_getentropy, getentropy, 2, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_geteuid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_geteuid 5 - #error "SYS_geteuid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_geteuid) 10 - SYSCALL_NONAME(geteuid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_geteuid, geteuid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getfh.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getfh 5 - #error "SYS_getfh not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getfh) 10 - SYSCALL_NONAME(getfh, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getfh, getfh, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-13
src/kernel/libsyscall/bsdsyscalls/_getfsstat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getfsstat 5 - #error "SYS_getfsstat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_getfsstat, getfsstat, 3, cerror_nocancel) 10 - #else 11 - __SYSCALL2(___getfsstat, getfsstat, 3, cerror_nocancel) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_getfsstat64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getfsstat64 5 - #error "SYS_getfsstat64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getfsstat64) 10 - SYSCALL_NONAME(getfsstat64, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getfsstat64, getfsstat64, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _getfsstat$INODE64 21 - .set _getfsstat$INODE64, _getfsstat64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _getfsstat$INODE64 26 - .set _getfsstat$INODE64, _getfsstat64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _getfsstat$INODE64 31 - .set _getfsstat$INODE64, _getfsstat64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _getfsstat 36 - .set _getfsstat, _getfsstat64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _getfsstat 41 - .set _getfsstat, _getfsstat64 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/_getgid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getgid 5 - #error "SYS_getgid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getgid) 10 - SYSCALL_NONAME(getgid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getgid, getgid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getgroups 5 - #error "SYS_getgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getgroups) 10 - SYSCALL_NONAME(getgroups, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getgroups, getgroups, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getitimer.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getitimer 5 - #error "SYS_getitimer not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getitimer) 10 - SYSCALL_NONAME(getitimer, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getitimer, getitimer, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getpgid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getpgid 5 - #error "SYS_getpgid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getpgid) 10 - SYSCALL_NONAME(getpgid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getpgid, getpgid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getpgrp.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getpgrp 5 - #error "SYS_getpgrp not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getpgrp) 10 - SYSCALL_NONAME(getpgrp, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getpgrp, getpgrp, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getppid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getppid 5 - #error "SYS_getppid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getppid) 10 - SYSCALL_NONAME(getppid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getppid, getppid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getpriority.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getpriority 5 - #error "SYS_getpriority not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getpriority) 10 - SYSCALL_NONAME(getpriority, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getpriority, getpriority, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getrusage.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getrusage 5 - #error "SYS_getrusage not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getrusage) 10 - SYSCALL_NONAME(getrusage, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getrusage, getrusage, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getsid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getsid 5 - #error "SYS_getsid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getsid) 10 - SYSCALL_NONAME(getsid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getsid, getsid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getsockopt.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getsockopt 5 - #error "SYS_getsockopt not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getsockopt) 10 - SYSCALL_NONAME(getsockopt, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getsockopt, getsockopt, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_getuid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getuid 5 - #error "SYS_getuid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getuid) 10 - SYSCALL_NONAME(getuid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_getuid, getuid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_getxattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_getxattr 5 - #error "SYS_getxattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_getxattr) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(getxattr, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_getxattr, getxattr, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-19
src/kernel/libsyscall/bsdsyscalls/_grab_pgo_data.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_grab_pgo_data 5 - #error "SYS_grab_pgo_data not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_grab_pgo_data) 10 - SIGN_EXTEND(3) 11 - SYSCALL_NONAME(grab_pgo_data, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_grab_pgo_data, grab_pgo_data, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_guarded_close_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_close_np 5 - #error "SYS_guarded_close_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_guarded_close_np) 10 - SYSCALL_NONAME(guarded_close_np, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_guarded_close_np, guarded_close_np, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_guarded_kqueue_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_kqueue_np 5 - #error "SYS_guarded_kqueue_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_guarded_kqueue_np) 10 - SYSCALL_NONAME(guarded_kqueue_np, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_guarded_kqueue_np, guarded_kqueue_np, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_guarded_pwrite_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_pwrite_np 5 - #error "SYS_guarded_pwrite_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_guarded_pwrite_np) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(guarded_pwrite_np, 5, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_guarded_pwrite_np, guarded_pwrite_np, 5, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-19
src/kernel/libsyscall/bsdsyscalls/_guarded_write_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_write_np 5 - #error "SYS_guarded_write_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_guarded_write_np) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(guarded_write_np, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_guarded_write_np, guarded_write_np, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_guarded_writev_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_guarded_writev_np 5 - #error "SYS_guarded_writev_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_guarded_writev_np) 10 - SYSCALL_NONAME(guarded_writev_np, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_guarded_writev_np, guarded_writev_np, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_issetugid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_issetugid 5 - #error "SYS_issetugid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_issetugid) 10 - SYSCALL_NONAME(issetugid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_issetugid, issetugid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_kas_info.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kas_info 5 - #error "SYS_kas_info not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_kas_info) 10 - SYSCALL_NONAME(kas_info, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_kas_info, kas_info, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_kevent.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kevent 5 - #error "SYS_kevent not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_kevent) 10 - SYSCALL_NONAME(kevent, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_kevent, kevent, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_kevent64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kevent64 5 - #error "SYS_kevent64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_kevent64) 10 - SYSCALL_NONAME(kevent64, 7, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_kevent64, kevent64, 7, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_kevent_id.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 36 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kevent_id 5 - #error "SYS_kevent_id not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_kevent_id) 10 - SYSCALL_NONAME(kevent_id, 8, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_kevent_id, kevent_id, 8, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_kevent_qos.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 32 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kevent_qos 5 - #error "SYS_kevent_qos not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_kevent_qos) 10 - SYSCALL_NONAME(kevent_qos, 8, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_kevent_qos, kevent_qos, 8, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_kqueue.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_kqueue 5 - #error "SYS_kqueue not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_kqueue) 10 - SYSCALL_NONAME(kqueue, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_kqueue, kqueue, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_ledger.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ledger 5 - #error "SYS_ledger not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_ledger) 10 - SYSCALL_NONAME(ledger, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_ledger, ledger, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_link.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_link 5 - #error "SYS_link not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_link) 10 - SYSCALL_NONAME(link, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_link, link, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_linkat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_linkat 5 - #error "SYS_linkat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_linkat) 10 - SYSCALL_NONAME(linkat, 5, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_linkat, linkat, 5, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_lio_listio.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_lio_listio 5 - #error "SYS_lio_listio not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_lio_listio) 10 - SYSCALL_NONAME(lio_listio, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_lio_listio, lio_listio, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_listxattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_listxattr 5 - #error "SYS_listxattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_listxattr) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(listxattr, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_listxattr, listxattr, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-13
src/kernel/libsyscall/bsdsyscalls/_lstat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_lstat 5 - #error "SYS_lstat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_lstat, lstat, 2, cerror) 10 - #else 11 - __SYSCALL2(___lstat, lstat, 2, cerror) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_lstat64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_lstat64 5 - #error "SYS_lstat64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_lstat64) 10 - SYSCALL_NONAME(lstat64, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_lstat64, lstat64, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _lstat$INODE64 21 - .set _lstat$INODE64, _lstat64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _lstat$INODE64 26 - .set _lstat$INODE64, _lstat64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _lstat$INODE64 31 - .set _lstat$INODE64, _lstat64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _lstat 36 - .set _lstat, _lstat64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _lstat 41 - .set _lstat, _lstat64 42 - #endif 43 -
-44
src/kernel/libsyscall/bsdsyscalls/_madvise.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_madvise 5 - #error "SYS_madvise not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_madvise) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(madvise, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_madvise, madvise, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 - 20 - #if defined(__i386__) 21 - .globl _posix_madvise 22 - .set _posix_madvise, _madvise 23 - #endif 24 - 25 - #if defined(__x86_64__) 26 - .globl _posix_madvise 27 - .set _posix_madvise, _madvise 28 - #endif 29 - 30 - #if defined(__ppc__) 31 - .globl _posix_madvise 32 - .set _posix_madvise, _madvise 33 - #endif 34 - 35 - #if defined(__arm__) 36 - .globl _posix_madvise 37 - .set _posix_madvise, _madvise 38 - #endif 39 - 40 - #if defined(__arm64__) 41 - .globl _posix_madvise 42 - .set _posix_madvise, _madvise 43 - #endif 44 -
-19
src/kernel/libsyscall/bsdsyscalls/_memorystatus_control.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_memorystatus_control 5 - #error "SYS_memorystatus_control not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_memorystatus_control) 10 - ZERO_EXTEND(4) 11 - SYSCALL_NONAME(memorystatus_control, 5, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_memorystatus_control, memorystatus_control, 5, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_memorystatus_get_level.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_memorystatus_get_level 5 - #error "SYS_memorystatus_get_level not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_memorystatus_get_level) 10 - SYSCALL_NONAME(memorystatus_get_level, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_memorystatus_get_level, memorystatus_get_level, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_mincore.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mincore 5 - #error "SYS_mincore not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mincore) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(mincore, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_mincore, mincore, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-19
src/kernel/libsyscall/bsdsyscalls/_minherit.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_minherit 5 - #error "SYS_minherit not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_minherit) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(minherit, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_minherit, minherit, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_mkdir.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mkdir 5 - #error "SYS_mkdir not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mkdir) 10 - SYSCALL_NONAME(mkdir, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_mkdir, mkdir, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_mkdirat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mkdirat 5 - #error "SYS_mkdirat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mkdirat) 10 - SYSCALL_NONAME(mkdirat, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_mkdirat, mkdirat, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_mkfifo.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mkfifo 5 - #error "SYS_mkfifo not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mkfifo) 10 - SYSCALL_NONAME(mkfifo, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_mkfifo, mkfifo, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_mknod.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mknod 5 - #error "SYS_mknod not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mknod) 10 - SYSCALL_NONAME(mknod, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_mknod, mknod, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_mlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mlock 5 - #error "SYS_mlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mlock) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(mlock, 2, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_mlock, mlock, 2, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_mlockall.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mlockall 5 - #error "SYS_mlockall not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mlockall) 10 - SYSCALL_NONAME(mlockall, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_mlockall, mlockall, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_modwatch.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_modwatch 5 - #error "SYS_modwatch not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_modwatch) 10 - SYSCALL_NONAME(modwatch, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_modwatch, modwatch, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_mount.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mount 5 - #error "SYS_mount not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mount) 10 - SYSCALL_NONAME(mount, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_mount, mount, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_mremap_encrypted.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_mremap_encrypted 5 - #error "SYS_mremap_encrypted not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_mremap_encrypted) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(mremap_encrypted, 5, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_mremap_encrypted, mremap_encrypted, 5, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_msgget.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgget 5 - #error "SYS_msgget not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_msgget) 10 - SYSCALL_NONAME(msgget, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_msgget, msgget, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-32
src/kernel/libsyscall/bsdsyscalls/_msgrcv.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgrcv 5 - #error "SYS_msgrcv not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_msgrcv) 10 - ZERO_EXTEND(2) 11 - SIGN_EXTEND(3) 12 - SYSCALL_NONAME(msgrcv, 5, cerror) 13 - ret 14 - #else 15 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_msgrcv, msgrcv, 5, cerror) 17 - #else 18 - __SYSCALL2(___msgrcv, msgrcv, 5, cerror) 19 - #endif 20 - 21 - #endif 22 - 23 - #if defined(__i386__) 24 - .globl _msgrcv$UNIX2003 25 - .set _msgrcv$UNIX2003, ___msgrcv 26 - #endif 27 - 28 - #if defined(__ppc__) 29 - .globl _msgrcv$UNIX2003 30 - .set _msgrcv$UNIX2003, ___msgrcv 31 - #endif 32 -
-31
src/kernel/libsyscall/bsdsyscalls/_msgsnd.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_msgsnd 5 - #error "SYS_msgsnd not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_msgsnd) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(msgsnd, 4, cerror) 12 - ret 13 - #else 14 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_msgsnd, msgsnd, 4, cerror) 16 - #else 17 - __SYSCALL2(___msgsnd, msgsnd, 4, cerror) 18 - #endif 19 - 20 - #endif 21 - 22 - #if defined(__i386__) 23 - .globl _msgsnd$UNIX2003 24 - .set _msgsnd$UNIX2003, ___msgsnd 25 - #endif 26 - 27 - #if defined(__ppc__) 28 - .globl _msgsnd$UNIX2003 29 - .set _msgsnd$UNIX2003, ___msgsnd 30 - #endif 31 -
-19
src/kernel/libsyscall/bsdsyscalls/_munlock.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_munlock 5 - #error "SYS_munlock not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_munlock) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(munlock, 2, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_munlock, munlock, 2, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_munlockall.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_munlockall 5 - #error "SYS_munlockall not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_munlockall) 10 - SYSCALL_NONAME(munlockall, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_munlockall, munlockall, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-20
src/kernel/libsyscall/bsdsyscalls/_necp_client_action.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_necp_client_action 5 - #error "SYS_necp_client_action not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_necp_client_action) 10 - ZERO_EXTEND(3) 11 - ZERO_EXTEND(5) 12 - SYSCALL_NONAME(necp_client_action, 6, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_necp_client_action, necp_client_action, 6, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-19
src/kernel/libsyscall/bsdsyscalls/_necp_match_policy.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_necp_match_policy 5 - #error "SYS_necp_match_policy not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_necp_match_policy) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(necp_match_policy, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_necp_match_policy, necp_match_policy, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_necp_open.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_necp_open 5 - #error "SYS_necp_open not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_necp_open) 10 - SYSCALL_NONAME(necp_open, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_necp_open, necp_open, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-20
src/kernel/libsyscall/bsdsyscalls/_necp_session_action.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_necp_session_action 5 - #error "SYS_necp_session_action not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_necp_session_action) 10 - ZERO_EXTEND(3) 11 - ZERO_EXTEND(5) 12 - SYSCALL_NONAME(necp_session_action, 6, cerror_nocancel) 13 - ret 14 - #else 15 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 16 - __SYSCALL2(_necp_session_action, necp_session_action, 6, cerror_nocancel) 17 - #endif 18 - 19 - #endif 20 -
-18
src/kernel/libsyscall/bsdsyscalls/_necp_session_open.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_necp_session_open 5 - #error "SYS_necp_session_open not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_necp_session_open) 10 - SYSCALL_NONAME(necp_session_open, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_necp_session_open, necp_session_open, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_net_qos_guideline.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_net_qos_guideline 5 - #error "SYS_net_qos_guideline not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_net_qos_guideline) 10 - SYSCALL_NONAME(net_qos_guideline, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_net_qos_guideline, net_qos_guideline, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_netagent_trigger.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_netagent_trigger 5 - #error "SYS_netagent_trigger not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_netagent_trigger) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(netagent_trigger, 2, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_netagent_trigger, netagent_trigger, 2, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_nfsclnt.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_nfsclnt 5 - #error "SYS_nfsclnt not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_nfsclnt) 10 - SYSCALL_NONAME(nfsclnt, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_nfsclnt, nfsclnt, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_nfssvc.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_nfssvc 5 - #error "SYS_nfssvc not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_nfssvc) 10 - SYSCALL_NONAME(nfssvc, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_nfssvc, nfssvc, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_ntp_adjtime.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ntp_adjtime 5 - #error "SYS_ntp_adjtime not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_ntp_adjtime) 10 - SYSCALL_NONAME(ntp_adjtime, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_ntp_adjtime, ntp_adjtime, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_ntp_gettime.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_ntp_gettime 5 - #error "SYS_ntp_gettime not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_ntp_gettime) 10 - SYSCALL_NONAME(ntp_gettime, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_ntp_gettime, ntp_gettime, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_openbyid_np.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_openbyid_np 5 - #error "SYS_openbyid_np not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_openbyid_np) 10 - SYSCALL_NONAME(openbyid_np, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_openbyid_np, openbyid_np, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_os_fault_with_payload.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 32 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_os_fault_with_payload 5 - #error "SYS_os_fault_with_payload not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_os_fault_with_payload) 10 - SYSCALL_NONAME(os_fault_with_payload, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_os_fault_with_payload, os_fault_with_payload, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_pathconf.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pathconf 5 - #error "SYS_pathconf not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pathconf) 10 - SYSCALL_NONAME(pathconf, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_pathconf, pathconf, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_peeloff.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_peeloff 5 - #error "SYS_peeloff not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_peeloff) 10 - SYSCALL_NONAME(peeloff, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_peeloff, peeloff, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_pid_hibernate.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pid_hibernate 5 - #error "SYS_pid_hibernate not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pid_hibernate) 10 - SYSCALL_NONAME(pid_hibernate, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_pid_hibernate, pid_hibernate, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_pid_resume.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pid_resume 5 - #error "SYS_pid_resume not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pid_resume) 10 - SYSCALL_NONAME(pid_resume, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_pid_resume, pid_resume, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_pid_shutdown_sockets.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pid_shutdown_sockets 5 - #error "SYS_pid_shutdown_sockets not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pid_shutdown_sockets) 10 - SYSCALL_NONAME(pid_shutdown_sockets, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_pid_shutdown_sockets, pid_shutdown_sockets, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_pid_suspend.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pid_suspend 5 - #error "SYS_pid_suspend not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pid_suspend) 10 - SYSCALL_NONAME(pid_suspend, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_pid_suspend, pid_suspend, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-30
src/kernel/libsyscall/bsdsyscalls/_poll.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_poll 5 - #error "SYS_poll not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_poll) 10 - SYSCALL_NONAME(poll, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_poll, poll, 3, cerror) 15 - #else 16 - __SYSCALL2(___poll, poll, 3, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _poll$UNIX2003 23 - .set _poll$UNIX2003, ___poll 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _poll$UNIX2003 28 - .set _poll$UNIX2003, ___poll 29 - #endif 30 -
-31
src/kernel/libsyscall/bsdsyscalls/_pread.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pread 5 - #error "SYS_pread not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pread) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(pread, 4, cerror) 12 - ret 13 - #else 14 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_pread, pread, 4, cerror) 16 - #else 17 - __SYSCALL2(___pread, pread, 4, cerror) 18 - #endif 19 - 20 - #endif 21 - 22 - #if defined(__i386__) 23 - .globl _pread$UNIX2003 24 - .set _pread$UNIX2003, ___pread 25 - #endif 26 - 27 - #if defined(__ppc__) 28 - .globl _pread$UNIX2003 29 - .set _pread$UNIX2003, ___pread 30 - #endif 31 -
-18
src/kernel/libsyscall/bsdsyscalls/_proc_rlimit_control.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_proc_rlimit_control 5 - #error "SYS_proc_rlimit_control not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_proc_rlimit_control) 10 - SYSCALL_NONAME(proc_rlimit_control, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_proc_rlimit_control, proc_rlimit_control, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_proc_trace_log.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_proc_trace_log 5 - #error "SYS_proc_trace_log not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_proc_trace_log) 10 - SYSCALL_NONAME(proc_trace_log, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_proc_trace_log, proc_trace_log, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_proc_uuid_policy.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_proc_uuid_policy 5 - #error "SYS_proc_uuid_policy not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_proc_uuid_policy) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(proc_uuid_policy, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_proc_uuid_policy, proc_uuid_policy, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-31
src/kernel/libsyscall/bsdsyscalls/_pwrite.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_pwrite 5 - #error "SYS_pwrite not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_pwrite) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(pwrite, 4, cerror) 12 - ret 13 - #else 14 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_pwrite, pwrite, 4, cerror) 16 - #else 17 - __SYSCALL2(___pwrite, pwrite, 4, cerror) 18 - #endif 19 - 20 - #endif 21 - 22 - #if defined(__i386__) 23 - .globl _pwrite$UNIX2003 24 - .set _pwrite$UNIX2003, ___pwrite 25 - #endif 26 - 27 - #if defined(__ppc__) 28 - .globl _pwrite$UNIX2003 29 - .set _pwrite$UNIX2003, ___pwrite 30 - #endif 31 -
-18
src/kernel/libsyscall/bsdsyscalls/_quotactl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_quotactl 5 - #error "SYS_quotactl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_quotactl) 10 - SYSCALL_NONAME(quotactl, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_quotactl, quotactl, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-31
src/kernel/libsyscall/bsdsyscalls/_read.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_read 5 - #error "SYS_read not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_read) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(read, 3, cerror) 12 - ret 13 - #else 14 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_read, read, 3, cerror) 16 - #else 17 - __SYSCALL2(___read, read, 3, cerror) 18 - #endif 19 - 20 - #endif 21 - 22 - #if defined(__i386__) 23 - .globl _read$UNIX2003 24 - .set _read$UNIX2003, ___read 25 - #endif 26 - 27 - #if defined(__ppc__) 28 - .globl _read$UNIX2003 29 - .set _read$UNIX2003, ___read 30 - #endif 31 -
-18
src/kernel/libsyscall/bsdsyscalls/_readlink.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_readlink 5 - #error "SYS_readlink not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_readlink) 10 - SYSCALL_NONAME(readlink, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_readlink, readlink, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_readlinkat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_readlinkat 5 - #error "SYS_readlinkat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_readlinkat) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(readlinkat, 4, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_readlinkat, readlinkat, 4, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-30
src/kernel/libsyscall/bsdsyscalls/_readv.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_readv 5 - #error "SYS_readv not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_readv) 10 - SYSCALL_NONAME(readv, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_readv, readv, 3, cerror) 15 - #else 16 - __SYSCALL2(___readv, readv, 3, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _readv$UNIX2003 23 - .set _readv$UNIX2003, ___readv 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _readv$UNIX2003 28 - .set _readv$UNIX2003, ___readv 29 - #endif 30 -
-18
src/kernel/libsyscall/bsdsyscalls/_recvmsg_x.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_recvmsg_x 5 - #error "SYS_recvmsg_x not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_recvmsg_x) 10 - SYSCALL_NONAME(recvmsg_x, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_recvmsg_x, recvmsg_x, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_removexattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_removexattr 5 - #error "SYS_removexattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_removexattr) 10 - SYSCALL_NONAME(removexattr, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_removexattr, removexattr, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_revoke.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_revoke 5 - #error "SYS_revoke not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_revoke) 10 - SYSCALL_NONAME(revoke, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_revoke, revoke, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_searchfs.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_searchfs 5 - #error "SYS_searchfs not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_searchfs) 10 - SYSCALL_NONAME(searchfs, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_searchfs, searchfs, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sem_close.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_close 5 - #error "SYS_sem_close not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sem_close) 10 - SYSCALL_NONAME(sem_close, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sem_close, sem_close, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sem_post.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_post 5 - #error "SYS_sem_post not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sem_post) 10 - SYSCALL_NONAME(sem_post, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sem_post, sem_post, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sem_trywait.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_trywait 5 - #error "SYS_sem_trywait not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sem_trywait) 10 - SYSCALL_NONAME(sem_trywait, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sem_trywait, sem_trywait, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sem_unlink.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_unlink 5 - #error "SYS_sem_unlink not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sem_unlink) 10 - SYSCALL_NONAME(sem_unlink, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sem_unlink, sem_unlink, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-30
src/kernel/libsyscall/bsdsyscalls/_sem_wait.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sem_wait 5 - #error "SYS_sem_wait not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sem_wait) 10 - SYSCALL_NONAME(sem_wait, 1, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sem_wait, sem_wait, 1, cerror) 15 - #else 16 - __SYSCALL2(___sem_wait, sem_wait, 1, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _sem_wait$UNIX2003 23 - .set _sem_wait$UNIX2003, ___sem_wait 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _sem_wait$UNIX2003 28 - .set _sem_wait$UNIX2003, ___sem_wait 29 - #endif 30 -
-18
src/kernel/libsyscall/bsdsyscalls/_semget.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_semget 5 - #error "SYS_semget not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_semget) 10 - SYSCALL_NONAME(semget, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_semget, semget, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_semop.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_semop 5 - #error "SYS_semop not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_semop) 10 - SYSCALL_NONAME(semop, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_semop, semop, 3, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sendfile.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 28 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sendfile 5 - #error "SYS_sendfile not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sendfile) 10 - SYSCALL_NONAME(sendfile, 6, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sendfile, sendfile, 6, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sendmsg_x.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sendmsg_x 5 - #error "SYS_sendmsg_x not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sendmsg_x) 10 - SYSCALL_NONAME(sendmsg_x, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sendmsg_x, sendmsg_x, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_setattrlistat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setattrlistat 5 - #error "SYS_setattrlistat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setattrlistat) 10 - ZERO_EXTEND(4) 11 - SYSCALL_NONAME(setattrlistat, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_setattrlistat, setattrlistat, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_setaudit_addr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setaudit_addr 5 - #error "SYS_setaudit_addr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setaudit_addr) 10 - SYSCALL_NONAME(setaudit_addr, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setaudit_addr, setaudit_addr, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setauid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setauid 5 - #error "SYS_setauid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setauid) 10 - SYSCALL_NONAME(setauid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setauid, setauid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setegid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setegid 5 - #error "SYS_setegid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setegid) 10 - SYSCALL_NONAME(setegid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setegid, setegid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_seteuid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_seteuid 5 - #error "SYS_seteuid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_seteuid) 10 - SYSCALL_NONAME(seteuid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_seteuid, seteuid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setgid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setgid 5 - #error "SYS_setgid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setgid) 10 - SYSCALL_NONAME(setgid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setgid, setgid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setgroups.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setgroups 5 - #error "SYS_setgroups not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setgroups) 10 - SYSCALL_NONAME(setgroups, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setgroups, setgroups, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setitimer.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setitimer 5 - #error "SYS_setitimer not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setitimer) 10 - SYSCALL_NONAME(setitimer, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setitimer, setitimer, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-28
src/kernel/libsyscall/bsdsyscalls/_setpgid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setpgid 5 - #error "SYS_setpgid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setpgid) 10 - SYSCALL_NONAME(setpgid, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setpgid, setpgid, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _setpgrp 21 - .set _setpgrp, _setpgid 22 - #endif 23 - 24 - #if defined(__ppc__) 25 - .globl _setpgrp 26 - .set _setpgrp, _setpgid 27 - #endif 28 -
-18
src/kernel/libsyscall/bsdsyscalls/_setprivexec.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setprivexec 5 - #error "SYS_setprivexec not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setprivexec) 10 - SYSCALL_NONAME(setprivexec, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setprivexec, setprivexec, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setsid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setsid 5 - #error "SYS_setsid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setsid) 10 - SYSCALL_NONAME(setsid, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setsid, setsid, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setsockopt.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 20 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setsockopt 5 - #error "SYS_setsockopt not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setsockopt) 10 - SYSCALL_NONAME(setsockopt, 5, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setsockopt, setsockopt, 5, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_setuid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setuid 5 - #error "SYS_setuid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setuid) 10 - SYSCALL_NONAME(setuid, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_setuid, setuid, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_setxattr.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 24 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_setxattr 5 - #error "SYS_setxattr not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_setxattr) 10 - ZERO_EXTEND(3) 11 - SYSCALL_NONAME(setxattr, 6, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_setxattr, setxattr, 6, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_shm_unlink.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shm_unlink 5 - #error "SYS_shm_unlink not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_shm_unlink) 10 - SYSCALL_NONAME(shm_unlink, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_shm_unlink, shm_unlink, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_shmat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shmat 5 - #error "SYS_shmat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_shmat) 10 - SYSCALL_NONAME(shmat, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_shmat, shmat, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_shmdt.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shmdt 5 - #error "SYS_shmdt not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_shmdt) 10 - SYSCALL_NONAME(shmdt, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_shmdt, shmdt, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_shmget.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shmget 5 - #error "SYS_shmget not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_shmget) 10 - ZERO_EXTEND(1) 11 - SYSCALL_NONAME(shmget, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_shmget, shmget, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_shutdown.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_shutdown 5 - #error "SYS_shutdown not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_shutdown) 10 - SYSCALL_NONAME(shutdown, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_shutdown, shutdown, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sigpending.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sigpending 5 - #error "SYS_sigpending not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sigpending) 10 - SYSCALL_NONAME(sigpending, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sigpending, sigpending, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sigprocmask.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sigprocmask 5 - #error "SYS_sigprocmask not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sigprocmask) 10 - SYSCALL_NONAME(sigprocmask, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sigprocmask, sigprocmask, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_socket.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_socket 5 - #error "SYS_socket not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_socket) 10 - SYSCALL_NONAME(socket, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_socket, socket, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_socket_delegate.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_socket_delegate 5 - #error "SYS_socket_delegate not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_socket_delegate) 10 - SYSCALL_NONAME(socket_delegate, 4, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_socket_delegate, socket_delegate, 4, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-13
src/kernel/libsyscall/bsdsyscalls/_stat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_stat 5 - #error "SYS_stat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_stat, stat, 2, cerror) 10 - #else 11 - __SYSCALL2(___stat, stat, 2, cerror) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_stat64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_stat64 5 - #error "SYS_stat64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_stat64) 10 - SYSCALL_NONAME(stat64, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_stat64, stat64, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _stat$INODE64 21 - .set _stat$INODE64, _stat64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _stat$INODE64 26 - .set _stat$INODE64, _stat64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _stat$INODE64 31 - .set _stat$INODE64, _stat64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _stat 36 - .set _stat, _stat64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _stat 41 - .set _stat, _stat64 42 - #endif 43 -
-13
src/kernel/libsyscall/bsdsyscalls/_statfs.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_statfs 5 - #error "SYS_statfs not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) 9 - __SYSCALL2(_statfs, statfs, 2, cerror_nocancel) 10 - #else 11 - __SYSCALL2(___statfs, statfs, 2, cerror_nocancel) 12 - #endif 13 -
-43
src/kernel/libsyscall/bsdsyscalls/_statfs64.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_statfs64 5 - #error "SYS_statfs64 not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_statfs64) 10 - SYSCALL_NONAME(statfs64, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_statfs64, statfs64, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 - 19 - #if defined(__i386__) 20 - .globl _statfs$INODE64 21 - .set _statfs$INODE64, _statfs64 22 - #endif 23 - 24 - #if defined(__x86_64__) 25 - .globl _statfs$INODE64 26 - .set _statfs$INODE64, _statfs64 27 - #endif 28 - 29 - #if defined(__ppc__) 30 - .globl _statfs$INODE64 31 - .set _statfs$INODE64, _statfs64 32 - #endif 33 - 34 - #if defined(__arm__) 35 - .globl _statfs 36 - .set _statfs, _statfs64 37 - #endif 38 - 39 - #if defined(__arm64__) 40 - .globl _statfs 41 - .set _statfs, _statfs64 42 - #endif 43 -
-18
src/kernel/libsyscall/bsdsyscalls/_swapon.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_swapon 5 - #error "SYS_swapon not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_swapon) 10 - SYSCALL_NONAME(swapon, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_swapon, swapon, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_symlink.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_symlink 5 - #error "SYS_symlink not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_symlink) 10 - SYSCALL_NONAME(symlink, 2, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_symlink, symlink, 2, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_symlinkat.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_symlinkat 5 - #error "SYS_symlinkat not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_symlinkat) 10 - SYSCALL_NONAME(symlinkat, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_symlinkat, symlinkat, 3, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_sync.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_sync 5 - #error "SYS_sync not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_sync) 10 - SYSCALL_NONAME(sync, 0, cerror) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_sync, sync, 0, cerror) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_system_override.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_system_override 5 - #error "SYS_system_override not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_system_override) 10 - SYSCALL_NONAME(system_override, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_system_override, system_override, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-19
src/kernel/libsyscall/bsdsyscalls/_thread_selfcounts.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_thread_selfcounts 5 - #error "SYS_thread_selfcounts not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_thread_selfcounts) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(thread_selfcounts, 3, cerror_nocancel) 12 - ret 13 - #else 14 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_thread_selfcounts, thread_selfcounts, 3, cerror_nocancel) 16 - #endif 17 - 18 - #endif 19 -
-18
src/kernel/libsyscall/bsdsyscalls/_truncate.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_truncate 5 - #error "SYS_truncate not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_truncate) 10 - SYSCALL_NONAME(truncate, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_truncate, truncate, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_umask.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_umask 5 - #error "SYS_umask not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_umask) 10 - SYSCALL_NONAME(umask, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_umask, umask, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_undelete.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_undelete 5 - #error "SYS_undelete not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_undelete) 10 - SYSCALL_NONAME(undelete, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_undelete, undelete, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_unmount.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_unmount 5 - #error "SYS_unmount not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_unmount) 10 - SYSCALL_NONAME(unmount, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_unmount, unmount, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_usrctl.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 4 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_usrctl 5 - #error "SYS_usrctl not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_usrctl) 10 - SYSCALL_NONAME(usrctl, 1, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_usrctl, usrctl, 1, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_utimes.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_utimes 5 - #error "SYS_utimes not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_utimes) 10 - SYSCALL_NONAME(utimes, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_utimes, utimes, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_vfs_purge.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 0 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_vfs_purge 5 - #error "SYS_vfs_purge not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_vfs_purge) 10 - SYSCALL_NONAME(vfs_purge, 0, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_vfs_purge, vfs_purge, 0, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_vm_pressure_monitor.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_vm_pressure_monitor 5 - #error "SYS_vm_pressure_monitor not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_vm_pressure_monitor) 10 - SYSCALL_NONAME(vm_pressure_monitor, 3, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_vm_pressure_monitor, vm_pressure_monitor, 3, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-18
src/kernel/libsyscall/bsdsyscalls/_waitevent.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_waitevent 5 - #error "SYS_waitevent not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_waitevent) 10 - SYSCALL_NONAME(waitevent, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_waitevent, waitevent, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-30
src/kernel/libsyscall/bsdsyscalls/_waitid.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 16 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_waitid 5 - #error "SYS_waitid not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_waitid) 10 - SYSCALL_NONAME(waitid, 4, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_waitid, waitid, 4, cerror) 15 - #else 16 - __SYSCALL2(___waitid, waitid, 4, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _waitid$UNIX2003 23 - .set _waitid$UNIX2003, ___waitid 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _waitid$UNIX2003 28 - .set _waitid$UNIX2003, ___waitid 29 - #endif 30 -
-18
src/kernel/libsyscall/bsdsyscalls/_watchevent.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 8 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_watchevent 5 - #error "SYS_watchevent not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_watchevent) 10 - SYSCALL_NONAME(watchevent, 2, cerror_nocancel) 11 - ret 12 - #else 13 - #if defined(__i386__) || defined(__x86_64__) || defined(__ppc__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_watchevent, watchevent, 2, cerror_nocancel) 15 - #endif 16 - 17 - #endif 18 -
-31
src/kernel/libsyscall/bsdsyscalls/_write.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_write 5 - #error "SYS_write not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_write) 10 - ZERO_EXTEND(2) 11 - SYSCALL_NONAME(write, 3, cerror) 12 - ret 13 - #else 14 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 15 - __SYSCALL2(_write, write, 3, cerror) 16 - #else 17 - __SYSCALL2(___write, write, 3, cerror) 18 - #endif 19 - 20 - #endif 21 - 22 - #if defined(__i386__) 23 - .globl _write$UNIX2003 24 - .set _write$UNIX2003, ___write 25 - #endif 26 - 27 - #if defined(__ppc__) 28 - .globl _write$UNIX2003 29 - .set _write$UNIX2003, ___write 30 - #endif 31 -
-30
src/kernel/libsyscall/bsdsyscalls/_writev.S
··· 1 - #define __SYSCALL_32BIT_ARG_BYTES 12 2 - #include "SYS.h" 3 - 4 - #ifndef SYS_writev 5 - #error "SYS_writev not defined. The header files libsyscall is building against do not match syscalls.master." 6 - #endif 7 - 8 - #if defined(__arm64__) 9 - MI_ENTRY_POINT(_writev) 10 - SYSCALL_NONAME(writev, 3, cerror) 11 - ret 12 - #else 13 - #if defined(__x86_64__) || defined(__arm__) || defined(__arm64__) 14 - __SYSCALL2(_writev, writev, 3, cerror) 15 - #else 16 - __SYSCALL2(___writev, writev, 3, cerror) 17 - #endif 18 - 19 - #endif 20 - 21 - #if defined(__i386__) 22 - .globl _writev$UNIX2003 23 - .set _writev$UNIX2003, ___writev 24 - #endif 25 - 26 - #if defined(__ppc__) 27 - .globl _writev$UNIX2003 28 - .set _writev$UNIX2003, ___writev 29 - #endif 30 -
-149
src/kernel/libsyscall/bsdsyscalls/custom.S
··· 1 - /* 2 - * Copyright (c) 1999-2015 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* Copyright (c) 1992 NeXT Computer, Inc. All rights reserved. 29 - */ 30 - 31 - #include "SYS.h" 32 - 33 - #if defined(__i386__) 34 - 35 - /* 36 - * i386 needs custom assembly to transform the return from syscalls 37 - * into a proper stack for a function call out to cerror{,_nocancel}. 38 - */ 39 - 40 - LABEL(tramp_cerror) 41 - mov %esp, %edx 42 - andl $0xfffffff0, %esp 43 - subl $16, %esp 44 - movl %edx, 4(%esp) 45 - movl %eax, (%esp) 46 - CALL_EXTERN(_cerror) 47 - movl 4(%esp), %esp 48 - ret 49 - 50 - LABEL(tramp_cerror_nocancel) 51 - mov %esp, %edx 52 - andl $0xfffffff0, %esp 53 - subl $16, %esp 54 - movl %edx, 4(%esp) 55 - movl %eax, (%esp) 56 - CALL_EXTERN(_cerror_nocancel) 57 - movl 4(%esp), %esp 58 - ret 59 - 60 - LABEL(__sysenter_trap) 61 - popl %edx 62 - movl %esp, %ecx 63 - sysenter 64 - 65 - .globl _i386_get_ldt 66 - ALIGN 67 - _i386_get_ldt: 68 - movl $6,%eax 69 - MACHDEP_SYSCALL_TRAP 70 - jnb 2f 71 - jmp tramp_cerror 72 - 2: ret 73 - 74 - 75 - .globl _i386_set_ldt 76 - ALIGN 77 - _i386_set_ldt: 78 - movl $5,%eax 79 - MACHDEP_SYSCALL_TRAP 80 - jnb 2f 81 - jmp tramp_cerror 82 - 2: ret 83 - 84 - ALIGN 85 - .globl __thread_set_tsd_base 86 - __thread_set_tsd_base: 87 - pushl 4(%esp) 88 - pushl $0 89 - movl $3,%eax 90 - MACHDEP_SYSCALL_TRAP 91 - addl $8,%esp 92 - ret 93 - 94 - #elif defined(__x86_64__) 95 - 96 - .globl _i386_get_ldt 97 - ALIGN 98 - _i386_get_ldt: 99 - movl $SYSCALL_CONSTRUCT_MDEP(6), %eax 100 - MACHDEP_SYSCALL_TRAP 101 - jnb 2f 102 - movq %rax, %rdi 103 - jmp _cerror 104 - 2: ret 105 - 106 - 107 - .globl _i386_set_ldt 108 - ALIGN 109 - _i386_set_ldt: 110 - movl $SYSCALL_CONSTRUCT_MDEP(5), %eax 111 - MACHDEP_SYSCALL_TRAP 112 - jnb 2f 113 - movq %rax, %rdi 114 - jmp _cerror 115 - 2: ret 116 - 117 - ALIGN 118 - .globl __thread_set_tsd_base 119 - __thread_set_tsd_base: 120 - movl $0, %esi // 0 as the second argument 121 - movl $ SYSCALL_CONSTRUCT_MDEP(3), %eax // Machine-dependent syscall number 3 122 - MACHDEP_SYSCALL_TRAP 123 - ret 124 - 125 - #elif defined(__arm__) 126 - 127 - .align 2 128 - .globl __thread_set_tsd_base 129 - __thread_set_tsd_base: 130 - mov r3, #2 131 - mov r12, #0x80000000 132 - swi #SWI_SYSCALL 133 - bx lr 134 - 135 - #elif defined(__arm64__) 136 - 137 - .align 2 138 - .globl __thread_set_tsd_base 139 - __thread_set_tsd_base: 140 - mov x3, #2 141 - mov x16, #0x80000000 142 - svc #SWI_SYSCALL 143 - ret 144 - 145 - #else 146 - #error unknown architecture 147 - #endif 148 - 149 - .subsections_via_symbols
-420
src/kernel/libsyscall/bsdsyscalls/stubs.list
··· 1 - sys/_____old_semwait_signal_nocancel.s 2 - sys/_____sigwait_nocancel.s 3 - sys/___abort_with_payload.s 4 - sys/___accept.s 5 - sys/___accept_nocancel.s 6 - sys/___access_extended.s 7 - sys/___aio_suspend_nocancel.s 8 - sys/___bind.s 9 - sys/___bsdthread_create.s 10 - sys/___bsdthread_ctl.s 11 - sys/___bsdthread_register.s 12 - sys/___bsdthread_terminate.s 13 - sys/___chmod.s 14 - sys/___chmod_extended.s 15 - sys/___close_nocancel.s 16 - sys/___coalition.s 17 - sys/___coalition_info.s 18 - sys/___coalition_ledger.s 19 - sys/___connect.s 20 - sys/___connect_nocancel.s 21 - sys/___copyfile.s 22 - sys/___csrctl.s 23 - sys/___delete.s 24 - sys/___disable_threadsignal.s 25 - sys/___exit.s 26 - sys/___fchmod.s 27 - sys/___fchmod_extended.s 28 - sys/___fcntl.s 29 - sys/___fcntl_nocancel.s 30 - sys/___fork.s 31 - sys/___fs_snapshot.s 32 - sys/___fstat64_extended.s 33 - sys/___fstat_extended.s 34 - sys/___fsync_nocancel.s 35 - sys/___getattrlist.s 36 - sys/___getdirentries64.s 37 - sys/___gethostuuid.s 38 - sys/___getlogin.s 39 - sys/___getpeername.s 40 - sys/___getpid.s 41 - sys/___getrlimit.s 42 - sys/___getsgroups.s 43 - sys/___getsockname.s 44 - sys/___gettid.s 45 - sys/___gettimeofday.s 46 - sys/___getwgroups.s 47 - sys/___guarded_open_dprotected_np.s 48 - sys/___guarded_open_np.s 49 - sys/___identitysvc.s 50 - sys/___initgroups.s 51 - sys/___ioctl.s 52 - sys/___iopolicysys.s 53 - sys/___kdebug_trace.s 54 - sys/___kdebug_trace64.s 55 - sys/___kdebug_trace_string.s 56 - sys/___kdebug_typefilter.s 57 - sys/___kill.s 58 - sys/___kqueue_workloop_ctl.s 59 - sys/___lchown.s 60 - sys/___listen.s 61 - sys/___log_data.s 62 - sys/___lseek.s 63 - sys/___lstat64_extended.s 64 - sys/___lstat_extended.s 65 - sys/___mac_execve.s 66 - sys/___mac_get_fd.s 67 - sys/___mac_get_file.s 68 - sys/___mac_get_link.s 69 - sys/___mac_get_mount.s 70 - sys/___mac_get_pid.s 71 - sys/___mac_get_proc.s 72 - sys/___mac_getfsstat.s 73 - sys/___mac_mount.s 74 - sys/___mac_set_fd.s 75 - sys/___mac_set_file.s 76 - sys/___mac_set_link.s 77 - sys/___mac_set_proc.s 78 - sys/___mac_syscall.s 79 - sys/___mach_bridge_remote_time.s 80 - sys/___memorystatus_available_memory.s 81 - sys/___microstackshot.s 82 - sys/___mkdir_extended.s 83 - sys/___mkfifo_extended.s 84 - sys/___mmap.s 85 - sys/___mprotect.s 86 - sys/___msgctl.s 87 - sys/___msgrcv_nocancel.s 88 - sys/___msgsnd_nocancel.s 89 - sys/___msgsys.s 90 - sys/___msync.s 91 - sys/___msync_nocancel.s 92 - sys/___munmap.s 93 - sys/___old_semwait_signal.s 94 - sys/___open.s 95 - sys/___open_dprotected_np.s 96 - sys/___open_extended.s 97 - sys/___open_nocancel.s 98 - sys/___openat.s 99 - sys/___openat_nocancel.s 100 - sys/___persona.s 101 - sys/___pipe.s 102 - sys/___poll_nocancel.s 103 - sys/___posix_spawn.s 104 - sys/___pread_nocancel.s 105 - sys/___proc_info.s 106 - sys/___process_policy.s 107 - sys/___pselect.s 108 - sys/___pselect_nocancel.s 109 - sys/___psynch_cvbroad.s 110 - sys/___psynch_cvclrprepost.s 111 - sys/___psynch_cvsignal.s 112 - sys/___psynch_cvwait.s 113 - sys/___psynch_mutexdrop.s 114 - sys/___psynch_mutexwait.s 115 - sys/___psynch_rw_downgrade.s 116 - sys/___psynch_rw_longrdlock.s 117 - sys/___psynch_rw_rdlock.s 118 - sys/___psynch_rw_unlock.s 119 - sys/___psynch_rw_unlock2.s 120 - sys/___psynch_rw_upgrade.s 121 - sys/___psynch_rw_wrlock.s 122 - sys/___psynch_rw_yieldwrlock.s 123 - sys/___pthread_canceled.s 124 - sys/___pthread_chdir.s 125 - sys/___pthread_fchdir.s 126 - sys/___pthread_kill.s 127 - sys/___pthread_markcancel.s 128 - sys/___pthread_sigmask.s 129 - sys/___ptrace.s 130 - sys/___pwrite_nocancel.s 131 - sys/___read_nocancel.s 132 - sys/___readv_nocancel.s 133 - sys/___reboot.s 134 - sys/___recvfrom.s 135 - sys/___recvfrom_nocancel.s 136 - sys/___recvmsg.s 137 - sys/___recvmsg_nocancel.s 138 - sys/___rename.s 139 - sys/___renameat.s 140 - sys/___renameatx_np.s 141 - sys/___rmdir.s 142 - sys/___select.s 143 - sys/___select_nocancel.s 144 - sys/___sem_open.s 145 - sys/___sem_wait_nocancel.s 146 - sys/___semctl.s 147 - sys/___semsys.s 148 - sys/___semwait_signal.s 149 - sys/___semwait_signal_nocancel.s 150 - sys/___sendmsg.s 151 - sys/___sendmsg_nocancel.s 152 - sys/___sendto.s 153 - sys/___sendto_nocancel.s 154 - sys/___setattrlist.s 155 - sys/___setlogin.s 156 - sys/___setpriority.s 157 - sys/___setregid.s 158 - sys/___setreuid.s 159 - sys/___setrlimit.s 160 - sys/___setsgroups.s 161 - sys/___settid.s 162 - sys/___settid_with_pid.s 163 - sys/___settimeofday.s 164 - sys/___setwgroups.s 165 - sys/___sfi_ctl.s 166 - sys/___sfi_pidctl.s 167 - sys/___shared_region_check_np.s 168 - sys/___shared_region_map_and_slide_np.s 169 - sys/___shm_open.s 170 - sys/___shmctl.s 171 - sys/___shmsys.s 172 - sys/___sigaction.s 173 - sys/___sigaltstack.s 174 - sys/___sigreturn.s 175 - sys/___sigsuspend.s 176 - sys/___sigsuspend_nocancel.s 177 - sys/___sigwait.s 178 - sys/___socketpair.s 179 - sys/___stack_snapshot_with_config.s 180 - sys/___stat64_extended.s 181 - sys/___stat_extended.s 182 - sys/___syscall.s 183 - sys/___sysctl.s 184 - sys/___sysctlbyname.s 185 - sys/___telemetry.s 186 - sys/___terminate_with_payload.s 187 - sys/___thread_selfid.s 188 - sys/___thread_selfusage.s 189 - sys/___ulock_wait.s 190 - sys/___ulock_wake.s 191 - sys/___umask_extended.s 192 - sys/___unlink.s 193 - sys/___unlinkat.s 194 - sys/___vfork.s 195 - sys/___wait4.s 196 - sys/___wait4_nocancel.s 197 - sys/___waitid_nocancel.s 198 - sys/___work_interval_ctl.s 199 - sys/___workq_kernreturn.s 200 - sys/___workq_open.s 201 - sys/___write_nocancel.s 202 - sys/___writev_nocancel.s 203 - sys/_access.s 204 - sys/_acct.s 205 - sys/_adjtime.s 206 - sys/_aio_cancel.s 207 - sys/_aio_error.s 208 - sys/_aio_fsync.s 209 - sys/_aio_read.s 210 - sys/_aio_return.s 211 - sys/_aio_suspend.s 212 - sys/_aio_write.s 213 - sys/_audit.s 214 - sys/_audit_session_join.s 215 - sys/_audit_session_port.s 216 - sys/_audit_session_self.s 217 - sys/_auditctl.s 218 - sys/_auditon.s 219 - sys/_change_fdguard_np.s 220 - sys/_chdir.s 221 - sys/_chflags.s 222 - sys/_chown.s 223 - sys/_chroot.s 224 - sys/_clonefileat.s 225 - sys/_close.s 226 - sys/_connectx.s 227 - sys/_csops.s 228 - sys/_csops_audittoken.s 229 - sys/_disconnectx.s 230 - sys/_dup.s 231 - sys/_dup2.s 232 - sys/_exchangedata.s 233 - sys/_execve.s 234 - sys/_faccessat.s 235 - sys/_fchdir.s 236 - sys/_fchflags.s 237 - sys/_fchmodat.s 238 - sys/_fchown.s 239 - sys/_fchownat.s 240 - sys/_fclonefileat.s 241 - sys/_fdatasync.s 242 - sys/_ffsctl.s 243 - sys/_fgetattrlist.s 244 - sys/_fgetxattr.s 245 - sys/_fhopen.s 246 - sys/_fileport_makefd.s 247 - sys/_fileport_makeport.s 248 - sys/_flistxattr.s 249 - sys/_flock.s 250 - sys/_fmount.s 251 - sys/_fpathconf.s 252 - sys/_fremovexattr.s 253 - sys/_fsctl.s 254 - sys/_fsetattrlist.s 255 - sys/_fsetxattr.s 256 - sys/_fsgetpath.s 257 - sys/_fsgetpath_ext.s 258 - sys/_fstat.s 259 - sys/_fstat64.s 260 - sys/_fstatat.s 261 - sys/_fstatat64.s 262 - sys/_fstatfs.s 263 - sys/_fstatfs64.s 264 - sys/_fsync.s 265 - sys/_ftruncate.s 266 - sys/_futimes.s 267 - sys/_getattrlistat.s 268 - sys/_getattrlistbulk.s 269 - sys/_getaudit_addr.s 270 - sys/_getauid.s 271 - sys/_getdirentries.s 272 - sys/_getdirentriesattr.s 273 - sys/_getdtablesize.s 274 - sys/_getegid.s 275 - sys/_getentropy.s 276 - sys/_geteuid.s 277 - sys/_getfh.s 278 - sys/_getfsstat.s 279 - sys/_getfsstat64.s 280 - sys/_getgid.s 281 - sys/_getgroups.s 282 - sys/_getitimer.s 283 - sys/_getpgid.s 284 - sys/_getpgrp.s 285 - sys/_getppid.s 286 - sys/_getpriority.s 287 - sys/_getrusage.s 288 - sys/_getsid.s 289 - sys/_getsockopt.s 290 - sys/_getuid.s 291 - sys/_getxattr.s 292 - sys/_grab_pgo_data.s 293 - sys/_guarded_close_np.s 294 - sys/_guarded_kqueue_np.s 295 - sys/_guarded_pwrite_np.s 296 - sys/_guarded_write_np.s 297 - sys/_guarded_writev_np.s 298 - sys/_issetugid.s 299 - sys/_kas_info.s 300 - sys/_kevent.s 301 - sys/_kevent64.s 302 - sys/_kevent_id.s 303 - sys/_kevent_qos.s 304 - sys/_kqueue.s 305 - sys/_ledger.s 306 - sys/_link.s 307 - sys/_linkat.s 308 - sys/_lio_listio.s 309 - sys/_listxattr.s 310 - sys/_lstat.s 311 - sys/_lstat64.s 312 - sys/_madvise.s 313 - sys/_memorystatus_control.s 314 - sys/_memorystatus_get_level.s 315 - sys/_mincore.s 316 - sys/_minherit.s 317 - sys/_mkdir.s 318 - sys/_mkdirat.s 319 - sys/_mkfifo.s 320 - sys/_mknod.s 321 - sys/_mlock.s 322 - sys/_mlockall.s 323 - sys/_modwatch.s 324 - sys/_mount.s 325 - sys/_mremap_encrypted.s 326 - sys/_msgget.s 327 - sys/_msgrcv.s 328 - sys/_msgsnd.s 329 - sys/_munlock.s 330 - sys/_munlockall.s 331 - sys/_necp_client_action.s 332 - sys/_necp_match_policy.s 333 - sys/_necp_open.s 334 - sys/_necp_session_action.s 335 - sys/_necp_session_open.s 336 - sys/_net_qos_guideline.s 337 - sys/_netagent_trigger.s 338 - sys/_nfsclnt.s 339 - sys/_nfssvc.s 340 - sys/_ntp_adjtime.s 341 - sys/_ntp_gettime.s 342 - sys/_openbyid_np.s 343 - sys/_os_fault_with_payload.s 344 - sys/_pathconf.s 345 - sys/_peeloff.s 346 - sys/_pid_hibernate.s 347 - sys/_pid_resume.s 348 - sys/_pid_shutdown_sockets.s 349 - sys/_pid_suspend.s 350 - sys/_poll.s 351 - sys/_pread.s 352 - sys/_proc_rlimit_control.s 353 - sys/_proc_trace_log.s 354 - sys/_proc_uuid_policy.s 355 - sys/_pwrite.s 356 - sys/_quotactl.s 357 - sys/_read.s 358 - sys/_readlink.s 359 - sys/_readlinkat.s 360 - sys/_readv.s 361 - sys/_recvmsg_x.s 362 - sys/_removexattr.s 363 - sys/_revoke.s 364 - sys/_searchfs.s 365 - sys/_sem_close.s 366 - sys/_sem_post.s 367 - sys/_sem_trywait.s 368 - sys/_sem_unlink.s 369 - sys/_sem_wait.s 370 - sys/_semget.s 371 - sys/_semop.s 372 - sys/_sendfile.s 373 - sys/_sendmsg_x.s 374 - sys/_setattrlistat.s 375 - sys/_setaudit_addr.s 376 - sys/_setauid.s 377 - sys/_setegid.s 378 - sys/_seteuid.s 379 - sys/_setgid.s 380 - sys/_setgroups.s 381 - sys/_setitimer.s 382 - sys/_setpgid.s 383 - sys/_setprivexec.s 384 - sys/_setsid.s 385 - sys/_setsockopt.s 386 - sys/_setuid.s 387 - sys/_setxattr.s 388 - sys/_shm_unlink.s 389 - sys/_shmat.s 390 - sys/_shmdt.s 391 - sys/_shmget.s 392 - sys/_shutdown.s 393 - sys/_sigpending.s 394 - sys/_sigprocmask.s 395 - sys/_socket.s 396 - sys/_socket_delegate.s 397 - sys/_stat.s 398 - sys/_stat64.s 399 - sys/_statfs.s 400 - sys/_statfs64.s 401 - sys/_swapon.s 402 - sys/_symlink.s 403 - sys/_symlinkat.s 404 - sys/_sync.s 405 - sys/_system_override.s 406 - sys/_thread_selfcounts.s 407 - sys/_truncate.s 408 - sys/_umask.s 409 - sys/_undelete.s 410 - sys/_unmount.s 411 - sys/_usrctl.s 412 - sys/_utimes.s 413 - sys/_vfs_purge.s 414 - sys/_vm_pressure_monitor.s 415 - sys/_waitevent.s 416 - sys/_waitid.s 417 - sys/_watchevent.s 418 - sys/_write.s 419 - sys/_writev.s 420 - sys/custom.s
+34 -59
src/kernel/libsyscall/custom/SYS.h
··· 59 59 * for the majority of syscalls which just return a value in %eax. 60 60 */ 61 61 62 - #ifdef DARLING 63 - #define UNIX_SYSCALL_SYSENTER call __darling_bsd_syscall 64 - #else 65 - #define UNIX_SYSCALL_SYSENTER call __sysenter_trap 66 - #endif 62 + #define UNIX_SYSCALL_SYSENTER call __sysenter_trap 67 63 #define UNIX_SYSCALL(name, nargs) \ 68 64 .globl tramp_cerror ;\ 69 65 LEAF(_##name, 0) ;\ ··· 131 127 #include <architecture/i386/asm_help.h> 132 128 #include <mach/i386/syscall_sw.h> 133 129 134 - #ifdef DARLING 135 - #define UNIX_SYSCALL(name, nargs) \ 136 - .globl cerror ;\ 137 - LEAF(_#name, 0) ;\ 138 - movl $ SYS_##name, %eax ;\ 139 - call __darling_bsd_syscall ;\ 140 - cmpq $-4095, %rax ;\ 141 - jb 2f ;\ 142 - movq %rax, %rdi ;\ 143 - negq %rdi ;\ 144 - BRANCH_EXTERN(_cerror) ;\ 145 - 2: 130 + #define UNIX_SYSCALL_SYSCALL \ 131 + movq %rcx, %r10 ;\ 132 + syscall 146 133 147 - #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 148 - .globl cerror ;\ 149 - movl $ SYS_##name, %eax ;\ 150 - call __darling_bsd_syscall ;\ 151 - cmpq $-4095, %rax ;\ 152 - jb 2f ;\ 153 - movq %rax, %rdi ;\ 154 - negq %rdi ;\ 155 - BRANCH_EXTERN(_##cerror) ;\ 156 - 2: 157 - #else 158 - #define UNIX_SYSCALL_SYSCALL \ 159 - movq %rcx, %r10 ;\ 160 - syscall 134 + #define UNIX_SYSCALL(name, nargs) \ 135 + .globl cerror ;\ 136 + LEAF(_##name, 0) ;\ 137 + movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ 138 + UNIX_SYSCALL_SYSCALL ;\ 139 + jnb 2f ;\ 140 + movq %rax, %rdi ;\ 141 + BRANCH_EXTERN(_cerror) ;\ 142 + 2: 161 143 162 - #define UNIX_SYSCALL(name, nargs) \ 163 - .globl cerror ;\ 164 - LEAF(_##name, 0) ;\ 165 - movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ 166 - UNIX_SYSCALL_SYSCALL ;\ 167 - jnb 2f ;\ 168 - movq %rax, %rdi ;\ 169 - BRANCH_EXTERN(_cerror) ;\ 170 - 2: 171 - 172 - #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 173 - .globl cerror ;\ 174 - movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ 175 - UNIX_SYSCALL_SYSCALL ;\ 176 - jnb 2f ;\ 177 - movq %rax, %rdi ;\ 178 - BRANCH_EXTERN(_##cerror) ;\ 179 - 2: 180 - #endif 144 + #define UNIX_SYSCALL_NONAME(name, nargs, cerror) \ 145 + .globl cerror ;\ 146 + movl $ SYSCALL_CONSTRUCT_UNIX(SYS_##name), %eax ;\ 147 + UNIX_SYSCALL_SYSCALL ;\ 148 + jnb 2f ;\ 149 + movq %rax, %rdi ;\ 150 + BRANCH_EXTERN(_##cerror) ;\ 151 + 2: 181 152 182 153 #define PSEUDO(pseudo, name, nargs, cerror) \ 183 154 LEAF(pseudo, 0) ;\ ··· 363 334 #elif __SYSCALL_32BIT_ARG_BYTES == 36 364 335 #define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) 365 336 #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) 337 + #elif __SYSCALL_32BIT_ARG_BYTES == 40 338 + #define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) 339 + #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) 366 340 #elif __SYSCALL_32BIT_ARG_BYTES == 44 367 341 #define SYSCALL(name, nargs, cerror) SYSCALL_8(name, cerror) 368 342 #define SYSCALL_NONAME(name, nargs, cerror) SYSCALL_NONAME_8(name, cerror) ··· 472 446 * TBD 473 447 */ 474 448 475 - #define DO_SYSCALL(num, cerror) \ 476 - mov x16, #(num) %%\ 477 - svc #SWI_SYSCALL %%\ 478 - b.cc 2f %%\ 479 - PUSH_FRAME %%\ 480 - bl _##cerror %%\ 481 - POP_FRAME %%\ 482 - ret %%\ 483 - 2: 449 + #define DO_SYSCALL(num, cerror) \ 450 + mov x16, #(num) %%\ 451 + svc #SWI_SYSCALL %%\ 452 + b.cc 2f %%\ 453 + ARM64_STACK_PROLOG %%\ 454 + PUSH_FRAME %%\ 455 + bl _##cerror %%\ 456 + POP_FRAME %%\ 457 + ARM64_STACK_EPILOG %%\ 458 + 2: 484 459 485 460 #define MI_GET_ADDRESS(reg,var) \ 486 461 adrp reg, var@page %%\
+7 -25
src/kernel/libsyscall/custom/__fork.S
··· 52 52 subl $28, %esp // Align the stack, with 16 bytes of extra padding that we'll need 53 53 54 54 movl $ SYS_fork,%eax; // code for fork -> eax 55 - #ifdef DARLING 56 - call __darling_bsd_syscall 57 - cmpl $0, %eax 58 - jnb L1 59 - #else 60 - UNIX_SYSCALL_TRAP // do the system call 61 - jnc L1 // jump if CF==0 62 - #endif 55 + UNIX_SYSCALL_TRAP // do the system call 56 + jnc L1 // jump if CF==0 63 57 64 58 CALL_EXTERN(tramp_cerror) 65 59 movl $-1,%eax ··· 83 77 LEAF(___fork, 0) 84 78 subq $24, %rsp // Align the stack, plus room for local storage 85 79 86 - #ifdef DARLING 87 - movl $ SYS_fork, %eax 88 - call __darling_bsd_syscall 89 - cmpq $0, %rax 90 - jnb L1 91 - #else 92 - movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax 93 - UNIX_SYSCALL_TRAP // do the system call 94 - jnc L1 // jump if CF==0 95 - #endif 80 + movl $ SYSCALL_CONSTRUCT_UNIX(SYS_fork),%eax; // code for fork -> rax 81 + UNIX_SYSCALL_TRAP // do the system call 82 + jnc L1 // jump if CF==0 96 83 97 84 movq %rax, %rdi 98 85 CALL_EXTERN(_cerror) ··· 101 88 ret 102 89 103 90 L1: 104 - #ifdef DARLING 105 - testl %eax, %eax 106 - jnz L2 107 - #else 108 - orl %edx,%edx // CF=OF=0, ZF set if zero result 109 - jz L2 // parent, since r1 == 0 in parent, 1 in child 110 - #endif 91 + orl %edx,%edx // CF=OF=0, ZF set if zero result 92 + jz L2 // parent, since r1 == 0 in parent, 1 in child 111 93 112 94 //child here... 113 95 xorq %rax, %rax
+7 -22
src/kernel/libsyscall/custom/__vfork.S
··· 105 105 lock 106 106 cmpxchgl %ecx, (%rdx) 107 107 jne 0b 108 - #ifdef DARLING 109 - movl $ SYS_vfork, %eax 110 - call __darling_bsd_syscall 111 - cmpq $0, %rax 112 - jnb L1 113 - #else 114 108 popq %rdi // return address in %rdi 115 109 movq $ SYSCALL_CONSTRUCT_UNIX(SYS_vfork), %rax // code for vfork -> rax 116 110 UNIX_SYSCALL_TRAP // do the system call 117 111 jnb L1 // jump if CF==0 118 112 pushq %rdi // put return address back on stack for cerror 119 - #endif 120 113 movq __current_pid@GOTPCREL(%rip), %rcx 121 114 lock 122 115 addl $1, (%rcx) ··· 124 117 BRANCH_EXTERN(_cerror) 125 118 126 119 L1: 127 - #ifdef DARLING 128 - testl %eax, %eax 129 - jnz L2 130 - #else 131 120 testl %edx, %edx // CF=OF=0, ZF set if zero result 132 121 jz L2 // parent, since r1 == 0 in parent, 1 in child 133 - #endif 134 122 xorq %rax, %rax // zero rax 135 - #ifdef DARLING 136 - ret 137 - #else 138 123 jmp *%rdi 139 - #endif 140 124 141 125 L2: 142 126 movq __current_pid@GOTPCREL(%rip), %rdx 143 127 lock 144 128 addl $1, (%rdx) 145 - #ifdef DARLING 146 - ret 147 - #else 148 129 jmp *%rdi 149 - #endif 150 130 151 131 #elif defined(__arm__) 152 132 ··· 187 167 bx lr // return 188 168 189 169 Lbotch: 170 + stmfd sp!, {lr} 190 171 MI_CALL_EXTERNAL(_cerror) // jump here on error 191 172 mov r0,#-1 // set the error 192 173 // reload values clobbered by cerror (so we can treat them as live in Lparent) 193 174 MI_GET_ADDRESS(r3, __current_pid) // get address of __current_pid 175 + ldmfd sp!, {lr} 194 176 #ifndef _ARM_ARCH_6 195 177 mov r2, #0x80000000 // load "looking" value 196 178 #endif ··· 216 198 #elif defined(__arm64__) 217 199 218 200 MI_ENTRY_POINT(___vfork) 201 + ARM64_STACK_PROLOG 219 202 220 203 MI_GET_ADDRESS(x9, __current_pid) 221 204 Ltry_set_vfork: ··· 234 217 235 218 // Child 236 219 mov w0, #0 237 - ret 220 + ARM64_STACK_EPILOG 238 221 239 222 // Error case 240 223 Lbotch: 224 + PUSH_FRAME 241 225 bl _cerror // Update errno 242 226 mov w0, #-1 // Set return value 243 227 MI_GET_ADDRESS(x9, __current_pid) // Reload current pid address 228 + POP_FRAME 244 229 // Fall through 245 230 Lparent: 246 231 ldxr w10, [x9] // Exclusive load current pid value 247 232 add w10, w10, #1 // Increment (i.e. decrement vfork count) 248 233 stxr w11, w10, [x9] // Attempt exclusive store of updated vfork count 249 234 cbnz w11, Lparent // If exclusive store failed, retry 250 - ret // Done, return 235 + ARM64_STACK_EPILOG // Done, return 251 236 252 237 #else 253 238 #error Unsupported architecture
-836
src/kernel/libsyscall/device/device.defs
··· 1 - /* 2 - * Copyright (c) 1998-2014 Apple Computer, Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* 29 - * @OSF_COPYRIGHT@ 30 - */ 31 - /* 32 - * Mach Operating System 33 - * Copyright (c) 1991,1990,1989 Carnegie Mellon University 34 - * All Rights Reserved. 35 - * 36 - * Permission to use, copy, modify and distribute this software and its 37 - * documentation is hereby granted, provided that both the copyright 38 - * notice and this permission notice appear in all copies of the 39 - * software, derivative works or modified versions, and any portions 40 - * thereof, and that both notices appear in supporting documentation. 41 - * 42 - * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 43 - * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 44 - * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 45 - * 46 - * Carnegie Mellon requests users of this software to return to 47 - * 48 - * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 49 - * School of Computer Science 50 - * Carnegie Mellon University 51 - * Pittsburgh PA 15213-3890 52 - * 53 - * any improvements or extensions that they make and grant Carnegie Mellon 54 - * the rights to redistribute these changes. 55 - */ 56 - /* 57 - * File: device/device.defs 58 - * Author: Douglas Orr 59 - * Feb 10, 1988 60 - * Abstract: 61 - * Mach device support. Mach devices are accessed through 62 - * block and character device interfaces to the kernel. 63 - */ 64 - 65 - subsystem 66 - #if KERNEL_SERVER 67 - KernelServer 68 - #endif /* KERNEL_SERVER */ 69 - iokit 2800; 70 - 71 - #if IOKITSIMD || KERNEL_SERVER 72 - #define IOKIT_ALL_IPC 1 73 - #endif 74 - 75 - #include <mach/std_types.defs> 76 - #include <mach/mach_types.defs> 77 - #include <mach/clock_types.defs> 78 - #include <mach/clock_types.defs> 79 - 80 - #if !__LP64__ 81 - # define __ILP32__ 1 82 - #endif 83 - 84 - import <device/device_types.h>; 85 - 86 - serverprefix is_; 87 - 88 - type reply_port_t = MACH_MSG_TYPE_MAKE_SEND_ONCE | polymorphic 89 - ctype: mach_port_t; 90 - 91 - #if IOKIT 92 - 93 - type io_name_t = c_string[*:128]; 94 - type io_string_t = c_string[*:512]; 95 - type io_string_inband_t = c_string[*:4096]; 96 - type io_struct_inband_t = array[*:4096] of char; 97 - type io_buf_ptr_t = ^array[] of MACH_MSG_TYPE_INTEGER_8; 98 - type NDR_record_t = struct[8] of char; 99 - 100 - #if KERNEL 101 - type io_user_scalar_t = uint64_t; 102 - type io_user_reference_t = uint64_t; 103 - type io_scalar_inband_t = array[*:16] of int; 104 - // must be the same type as OSAsyncReference 105 - type io_async_ref_t = array[*:8] of natural_t; 106 - type io_scalar_inband64_t = array[*:16] of io_user_scalar_t; 107 - type io_async_ref64_t = array[*:8] of io_user_reference_t; 108 - #elif __LP64__ 109 - type io_user_scalar_t = uint64_t; 110 - type io_user_reference_t = uint64_t; 111 - type io_scalar_inband_t = array[*:16] of io_user_scalar_t; 112 - type io_async_ref_t = array[*:8] of io_user_reference_t; 113 - type io_scalar_inband64_t = array[*:16] of io_user_scalar_t; 114 - type io_async_ref64_t = array[*:8] of io_user_reference_t; 115 - #else 116 - type io_user_scalar_t = int; 117 - type io_user_reference_t = natural_t; 118 - type io_scalar_inband_t = array[*:16] of io_user_scalar_t; 119 - type io_async_ref_t = array[*:8] of io_user_reference_t; 120 - type io_scalar_inband64_t = array[*:16] of uint64_t; 121 - type io_async_ref64_t = array[*:8] of uint64_t; 122 - #endif // __LP64__ 123 - 124 - type io_object_t = mach_port_t 125 - ctype: mach_port_t 126 - #if KERNEL_SERVER 127 - intran: io_object_t iokit_lookup_object_port(mach_port_t) 128 - outtran: mach_port_t iokit_make_object_port(io_object_t) 129 - destructor: iokit_remove_reference(io_object_t) 130 - #endif /* KERNEL_SERVER */ 131 - ; 132 - 133 - type io_connect_t = mach_port_t 134 - ctype: mach_port_t 135 - #if KERNEL_SERVER 136 - intran: io_connect_t iokit_lookup_connect_port(mach_port_t) 137 - outtran: mach_port_t iokit_make_connect_port(io_connect_t) 138 - destructor: iokit_remove_connect_reference(io_connect_t) 139 - #endif /* KERNEL_SERVER */ 140 - ; 141 - 142 - routine io_object_get_class( 143 - object : io_object_t; 144 - out className : io_name_t 145 - ); 146 - 147 - routine io_object_conforms_to( 148 - object : io_object_t; 149 - in className : io_name_t; 150 - out conforms : boolean_t 151 - ); 152 - 153 - routine io_iterator_next( 154 - iterator : io_object_t; 155 - out object : io_object_t 156 - ); 157 - 158 - routine io_iterator_reset( 159 - iterator : io_object_t 160 - ); 161 - 162 - routine io_service_get_matching_services( 163 - master_port : mach_port_t; 164 - in matching : io_string_t; 165 - out existing : io_object_t 166 - ); 167 - 168 - routine io_registry_entry_get_property( 169 - registry_entry : io_object_t; 170 - in property_name : io_name_t; 171 - out properties : io_buf_ptr_t, physicalcopy 172 - ); 173 - 174 - routine io_registry_create_iterator( 175 - master_port : mach_port_t; 176 - in plane : io_name_t; 177 - in options : uint32_t; 178 - out iterator : io_object_t 179 - ); 180 - 181 - routine io_registry_iterator_enter_entry( 182 - iterator : io_object_t 183 - ); 184 - 185 - routine io_registry_iterator_exit_entry( 186 - iterator : io_object_t 187 - ); 188 - 189 - routine io_registry_entry_from_path( 190 - master_port : mach_port_t; 191 - in path : io_string_t; 192 - out registry_entry : io_object_t 193 - ); 194 - 195 - routine io_registry_entry_get_name( 196 - registry_entry : io_object_t; 197 - out name : io_name_t 198 - ); 199 - 200 - routine io_registry_entry_get_properties( 201 - registry_entry : io_object_t; 202 - out properties : io_buf_ptr_t, physicalcopy 203 - ); 204 - 205 - routine io_registry_entry_get_property_bytes( 206 - registry_entry : io_object_t; 207 - in property_name : io_name_t; 208 - out data : io_struct_inband_t, CountInOut 209 - ); 210 - 211 - routine io_registry_entry_get_child_iterator( 212 - registry_entry : io_object_t; 213 - in plane : io_name_t; 214 - out iterator : io_object_t 215 - ); 216 - 217 - routine io_registry_entry_get_parent_iterator( 218 - registry_entry : io_object_t; 219 - in plane : io_name_t; 220 - out iterator : io_object_t 221 - ); 222 - 223 - skip; 224 - /* was routine io_service_open 225 - service : io_object_t; 226 - in owningTask : task_t; 227 - in connect_type : uint32_t; 228 - out connection : io_connect_t 229 - ); 230 - */ 231 - 232 - routine io_service_close( 233 - connection : io_connect_t 234 - ); 235 - 236 - routine io_connect_get_service( 237 - connection : io_connect_t; 238 - out service : io_object_t 239 - ); 240 - 241 - #if IOKIT_ALL_IPC || __ILP32__ 242 - routine io_connect_set_notification_port( 243 - connection : io_connect_t; 244 - in notification_type : uint32_t; 245 - in port : mach_port_make_send_t; 246 - in reference : uint32_t 247 - ); 248 - 249 - routine io_connect_map_memory( 250 - connection : io_connect_t; 251 - in memory_type : uint32_t; 252 - in into_task : task_t; 253 - #if IOKIT_ALL_IPC 254 - inout address : uint32_t; 255 - inout size : uint32_t; 256 - #else 257 - inout address : vm_address_t; 258 - inout size : vm_size_t; 259 - #endif 260 - in flags : uint32_t 261 - ); 262 - #else 263 - skip; 264 - skip; 265 - #endif 266 - 267 - routine io_connect_add_client( 268 - connection : io_connect_t; 269 - in connect_to : io_connect_t 270 - ); 271 - 272 - routine io_connect_set_properties( 273 - connection : io_connect_t; 274 - in properties : io_buf_ptr_t, physicalcopy; 275 - out result : kern_return_t 276 - ); 277 - 278 - #if IOKIT_ALL_IPC || __ILP32__ 279 - routine io_connect_method_scalarI_scalarO( 280 - connection : io_connect_t; 281 - in selector : uint32_t; 282 - in input : io_scalar_inband_t; 283 - out output : io_scalar_inband_t, CountInOut 284 - ); 285 - 286 - routine io_connect_method_scalarI_structureO( 287 - connection : io_connect_t; 288 - in selector : uint32_t; 289 - in input : io_scalar_inband_t; 290 - out output : io_struct_inband_t, CountInOut 291 - ); 292 - 293 - routine io_connect_method_scalarI_structureI( 294 - connection : io_connect_t; 295 - in selector : uint32_t; 296 - in input : io_scalar_inband_t; 297 - in inputStruct : io_struct_inband_t 298 - ); 299 - 300 - routine io_connect_method_structureI_structureO( 301 - connection : io_connect_t; 302 - in selector : uint32_t; 303 - in input : io_struct_inband_t; 304 - out output : io_struct_inband_t, CountInOut 305 - ); 306 - #else 307 - skip; 308 - skip; 309 - skip; 310 - skip; 311 - #endif 312 - 313 - routine io_registry_entry_get_path( 314 - registry_entry : io_object_t; 315 - in plane : io_name_t; 316 - out path : io_string_t 317 - ); 318 - 319 - routine io_registry_get_root_entry( 320 - master_port : mach_port_t; 321 - out root : io_object_t 322 - ); 323 - 324 - routine io_registry_entry_set_properties( 325 - registry_entry : io_object_t; 326 - in properties : io_buf_ptr_t, physicalcopy; 327 - out result : kern_return_t 328 - ); 329 - 330 - routine io_registry_entry_in_plane( 331 - registry_entry : io_object_t; 332 - in plane : io_name_t; 333 - out inPlane : boolean_t 334 - ); 335 - 336 - routine io_object_get_retain_count( 337 - object : io_object_t; 338 - out retainCount : uint32_t 339 - ); 340 - 341 - routine io_service_get_busy_state( 342 - service : io_object_t; 343 - out busyState : uint32_t 344 - ); 345 - 346 - routine io_service_wait_quiet( 347 - service : io_object_t; 348 - wait_time : mach_timespec_t 349 - ); 350 - 351 - routine io_registry_entry_create_iterator( 352 - registry_entry : io_object_t; 353 - in plane : io_name_t; 354 - in options : uint32_t; 355 - out iterator : io_object_t 356 - ); 357 - 358 - routine io_iterator_is_valid( 359 - iterator : io_object_t; 360 - out is_valid : boolean_t 361 - ); 362 - 363 - skip; 364 - /* was routine io_make_matching( 365 - master_port : mach_port_t; 366 - in of_type : uint32_t; 367 - in options : uint32_t; 368 - in input : io_struct_inband_t; 369 - out matching : io_string_t 370 - ); 371 - */ 372 - 373 - routine io_catalog_send_data( 374 - master_port : mach_port_t; 375 - in flag : uint32_t; 376 - in inData : io_buf_ptr_t; 377 - out result : kern_return_t 378 - ); 379 - 380 - routine io_catalog_terminate( 381 - master_port : mach_port_t; 382 - in flag : uint32_t; 383 - in name : io_name_t 384 - ); 385 - 386 - routine io_catalog_get_data( 387 - master_port : mach_port_t; 388 - in flag : uint32_t; 389 - out outData : io_buf_ptr_t 390 - ); 391 - 392 - routine io_catalog_get_gen_count( 393 - master_port : mach_port_t; 394 - out genCount : uint32_t 395 - ); 396 - 397 - routine io_catalog_module_loaded( 398 - master_port : mach_port_t; 399 - in name : io_name_t 400 - ); 401 - 402 - routine io_catalog_reset( 403 - master_port : mach_port_t; 404 - in flag : uint32_t 405 - ); 406 - 407 - routine io_service_request_probe( 408 - service : io_object_t; 409 - in options : uint32_t 410 - ); 411 - 412 - routine io_registry_entry_get_name_in_plane( 413 - registry_entry : io_object_t; 414 - in plane : io_name_t; 415 - out name : io_name_t 416 - ); 417 - 418 - routine io_service_match_property_table( 419 - service : io_object_t; 420 - in matching : io_string_t; 421 - out matches : boolean_t 422 - ); 423 - 424 - #if IOKIT_ALL_IPC || __ILP32__ 425 - routine io_async_method_scalarI_scalarO( 426 - connection : io_connect_t; 427 - in wake_port : mach_port_make_send_t; 428 - in reference : io_async_ref_t; 429 - in selector : uint32_t; 430 - in input : io_scalar_inband_t; 431 - out output : io_scalar_inband_t, CountInOut 432 - ); 433 - routine io_async_method_scalarI_structureO( 434 - connection : io_connect_t; 435 - in wake_port : mach_port_make_send_t; 436 - in reference : io_async_ref_t; 437 - in selector : uint32_t; 438 - in input : io_scalar_inband_t; 439 - out output : io_struct_inband_t, CountInOut 440 - ); 441 - routine io_async_method_scalarI_structureI( 442 - connection : io_connect_t; 443 - in wake_port : mach_port_make_send_t; 444 - in reference : io_async_ref_t; 445 - in selector : uint32_t; 446 - in input : io_scalar_inband_t; 447 - in inputStruct : io_struct_inband_t 448 - ); 449 - routine io_async_method_structureI_structureO( 450 - connection : io_connect_t; 451 - in wake_port : mach_port_make_send_t; 452 - in reference : io_async_ref_t; 453 - in selector : uint32_t; 454 - in input : io_struct_inband_t; 455 - out output : io_struct_inband_t, CountInOut 456 - ); 457 - #else 458 - skip; 459 - skip; 460 - skip; 461 - skip; 462 - #endif 463 - 464 - #if IOKIT_ALL_IPC || __ILP32__ 465 - routine io_service_add_notification( 466 - master_port : mach_port_t; 467 - in notification_type : io_name_t; 468 - in matching : io_string_t; 469 - in wake_port : mach_port_make_send_t; 470 - in reference : io_async_ref_t; 471 - out notification : io_object_t 472 - ); 473 - routine io_service_add_interest_notification( 474 - service : io_object_t; 475 - in type_of_interest : io_name_t; 476 - in wake_port : mach_port_make_send_t; 477 - in reference : io_async_ref_t; 478 - out notification : io_object_t 479 - ); 480 - routine io_service_acknowledge_notification( 481 - service : io_object_t; 482 - in notify_ref : natural_t; 483 - in response : natural_t 484 - ); 485 - #else 486 - skip; 487 - skip; 488 - skip; 489 - #endif 490 - 491 - routine io_connect_get_notification_semaphore( 492 - connection : io_connect_t; 493 - in notification_type : natural_t; 494 - out semaphore : semaphore_t 495 - ); 496 - 497 - #if IOKIT_ALL_IPC || __ILP32__ 498 - routine io_connect_unmap_memory( 499 - connection : io_connect_t; 500 - in memory_type : uint32_t; 501 - in into_task : task_t; 502 - #if IOKIT_ALL_IPC 503 - in address : uint32_t 504 - #else 505 - in address : vm_address_t 506 - #endif 507 - ); 508 - #else 509 - skip; 510 - #endif 511 - 512 - routine io_registry_entry_get_location_in_plane( 513 - registry_entry : io_object_t; 514 - in plane : io_name_t; 515 - out location : io_name_t 516 - ); 517 - 518 - routine io_registry_entry_get_property_recursively( 519 - registry_entry : io_object_t; 520 - in plane : io_name_t; 521 - in property_name : io_name_t; 522 - in options : uint32_t; 523 - out properties : io_buf_ptr_t, physicalcopy 524 - ); 525 - 526 - routine io_service_get_state( 527 - service : io_object_t; 528 - out state : uint64_t; 529 - out busy_state : uint32_t; 530 - out accumulated_busy_time : uint64_t 531 - ); 532 - 533 - routine io_service_get_matching_services_ool( 534 - master_port : mach_port_t; 535 - in matching : io_buf_ptr_t, physicalcopy; 536 - out result : kern_return_t; 537 - out existing : io_object_t 538 - ); 539 - 540 - routine io_service_match_property_table_ool( 541 - service : io_object_t; 542 - in matching : io_buf_ptr_t, physicalcopy; 543 - out result : kern_return_t; 544 - out matches : boolean_t 545 - ); 546 - 547 - #if IOKIT_ALL_IPC || __ILP32__ 548 - routine io_service_add_notification_ool( 549 - master_port : mach_port_t; 550 - in notification_type : io_name_t; 551 - in matching : io_buf_ptr_t, physicalcopy; 552 - in wake_port : mach_port_make_send_t; 553 - in reference : io_async_ref_t; 554 - out result : kern_return_t; 555 - out notification : io_object_t 556 - ); 557 - #else 558 - skip; 559 - #endif 560 - 561 - routine io_object_get_superclass( 562 - master_port : mach_port_t; 563 - in obj_name : io_name_t; 564 - out class_name : io_name_t 565 - ); 566 - 567 - routine io_object_get_bundle_identifier( 568 - master_port : mach_port_t; 569 - in obj_name : io_name_t; 570 - out class_name : io_name_t 571 - ); 572 - 573 - routine io_service_open_extended( 574 - service : io_object_t; 575 - in owningTask : task_t; 576 - in connect_type : uint32_t; 577 - in ndr : NDR_record_t; 578 - in properties : io_buf_ptr_t, physicalcopy; 579 - out result : kern_return_t; 580 - out connection : io_connect_t 581 - ); 582 - 583 - 584 - /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 585 - 586 - routine io_connect_map_memory_into_task( 587 - connection : io_connect_t; 588 - in memory_type : uint32_t; 589 - in into_task : task_t; 590 - inout address : mach_vm_address_t; 591 - inout size : mach_vm_size_t; 592 - in flags : uint32_t 593 - ); 594 - 595 - routine io_connect_unmap_memory_from_task( 596 - connection : io_connect_t; 597 - in memory_type : uint32_t; 598 - in from_task : task_t; 599 - in address : mach_vm_address_t 600 - ); 601 - 602 - routine io_connect_method( 603 - connection : io_connect_t; 604 - in selector : uint32_t; 605 - 606 - in scalar_input : io_scalar_inband64_t; 607 - in inband_input : io_struct_inband_t; 608 - in ool_input : mach_vm_address_t; 609 - in ool_input_size : mach_vm_size_t; 610 - 611 - out inband_output : io_struct_inband_t, CountInOut; 612 - out scalar_output : io_scalar_inband64_t, CountInOut; 613 - in ool_output : mach_vm_address_t; 614 - inout ool_output_size : mach_vm_size_t 615 - ); 616 - 617 - routine io_connect_async_method( 618 - connection : io_connect_t; 619 - in wake_port : mach_port_make_send_t; 620 - in reference : io_async_ref64_t; 621 - in selector : uint32_t; 622 - 623 - in scalar_input : io_scalar_inband64_t; 624 - in inband_input : io_struct_inband_t; 625 - in ool_input : mach_vm_address_t; 626 - in ool_input_size : mach_vm_size_t; 627 - 628 - out inband_output : io_struct_inband_t, CountInOut; 629 - out scalar_output : io_scalar_inband64_t, CountInOut; 630 - in ool_output : mach_vm_address_t; 631 - inout ool_output_size : mach_vm_size_t 632 - ); 633 - 634 - 635 - #if IOKIT_ALL_IPC || __LP64__ 636 - 637 - #if IOKIT_ALL_IPC 638 - #define FUNC_NAME(name) name ## _64 639 - #else 640 - #define FUNC_NAME(name) name 641 - #endif 642 - 643 - routine FUNC_NAME(io_connect_set_notification_port)( 644 - connection : io_connect_t; 645 - in notification_type : uint32_t; 646 - in port : mach_port_make_send_t; 647 - in reference : io_user_reference_t 648 - ); 649 - 650 - routine FUNC_NAME(io_service_add_notification)( 651 - master_port : mach_port_t; 652 - in notification_type : io_name_t; 653 - in matching : io_string_t; 654 - in wake_port : mach_port_make_send_t; 655 - in reference : io_async_ref64_t; 656 - out notification : io_object_t 657 - ); 658 - 659 - routine FUNC_NAME(io_service_add_interest_notification)( 660 - service : io_object_t; 661 - in type_of_interest : io_name_t; 662 - in wake_port : mach_port_make_send_t; 663 - in reference : io_async_ref64_t; 664 - out notification : io_object_t 665 - ); 666 - 667 - routine FUNC_NAME(io_service_add_notification_ool)( 668 - master_port : mach_port_t; 669 - in notification_type : io_name_t; 670 - in matching : io_buf_ptr_t, physicalcopy; 671 - in wake_port : mach_port_make_send_t; 672 - in reference : io_async_ref64_t; 673 - out result : kern_return_t; 674 - out notification : io_object_t 675 - ); 676 - 677 - #else 678 - 679 - skip; 680 - skip; 681 - skip; 682 - skip; 683 - 684 - #endif /* IOKIT_ALL_IPC || __LP64__ */ 685 - 686 - routine io_registry_entry_get_registry_entry_id( 687 - registry_entry : io_object_t; 688 - out entry_id : uint64_t 689 - ); 690 - 691 - routine io_connect_method_var_output( 692 - connection : io_connect_t; 693 - in selector : uint32_t; 694 - 695 - in scalar_input : io_scalar_inband64_t; 696 - in inband_input : io_struct_inband_t; 697 - in ool_input : mach_vm_address_t; 698 - in ool_input_size : mach_vm_size_t; 699 - 700 - out inband_output : io_struct_inband_t, CountInOut; 701 - out scalar_output : io_scalar_inband64_t, CountInOut; 702 - out var_output : io_buf_ptr_t, physicalcopy 703 - ); 704 - 705 - routine io_service_get_matching_service( 706 - master_port : mach_port_t; 707 - in matching : io_string_t; 708 - out service : io_object_t 709 - ); 710 - 711 - routine io_service_get_matching_service_ool( 712 - master_port : mach_port_t; 713 - in matching : io_buf_ptr_t, physicalcopy; 714 - out result : kern_return_t; 715 - out service : io_object_t 716 - ); 717 - 718 - routine io_service_get_authorization_id( 719 - service : io_object_t; 720 - out authorization_id : uint64_t 721 - ); 722 - 723 - routine io_service_set_authorization_id( 724 - service : io_object_t; 725 - in authorization_id : uint64_t 726 - ); 727 - 728 - /* */ 729 - 730 - routine io_server_version( 731 - master_port : mach_port_t; 732 - out version : uint64_t 733 - ); 734 - 735 - routine io_registry_entry_get_properties_bin( 736 - registry_entry : io_object_t; 737 - out properties : io_buf_ptr_t, physicalcopy 738 - ); 739 - 740 - routine io_registry_entry_get_property_bin( 741 - registry_entry : io_object_t; 742 - in plane : io_name_t; 743 - in property_name : io_name_t; 744 - in options : uint32_t; 745 - out properties : io_buf_ptr_t, physicalcopy 746 - ); 747 - 748 - routine io_service_get_matching_service_bin( 749 - master_port : mach_port_t; 750 - in matching : io_struct_inband_t; 751 - out service : io_object_t 752 - ); 753 - 754 - routine io_service_get_matching_services_bin( 755 - master_port : mach_port_t; 756 - in matching : io_struct_inband_t; 757 - out existing : io_object_t 758 - ); 759 - 760 - routine io_service_match_property_table_bin( 761 - service : io_object_t; 762 - in matching : io_struct_inband_t; 763 - out matches : boolean_t 764 - ); 765 - 766 - #if IOKIT_ALL_IPC || __ILP32__ 767 - routine io_service_add_notification_bin( 768 - master_port : mach_port_t; 769 - in notification_type : io_name_t; 770 - in matching : io_struct_inband_t; 771 - in wake_port : mach_port_make_send_t; 772 - in reference : io_async_ref_t; 773 - out notification : io_object_t 774 - ); 775 - #else 776 - skip; 777 - #endif 778 - 779 - #if IOKIT_ALL_IPC || __LP64__ 780 - routine FUNC_NAME(io_service_add_notification_bin)( 781 - master_port : mach_port_t; 782 - in notification_type : io_name_t; 783 - in matching : io_struct_inband_t; 784 - in wake_port : mach_port_make_send_t; 785 - in reference : io_async_ref64_t; 786 - out notification : io_object_t 787 - ); 788 - #else 789 - skip; 790 - #endif 791 - 792 - #if !IOKITSIMD 793 - 794 - routine io_registry_entry_get_path_ool( 795 - registry_entry : io_object_t; 796 - in plane : io_name_t; 797 - out path : io_string_inband_t; 798 - out path_ool : io_buf_ptr_t, physicalcopy 799 - ); 800 - 801 - routine io_registry_entry_from_path_ool( 802 - master_port : mach_port_t; 803 - in path : io_string_inband_t; 804 - in path_ool : io_buf_ptr_t, physicalcopy; 805 - out result : kern_return_t; 806 - out registry_entry : io_object_t 807 - ); 808 - 809 - #endif 810 - 811 - routine io_device_tree_entry_exists_with_name( 812 - master_port : mach_port_t; 813 - in name : io_name_t; 814 - out exists : boolean_t 815 - ); 816 - 817 - routine io_registry_entry_get_properties_bin_buf( 818 - registry_entry : io_object_t; 819 - in buf : mach_vm_address_t; 820 - inout bufsize : mach_vm_size_t; 821 - out properties : io_buf_ptr_t, physicalcopy 822 - ); 823 - 824 - routine io_registry_entry_get_property_bin_buf( 825 - registry_entry : io_object_t; 826 - in plane : io_name_t; 827 - in property_name : io_name_t; 828 - in options : uint32_t; 829 - in buf : mach_vm_address_t; 830 - inout bufsize : mach_vm_size_t; 831 - out properties : io_buf_ptr_t, physicalcopy 832 - ); 833 - 834 - #endif /* IOKIT */ 835 - 836 - /* vim: set ft=c : */
-107
src/kernel/libsyscall/device/device_types.defs
··· 1 - /* 2 - * Copyright (c) 2002,2000 Apple Computer, Inc. All rights reserved. 3 - * 4 - * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. The rights granted to you under the License 10 - * may not be used to create, or enable the creation or redistribution of, 11 - * unlawful or unlicensed copies of an Apple operating system, or to 12 - * circumvent, violate, or enable the circumvention or violation of, any 13 - * terms of an Apple operating system software license agreement. 14 - * 15 - * Please obtain a copy of the License at 16 - * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 - * 18 - * The Original Code and all software distributed under the License are 19 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 - * Please see the License for the specific language governing rights and 24 - * limitations under the License. 25 - * 26 - * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 - */ 28 - /* 29 - * @OSF_COPYRIGHT@ 30 - */ 31 - /* 32 - * Mach Operating System 33 - * Copyright (c) 1991,1990,1989 Carnegie Mellon University 34 - * All Rights Reserved. 35 - * 36 - * Permission to use, copy, modify and distribute this software and its 37 - * documentation is hereby granted, provided that both the copyright 38 - * notice and this permission notice appear in all copies of the 39 - * software, derivative works or modified versions, and any portions 40 - * thereof, and that both notices appear in supporting documentation. 41 - * 42 - * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" 43 - * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 44 - * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 45 - * 46 - * Carnegie Mellon requests users of this software to return to 47 - * 48 - * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 49 - * School of Computer Science 50 - * Carnegie Mellon University 51 - * Pittsburgh PA 15213-3890 52 - * 53 - * any improvements or extensions that they make and grant Carnegie Mellon 54 - * the rights to redistribute these changes. 55 - */ 56 - /* 57 - */ 58 - /* 59 - * Author: David B. Golub, Carnegie Mellon University 60 - * Date: 3/89 61 - * 62 - * Common definitions for device interface types. 63 - */ 64 - 65 - #ifndef _DEVICE_DEVICE_TYPES_DEFS_ 66 - #define _DEVICE_DEVICE_TYPES_DEFS_ 67 - 68 - /* 69 - * Basic types 70 - */ 71 - 72 - #include <mach/std_types.defs> 73 - #include <mach/mach_types.defs> 74 - 75 - type recnum_t = uint32_t; 76 - type dev_mode_t = uint32_t; 77 - type dev_flavor_t = uint32_t; 78 - type dev_name_t = c_string[*:128]; 79 - type dev_status_t = array[*:1024] of int; 80 - type io_buf_len_t = integer_t; 81 - type io_buf_ptr_t = ^array[] of MACH_MSG_TYPE_INTEGER_8; 82 - type io_buf_ptr_inband_t= array[*:128] of char; 83 - type filter_t = short; 84 - type filter_array_t = array[*:64] of filter_t; 85 - 86 - type device_t = mach_port_t 87 - ctype: mach_port_t 88 - #if KERNEL_SERVER 89 - intran: device_t dev_port_lookup(mach_port_t) 90 - outtran: mach_port_t convert_device_to_port(device_t) 91 - destructor: device_deallocate(device_t) 92 - #endif /* KERNEL_SERVER */ 93 - ; 94 - 95 - type io_done_queue_t = mach_port_t 96 - ctype: mach_port_t 97 - #if KERNEL_SERVER 98 - intran: io_done_queue_t io_done_queue_port_lookup(mach_port_t) 99 - outtran: mach_port_t convert_io_done_queue_to_port(io_done_queue_t) 100 - #endif /* KERNEL_SERVER */ 101 - ; 102 - 103 - import <device/device_types.h>; 104 - 105 - #endif /* _DEVICE_DEVICE_TYPES_DEFS_ */ 106 - 107 - /* vim: set ft=c : */
-2
src/kernel/libsyscall/fixdups.ed
··· 1 - /<mach\/mig\.h>/;.+1,$g/<mach\/mig\.h>/d 2 - w
+8
src/kernel/libsyscall/mach/err_libkern.sub
··· 90 90 "(libkern/kext) kext request timed out", /* 0x19 */ 91 91 "(libkern/kext) kext is stopping and cannot issue requests", /* 0x1a */ 92 92 "(libkern/kext) system policy prevents loading", /* 0x1b */ 93 + 94 + "(libkern/kext) loading/mapping of a kext collection failed", /* 0x1c */ 95 + "(libkern/kext) mapping of the SystemKC failed", /* 0x1d */ 96 + "(libkern/kext) loading/mapping of the AuxiliaryKC failed", /* 0x1e */ 97 + "(libkern/kext) loading of both Auxiliary and System KCs failed", /* 0x1f */ 93 98 }; 94 99 95 100 /* libkern is err_system(0x37) */ ··· 115 120 err_codes_libkern_kext, 116 121 }, 117 122 }; 123 + 124 + 125 + /* vim: set ft=c ts=8 sw=4: */
+2 -4
src/kernel/libsyscall/mach/host.c
··· 37 37 host_get_atm_diagnostic_flag(host_t host __unused, 38 38 uint32_t *diagnostic_flag) 39 39 { 40 - volatile uint32_t *diagnostic_flag_address = (volatile uint32_t *)(uintptr_t)(_COMM_PAGE_ATM_DIAGNOSTIC_CONFIG); 41 - *diagnostic_flag = *diagnostic_flag_address; 40 + *diagnostic_flag = COMM_PAGE_READ(uint32_t, ATM_DIAGNOSTIC_CONFIG); 42 41 return KERN_SUCCESS; 43 42 } 44 43 ··· 47 46 uint32_t *multiuser_flags) 48 47 { 49 48 #if (TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) 50 - volatile uint32_t *multiuser_flag_address = (volatile uint32_t *)(uintptr_t)(_COMM_PAGE_MULTIUSER_CONFIG); 51 - *multiuser_flags = *multiuser_flag_address; 49 + *multiuser_flags = COMM_PAGE_READ(uint32_t, MULTIUSER_CONFIG); 52 50 return KERN_SUCCESS; 53 51 #else 54 52 (void)multiuser_flags;
+6
src/kernel/libsyscall/mach/mach/mach_init.h
··· 64 64 65 65 #include <sys/cdefs.h> 66 66 67 + #ifndef KERNEL 68 + #include <Availability.h> 69 + #endif 70 + 67 71 /* 68 72 * Kernel-related ports; how a task/thread controls itself 69 73 */ ··· 71 75 __BEGIN_DECLS 72 76 extern mach_port_t mach_host_self(void); 73 77 extern mach_port_t mach_thread_self(void); 78 + __API_AVAILABLE(macos(11.3), ios(14.5), tvos(14.5), watchos(7.3)) 79 + extern boolean_t mach_task_is_self(task_name_t task); 74 80 extern kern_return_t host_page_size(host_t, vm_size_t *); 75 81 76 82 extern mach_port_t mach_task_self_;
+13
src/kernel/libsyscall/mach/mach/port_descriptions.h
··· 45 45 const char *mach_task_special_port_description(int offset); 46 46 47 47 /* 48 + * Returns a string describing the thread special port offset provided, or NULL if 49 + * the provided offset is not a thread special port offset. 50 + */ 51 + const char *mach_thread_special_port_description(int offset); 52 + 53 + /* 48 54 * Returns the port for the given identifier of a host special port. For 49 55 * instance, passing "HOST_PRIV_PORT" would return 1. 50 56 * ··· 58 64 * Returns -1 on error. 59 65 */ 60 66 int mach_task_special_port_for_id(const char *id); 67 + 68 + /* 69 + * Returns the port for the given identifier of a thread special port. 70 + * 71 + * Returns -1 on error. 72 + */ 73 + int mach_thread_special_port_for_id(const char *id); 61 74 62 75 __END_DECLS 63 76
+105
src/kernel/libsyscall/mach/mach_eventlink.c
··· 1 + /* 2 + * Copyright (c) 2019 Apple Computer, Inc. All rights reserved. 3 + * 4 + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 + * 6 + * This file contains Original Code and/or Modifications of Original Code 7 + * as defined in and that are subject to the Apple Public Source License 8 + * Version 2.0 (the 'License'). You may not use this file except in 9 + * compliance with the License. The rights granted to you under the License 10 + * may not be used to create, or enable the creation or redistribution of, 11 + * unlawful or unlicensed copies of an Apple operating system, or to 12 + * circumvent, violate, or enable the circumvention or violation of, any 13 + * terms of an Apple operating system software license agreement. 14 + * 15 + * Please obtain a copy of the License at 16 + * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 + * 18 + * The Original Code and all software distributed under the License are 19 + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 + * Please see the License for the specific language governing rights and 24 + * limitations under the License. 25 + * 26 + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 + */ 28 + 29 + #include <mach/boolean.h> 30 + #include <mach/message.h> 31 + #include <mach/kern_return.h> 32 + #include <mach/mach_traps.h> 33 + #include <mach/mach_types.h> 34 + #include <mach/clock_types.h> 35 + #include <mach/mach_eventlink_types.h> 36 + 37 + /* 38 + * __mach_eventlink* calls are bsd syscalls instead of mach traps because 39 + * they need to return a 64 bit value in register and mach traps currently 40 + * does not allow 64 bit return values. 41 + */ 42 + uint64_t 43 + __mach_eventlink_signal( 44 + mach_port_t eventlink_port, 45 + uint64_t signal_count); 46 + 47 + uint64_t 48 + __mach_eventlink_wait_until( 49 + mach_port_t eventlink_port, 50 + uint64_t wait_signal_count, 51 + uint64_t deadline, 52 + kern_clock_id_t clock_id, 53 + mach_eventlink_signal_wait_option_t option); 54 + 55 + uint64_t 56 + __mach_eventlink_signal_wait_until( 57 + mach_port_t eventlink_port, 58 + uint64_t wait_count, 59 + uint64_t signal_count, 60 + uint64_t deadline, 61 + kern_clock_id_t clock_id, 62 + mach_eventlink_signal_wait_option_t option); 63 + 64 + kern_return_t 65 + mach_eventlink_signal( 66 + mach_port_t eventlink_port, 67 + uint64_t signal_count) 68 + { 69 + uint64_t retval = __mach_eventlink_signal(eventlink_port, signal_count); 70 + 71 + return decode_eventlink_error_from_retval(retval); 72 + } 73 + 74 + kern_return_t 75 + mach_eventlink_wait_until( 76 + mach_port_t eventlink_port, 77 + uint64_t *wait_count_ptr, 78 + mach_eventlink_signal_wait_option_t option, 79 + kern_clock_id_t clock_id, 80 + uint64_t deadline) 81 + { 82 + uint64_t retval; 83 + 84 + retval = __mach_eventlink_wait_until(eventlink_port, *wait_count_ptr, 85 + deadline, clock_id, option); 86 + 87 + *wait_count_ptr = decode_eventlink_count_from_retval(retval); 88 + return decode_eventlink_error_from_retval(retval); 89 + } 90 + 91 + kern_return_t 92 + mach_eventlink_signal_wait_until( 93 + mach_port_t eventlink_port, 94 + uint64_t *wait_count_ptr, 95 + uint64_t signal_count, 96 + mach_eventlink_signal_wait_option_t option, 97 + kern_clock_id_t clock_id, 98 + uint64_t deadline) 99 + { 100 + uint64_t retval; 101 + retval = __mach_eventlink_signal_wait_until(eventlink_port, *wait_count_ptr, 102 + signal_count, deadline, clock_id, option); 103 + *wait_count_ptr = decode_eventlink_count_from_retval(retval); 104 + return decode_eventlink_error_from_retval(retval); 105 + }
+96
src/kernel/libsyscall/mach/mach_eventlink.defs
··· 1 + /* 2 + * Copyright (c) 2019 Apple Computer, Inc. All rights reserved. 3 + * 4 + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 + * 6 + * This file contains Original Code and/or Modifications of Original Code 7 + * as defined in and that are subject to the Apple Public Source License 8 + * Version 2.0 (the 'License'). You may not use this file except in 9 + * compliance with the License. The rights granted to you under the License 10 + * may not be used to create, or enable the creation or redistribution of, 11 + * unlawful or unlicensed copies of an Apple operating system, or to 12 + * circumvent, violate, or enable the circumvention or violation of, any 13 + * terms of an Apple operating system software license agreement. 14 + * 15 + * Please obtain a copy of the License at 16 + * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 + * 18 + * The Original Code and all software distributed under the License are 19 + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 + * Please see the License for the specific language governing rights and 24 + * limitations under the License. 25 + * 26 + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 + */ 28 + 29 + import <mach/mach_eventlink_types.h>; 30 + 31 + /* 32 + * Libsyscall mach_eventlink.defs should include mach/mach_eventlink.defs exported by 33 + * kernel, putting a copy of the file instead to avoid the build failure due to 34 + * ordering issues. Once the mach/mach_eventlink.defs is in build, replace the content 35 + * on defs file with #inlude <mach/mach_eventlink.defs>. 36 + */ 37 + subsystem 38 + #if KERNEL_SERVER 39 + KernelServer 40 + #endif /* KERNEL_SERVER */ 41 + mach_eventlink 716200; 42 + 43 + #include <mach/std_types.defs> 44 + #include <mach/mach_types.defs> 45 + #include <mach/clock_types.defs> 46 + 47 + #ifndef _MACH_MACH_EVENTLINK_TYPE_DEFS 48 + #define _MACH_MACH_EVENTLINK_TYPE_DEFS 49 + 50 + type eventlink_t = mach_port_t 51 + ctype: mach_port_t 52 + #if KERNEL_SERVER 53 + intran: ipc_eventlink_t convert_port_to_eventlink(mach_port_t) 54 + destructor: ipc_eventlink_deallocate(ipc_eventlink_t) 55 + #endif /* KERNEL_SERVER */ 56 + ; 57 + 58 + type eventlink_consume_ref_t = mach_port_move_send_t 59 + ctype: mach_port_t 60 + #if KERNEL_SERVER 61 + intran: ipc_eventlink_t convert_port_to_eventlink(mach_port_t) 62 + destructor: ipc_eventlink_deallocate(ipc_eventlink_t) 63 + #endif /* KERNEL_SERVER */ 64 + ; 65 + 66 + type eventlink_port_pair_t = array[2] of mach_port_t; 67 + type mach_eventlink_create_option_t = uint32_t; 68 + type mach_eventlink_associate_option_t = uint32_t; 69 + type mach_eventlink_disassociate_option_t = uint32_t; 70 + type mach_eventlink_signal_wait_option_t = uint32_t; 71 + 72 + #endif /* _MACH_MACH_EVENTLINK_TYPE_DEFS */ 73 + 74 + routine mach_eventlink_create( 75 + task : task_t; 76 + option : mach_eventlink_create_option_t; 77 + out eventlink_pair : eventlink_port_pair_t); 78 + 79 + routine mach_eventlink_destroy( 80 + eventlink : eventlink_consume_ref_t); 81 + 82 + 83 + routine mach_eventlink_associate( 84 + eventlink : eventlink_t; 85 + thread : thread_t; 86 + copyin_addr_wait : mach_vm_address_t; 87 + copyin_mask_wait : uint64_t; 88 + copyin_addr_signal : mach_vm_address_t; 89 + copyin_mask_signal : uint64_t; 90 + option : mach_eventlink_associate_option_t); 91 + 92 + routine mach_eventlink_disassociate( 93 + eventlink : eventlink_t; 94 + option : mach_eventlink_disassociate_option_t); 95 + 96 + /* vim: set ft=c : */
+20 -65
src/kernel/libsyscall/mach/mach_init.c
··· 62 62 #include <stdbool.h> 63 63 #include "externs.h" 64 64 65 - #ifdef DARLING 66 - #include <darlingserver/rpc.h> 67 - #include "../../emulation/linux/duct_errno.h" 68 - #endif 69 - 70 65 mach_port_t bootstrap_port = MACH_PORT_NULL; 71 66 mach_port_t mach_task_self_ = MACH_PORT_NULL; 72 67 #ifdef __i386__ ··· 82 77 vm_size_t vm_page_mask = 0; 83 78 int vm_page_shift = 0; 84 79 85 - #ifdef DARLING 86 - int mach_init(const char** applep); 87 - #else 88 80 int mach_init(void); 89 - #endif 90 81 int _mach_fork_child(void); 91 - #ifdef DARLING 92 - int _mach_fork_parent(void); 93 - #endif 94 82 95 - #ifdef DARLING 96 - static void mach_init_doit(const char** applep); 97 - #else 98 83 static void mach_init_doit(void); 99 - #endif 100 84 101 85 extern void _pthread_set_self(void *); 102 86 extern void _init_cpu_capabilities(void); ··· 113 97 * called by libSystem_initializer() in dynamic executables 114 98 */ 115 99 int 116 - #ifdef DARLING 117 - mach_init(const char** applep) 118 - #else 119 100 mach_init(void) 120 - #endif 121 101 { 122 102 static bool mach_init_inited = false; 123 103 if (!mach_init_inited) { 124 - #ifdef DARLING 125 - mach_init_doit(applep); 126 - #else 127 104 mach_init_doit(); 128 - #endif 129 105 mach_init_inited = true; 130 106 } 131 107 return 0; ··· 135 111 int 136 112 _mach_fork_child(void) 137 113 { 138 - #ifdef DARLING 139 - mach_init_doit(NULL); 140 - #else 141 114 mach_init_doit(); 142 - #endif 143 115 return 0; 144 116 } 145 117 146 - #ifdef DARLING 147 - int _mach_fork_parent(void) { 148 - int result; 149 - 150 - retry: 151 - result = dserver_rpc_fork_wait_for_child(); 152 - if (result < 0) { 153 - if (result == -LINUX_EINTR) { 154 - goto retry; 155 - } 156 - __builtin_unreachable(); 157 - } 158 - return 0; 159 - }; 160 - #endif 161 - 162 118 #if defined(__arm__) || defined(__arm64__) 163 119 #if !defined(_COMM_PAGE_USER_PAGE_SHIFT_64) && defined(_COMM_PAGE_UNUSED0) 164 120 #define _COMM_PAGE_USER_PAGE_SHIFT_32 (_COMM_PAGE_UNUSED0) ··· 166 122 #endif 167 123 #endif 168 124 169 - #ifdef DARLING 170 - extern void mach_driver_init(const char** applep); 171 - extern void mach_driver_init_pthread(void); 125 + #if defined(__x86_64__) || defined(__i386__) 126 + #define COMM_PAGE_KERNEL_PAGE_SHIFT_MIN_VERSION 14 127 + #else 128 + #define COMM_PAGE_KERNEL_PAGE_SHIFT_MIN_VERSION 3 172 129 #endif 173 130 174 131 void 175 - #ifdef DARLING 176 - mach_init_doit(const char** applep) 177 - #else 178 132 mach_init_doit(void) 179 - #endif 180 133 { 181 - #ifdef DARLING 182 - mach_driver_init(applep); 183 - #endif 184 - 185 134 // Initialize cached mach ports defined in mach_init.h 186 135 mach_task_self_ = task_self_trap(); 187 136 _task_reply_port = mach_reply_port(); 188 137 189 138 if (vm_kernel_page_shift == 0) { 190 - #ifdef _COMM_PAGE_KERNEL_PAGE_SHIFT 191 - vm_kernel_page_shift = *(uint8_t*) _COMM_PAGE_KERNEL_PAGE_SHIFT; 139 + #if defined(__x86_64__) || defined(__i386__) 140 + if (COMM_PAGE_READ(uint16_t, VERSION) >= COMM_PAGE_KERNEL_PAGE_SHIFT_MIN_VERSION) { 141 + vm_kernel_page_shift = COMM_PAGE_READ(uint8_t, KERNEL_PAGE_SHIFT); 142 + } else { 143 + vm_kernel_page_shift = I386_PGSHIFT; 144 + } 145 + #else 146 + vm_kernel_page_shift = COMM_PAGE_READ(uint8_t, KERNEL_PAGE_SHIFT); 147 + #endif 192 148 vm_kernel_page_size = 1 << vm_kernel_page_shift; 193 149 vm_kernel_page_mask = vm_kernel_page_size - 1; 194 - #else 195 - vm_kernel_page_size = PAGE_SIZE; 196 - vm_kernel_page_mask = PAGE_MASK; 197 - vm_kernel_page_shift = PAGE_SHIFT; 198 - #endif /* _COMM_PAGE_KERNEL_PAGE_SHIFT */ 199 150 } 200 151 201 152 if (vm_page_shift == 0) { 202 153 #if defined(__arm64__) 203 - vm_page_shift = *(uint8_t*) _COMM_PAGE_USER_PAGE_SHIFT_64; 154 + vm_page_shift = COMM_PAGE_READ(uint8_t, USER_PAGE_SHIFT_64); 204 155 #elif defined(__arm__) 205 - vm_page_shift = *(uint8_t*) _COMM_PAGE_USER_PAGE_SHIFT_32; 156 + vm_page_shift = COMM_PAGE_READ(uint8_t, USER_PAGE_SHIFT_32); 206 157 #else 207 - vm_page_shift = vm_kernel_page_shift; 158 + if (COMM_PAGE_READ(uint16_t, VERSION) >= COMM_PAGE_KERNEL_PAGE_SHIFT_MIN_VERSION) { 159 + vm_page_shift = COMM_PAGE_READ(uint8_t, USER_PAGE_SHIFT_64); 160 + } else { 161 + vm_page_shift = vm_kernel_page_shift; 162 + } 208 163 #endif 209 164 vm_page_size = 1 << vm_page_shift; 210 165 vm_page_mask = vm_page_size - 1;
+35
src/kernel/libsyscall/mach/mach_msg.c
··· 769 769 { 770 770 return mach_port_deallocate(mach_task_self(), voucher); 771 771 } 772 + 773 + #undef mach_msg_priority_is_pthread_priority 774 + int 775 + mach_msg_priority_is_pthread_priority(mach_msg_priority_t pri) 776 + { 777 + return mach_msg_priority_is_pthread_priority_inline(pri); 778 + } 779 + 780 + #undef mach_msg_priority_encode 781 + mach_msg_priority_t 782 + mach_msg_priority_encode(mach_msg_qos_t override_qos, mach_msg_qos_t qos, int relpri) 783 + { 784 + return mach_msg_priority_encode_inline(override_qos, qos, relpri); 785 + } 786 + 787 + #undef mach_msg_priority_overide_qos 788 + mach_msg_qos_t 789 + mach_msg_priority_overide_qos(mach_msg_priority_t pri) 790 + { 791 + return mach_msg_priority_overide_qos_inline(pri); 792 + } 793 + 794 + #undef mach_msg_priority_qos 795 + mach_msg_qos_t 796 + mach_msg_priority_qos(mach_msg_priority_t pri) 797 + { 798 + return mach_msg_priority_qos_inline(pri); 799 + } 800 + 801 + #undef mach_msg_priority_relpri 802 + int 803 + mach_msg_priority_relpri(mach_msg_priority_t pri) 804 + { 805 + return mach_msg_priority_relpri_inline(pri); 806 + }
+17 -6
src/kernel/libsyscall/mach/mach_port.c
··· 117 117 { 118 118 kern_return_t rv; 119 119 120 - rv = _kernelrpc_mach_port_destroy_trap(task, name); 121 - 122 - if (rv == MACH_SEND_INVALID_DEST) { 123 - rv = _kernelrpc_mach_port_destroy(task, name); 124 - } 120 + rv = _kernelrpc_mach_port_destroy(task, name); 125 121 126 122 return rv; 127 123 } ··· 443 439 } 444 440 445 441 static inline mach_port_t 446 - _tsd_get_special_reply_port() 442 + _tsd_get_special_reply_port(void) 447 443 { 448 444 return (mach_port_t)(uintptr_t)_os_tsd_get_direct(__TSD_MACH_SPECIAL_REPLY); 449 445 } ··· 634 630 kern_return_t rv; 635 631 636 632 rv = _kernelrpc_mach_port_kobject(task, name, object_type, object_addr); 633 + 634 + return rv; 635 + } 636 + 637 + kern_return_t 638 + mach_port_kobject_description( 639 + ipc_space_t task, 640 + mach_port_name_t name, 641 + natural_t *object_type, 642 + mach_vm_address_t *object_addr, 643 + kobject_description_t desc) 644 + { 645 + kern_return_t rv; 646 + 647 + rv = _kernelrpc_mach_port_kobject_description(task, name, object_type, object_addr, desc); 637 648 638 649 return rv; 639 650 }
+1 -6
src/kernel/libsyscall/mach/mach_right.c
··· 29 29 #include <mach/mach_traps.h> 30 30 #include <mach/mach_port.h> 31 31 #include <mach/mach_right.h> 32 - #ifdef DARLING 33 - #define __OS_EXPOSE_INTERNALS_INDIRECT__ 34 - #include <os/internal/crashlog.h> 35 - #endif 32 + 36 33 37 34 #pragma mark Utilities 38 35 #define _mach_assert(__op, __kr) \ ··· 82 79 83 80 if (s) { 84 81 if (r.mrr_name != s->mrs_name) { 85 - _os_set_crash_log_cause_and_message(s->mrs_name, 86 - "api misuse: bad send right"); 87 82 __builtin_trap(); 88 83 } 89 84
+64 -4
src/kernel/libsyscall/mach/mach_vm.c
··· 58 58 rv = _kernelrpc_mach_vm_allocate(target, address, size, flags); 59 59 } 60 60 61 - if (__syscall_logger && rv == KERN_SUCCESS && !(flags & VM_MAKE_TAG(VM_MEMORY_STACK))) { 62 - int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; 61 + int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; 62 + if (__syscall_logger && rv == KERN_SUCCESS && (userTagFlags != VM_MAKE_TAG(VM_MEMORY_STACK))) { 63 63 __syscall_logger(stack_logging_type_vm_allocate | userTagFlags, (uintptr_t)target, (uintptr_t)size, 0, (uintptr_t)*address, 0); 64 64 } 65 65 ··· 184 184 offset, copy, cur_protection, max_protection, inheritance); 185 185 } 186 186 187 - if (__syscall_logger && rv == KERN_SUCCESS && !(flags & VM_MAKE_TAG(VM_MEMORY_STACK))) { 187 + int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; 188 + if (__syscall_logger && rv == KERN_SUCCESS && (userTagFlags != VM_MAKE_TAG(VM_MEMORY_STACK))) { 188 189 int eventTypeFlags = stack_logging_type_vm_allocate | stack_logging_type_mapped_file_or_shared_mem; 189 - int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; 190 190 __syscall_logger(eventTypeFlags | userTagFlags, (uintptr_t)target, (uintptr_t)size, 0, (uintptr_t)*address, 0); 191 191 } 192 192 ··· 223 223 } 224 224 225 225 kern_return_t 226 + mach_vm_remap_new( 227 + mach_port_name_t target, 228 + mach_vm_address_t *address, 229 + mach_vm_size_t size, 230 + mach_vm_offset_t mask, 231 + int flags, 232 + mach_port_name_t src_task, 233 + mach_vm_address_t src_address, 234 + boolean_t copy, 235 + vm_prot_t *cur_protection, 236 + vm_prot_t *max_protection, 237 + vm_inherit_t inheritance) 238 + { 239 + kern_return_t rv; 240 + 241 + /* {max,cur}_protection is inout */ 242 + rv = _kernelrpc_mach_vm_remap_new(target, address, size, mask, flags, 243 + src_task, src_address, copy, cur_protection, max_protection, 244 + inheritance); 245 + 246 + if (__syscall_logger && rv == KERN_SUCCESS) { 247 + int eventTypeFlags = stack_logging_type_vm_allocate | stack_logging_type_mapped_file_or_shared_mem; 248 + int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; 249 + __syscall_logger(eventTypeFlags | userTagFlags, (uintptr_t)target, (uintptr_t)size, 0, (uintptr_t)*address, 0); 250 + } 251 + 252 + return rv; 253 + } 254 + 255 + kern_return_t 226 256 mach_vm_read( 227 257 mach_port_name_t target, 228 258 mach_vm_address_t address, ··· 289 319 kern_return_t rv; 290 320 291 321 rv = _kernelrpc_vm_remap(target, address, size, mask, flags, 322 + src_task, src_address, copy, cur_protection, max_protection, 323 + inheritance); 324 + 325 + if (__syscall_logger) { 326 + int eventTypeFlags = stack_logging_type_vm_allocate | stack_logging_type_mapped_file_or_shared_mem; 327 + int userTagFlags = flags & VM_FLAGS_ALIAS_MASK; 328 + __syscall_logger(eventTypeFlags | userTagFlags, (uintptr_t)target, (uintptr_t)size, 0, (uintptr_t)*address, 0); 329 + } 330 + 331 + return rv; 332 + } 333 + 334 + kern_return_t 335 + vm_remap_new( 336 + mach_port_name_t target, 337 + vm_address_t *address, 338 + vm_size_t size, 339 + vm_offset_t mask, 340 + int flags, 341 + mach_port_name_t src_task, 342 + vm_address_t src_address, 343 + boolean_t copy, 344 + vm_prot_t *cur_protection, 345 + vm_prot_t *max_protection, 346 + vm_inherit_t inheritance) 347 + { 348 + kern_return_t rv; 349 + 350 + /* {max,cur}_protection is inout */ 351 + rv = _kernelrpc_vm_remap_new(target, address, size, mask, flags, 292 352 src_task, src_address, copy, cur_protection, max_protection, 293 353 inheritance); 294 354
+40 -1
src/kernel/libsyscall/mach/port_descriptions.c
··· 29 29 #include <errno.h> 30 30 #include <mach/host_special_ports.h> 31 31 #include <mach/task_special_ports.h> 32 + #include <mach/thread_special_ports.h> 32 33 #include <mach/port_descriptions.h> 33 34 #include <stdlib.h> 34 35 #include <strings.h> ··· 71 72 [HOST_SYSPOLICYD_PORT] = "syspolicyd", 72 73 [HOST_FILECOORDINATIOND_PORT] = "filecoordinationd", 73 74 [HOST_FAIRPLAYD_PORT] = "fairplayd", 75 + [HOST_IOCOMPRESSIONSTATS_PORT] = "I/O compression stats", 74 76 }; 75 - _Static_assert(HOST_FAIRPLAYD_PORT == HOST_MAX_SPECIAL_PORT, 77 + _Static_assert(HOST_IOCOMPRESSIONSTATS_PORT == HOST_MAX_SPECIAL_PORT, 76 78 "all host special ports must have descriptions"); 77 79 78 80 return hsp_descs[port_index]; ··· 92 94 [TASK_HOST_PORT] = "host", 93 95 [TASK_NAME_PORT] = "name", 94 96 [TASK_BOOTSTRAP_PORT] = "bootstrap", 97 + [TASK_INSPECT_PORT] = "inspect", 98 + [TASK_READ_PORT] = "read", 95 99 [TASK_SEATBELT_PORT] = "seatbelt", 96 100 [TASK_ACCESS_PORT] = "access", 97 101 [TASK_DEBUG_CONTROL_PORT] = "debug control", ··· 103 107 return tsp_descs[port_index]; 104 108 } 105 109 110 + const char * 111 + mach_thread_special_port_description(int port) 112 + { 113 + int port_index = (int)port; 114 + 115 + if (port_index < 0 || port_index > THREAD_MAX_SPECIAL_PORT) { 116 + return NULL; 117 + } 118 + 119 + static const char *tsp_descs[] = { 120 + [THREAD_KERNEL_PORT] = "kernel", 121 + [THREAD_INSPECT_PORT] = "inspect", 122 + [THREAD_READ_PORT] = "read", 123 + }; 124 + _Static_assert(THREAD_READ_PORT == THREAD_MAX_SPECIAL_PORT, 125 + "all thread special ports must have descriptions"); 126 + 127 + return tsp_descs[port_index]; 128 + } 129 + 106 130 static int 107 131 port_for_id_internal(const char *id, const char **ids, int nids) 108 132 { ··· 166 190 SP_ENTRY(TASK_HOST_PORT), 167 191 SP_ENTRY(TASK_NAME_PORT), 168 192 SP_ENTRY(TASK_BOOTSTRAP_PORT), 193 + SP_ENTRY(TASK_INSPECT_PORT), 194 + SP_ENTRY(TASK_READ_PORT), 169 195 SP_ENTRY(TASK_SEATBELT_PORT), 170 196 SP_ENTRY(TASK_ACCESS_PORT), 171 197 SP_ENTRY(TASK_DEBUG_CONTROL_PORT), 172 198 SP_ENTRY(TASK_RESOURCE_NOTIFY_PORT), 199 + }; 200 + 201 + return port_for_id_internal(id, tsp_ids, 202 + sizeof(tsp_ids) / sizeof(tsp_ids[0])); 203 + } 204 + 205 + int 206 + mach_thread_special_port_for_id(const char *id) 207 + { 208 + static const char *tsp_ids[] = { 209 + SP_ENTRY(THREAD_KERNEL_PORT), 210 + SP_ENTRY(THREAD_INSPECT_PORT), 211 + SP_ENTRY(THREAD_READ_PORT), 173 212 #undef SP_ENTRY 174 213 }; 175 214
+4 -1
src/kernel/libsyscall/mach/string.h
··· 42 42 int _mach_snprintf(char *buffer, int length, const char *fmt, ...) __printflike(3, 4); 43 43 int _mach_vsnprintf(char *buffer, int length, const char *fmt, va_list ap) __printflike(3, 0); 44 44 45 - // Actually in memcpy.c but MIG likes to include string.h 45 + // These declarations are just for MIG, other users should include string/strings.h 46 + // These symbols are defined in _libc_funcptr.c 46 47 47 48 void *memcpy(void *dst0, const void *src0, size_t length); 49 + void *memset(void *dst0, int c0, size_t length); 50 + void bzero(void *dst0, size_t length); 48 51 49 52 #endif /* _STRING_H_ */
-4
src/kernel/libsyscall/nolegacy.h
··· 1 - #ifndef __i386__ 2 - # define NO_SYSCALL_LEGACY 3 - #endif 4 -
-28
src/kernel/libsyscall/os/tsd.h
··· 52 52 #include <arm/arch.h> 53 53 #endif 54 54 55 - #ifdef DARLING 56 - #include <darling/emulation/linux-syscalls.h> 57 - #endif 58 - 59 55 extern void _thread_set_tsd_base(void *tsd_base); 60 56 61 57 __attribute__((always_inline)) 62 58 static __inline__ unsigned int 63 59 _os_cpu_number(void) 64 60 { 65 - #ifdef DARLING 66 - extern int __linux_syscall(int nr, ...); 67 - 68 - unsigned int cpu_num = 0; 69 - int status = __linux_syscall(__NR_getcpu, &cpu_num, 0, 0, 0, 0, 0); 70 - // should we even check? i don't think it's possible for it to fail with these arguments 71 - if (status < 0) { 72 - return 0; // i guess? 73 - } 74 - 75 - return cpu_num; 76 - #else // !DARLING 77 61 #if defined(__arm__) 78 62 uintptr_t p; 79 63 __asm__("mrc p15, 0, %[p], c13, c0, 3" : [p] "=&r" (p)); ··· 89 73 #else 90 74 #error _os_cpu_number not implemented on this architecture 91 75 #endif 92 - #endif // !DARLING 93 76 } 94 77 95 78 #if defined(__i386__) || defined(__x86_64__) ··· 97 80 #if defined(__has_attribute) 98 81 #if __has_attribute(address_space) 99 82 #define OS_GS_RELATIVE __attribute__((address_space(256))) 100 - 101 - #if defined(DARLING) && defined(__i386__) && !defined(__x86_64__) 102 - #undef OS_GS_RELATIVE 103 - #define OS_GS_RELATIVE __attribute__((address_space(257))) 104 - #endif 105 - 106 83 #endif 107 84 #endif 108 85 ··· 199 176 200 177 #if defined(__i386__) || defined(__x86_64__) 201 178 202 - #if defined(DARLING) && defined(__i386__) && !defined(__x86_64__) 203 - #define _OS_PTR_MUNGE(_reg) \ 204 - xor %fs:_OS_TSD_OFFSET(__TSD_PTR_MUNGE), _reg 205 - #else 206 179 #define _OS_PTR_MUNGE(_reg) \ 207 180 xor %gs:_OS_TSD_OFFSET(__TSD_PTR_MUNGE), _reg 208 - #endif 209 181 210 182 #define _OS_PTR_UNMUNGE(_reg) \ 211 183 _OS_PTR_MUNGE(_reg)
+2 -3
src/kernel/libsyscall/wrappers/__commpage_gettimeofday.c
··· 55 55 volatile uint64_t *gtod_Ticks_scale_p; 56 56 volatile uint64_t *gtod_Ticks_per_sec_p; 57 57 58 - new_commpage_timeofday_data_t *commpage_timeofday_datap; 59 - 60 - commpage_timeofday_datap = (new_commpage_timeofday_data_t *)_COMM_PAGE_NEWTIMEOFDAY_DATA; 58 + COMM_PAGE_SLOT_TYPE(new_commpage_timeofday_data_t) commpage_timeofday_datap = 59 + COMM_PAGE_SLOT(new_commpage_timeofday_data_t, NEWTIMEOFDAY_DATA); 61 60 62 61 gtod_TimeStamp_tick_p = &commpage_timeofday_datap->TimeStamp_tick; 63 62 gtod_TimeStamp_sec_p = &commpage_timeofday_datap->TimeStamp_sec;
+2 -2
src/kernel/libsyscall/wrappers/__get_cpu_capabilities.S
··· 67 67 .globl __get_cpu_capabilities 68 68 __get_cpu_capabilities: 69 69 ldr x0, Lcommpage_cc_addr 70 - ldr w0, [x0] 70 + ldr x0, [x0] 71 71 ret 72 72 Lcommpage_cc_addr: 73 - .quad _COMM_PAGE_CPU_CAPABILITIES 73 + .quad _COMM_PAGE_CPU_CAPABILITIES64 74 74 75 75 #else 76 76 #error Unsupported architecture
+7 -5
src/kernel/libsyscall/wrappers/_libc_funcptr.c
··· 113 113 .strcpy = _libkernel_strcpy, 114 114 .strlcpy = _libkernel_strlcpy, 115 115 .strlen = _libkernel_strlen, 116 - #ifdef DARLING 117 - .strncmp = _darling_libkernel_strncmp, 118 - #endif 119 116 }; 120 117 static _libkernel_string_functions_t _libkernel_string_functions = 121 118 &_libkernel_generic_string_functions; ··· 130 127 __attribute__((visibility("hidden"))) 131 128 void 132 129 bzero(void *s, size_t n) 130 + { 131 + return _libkernel_string_functions->bzero(s, n); 132 + } 133 + 134 + __attribute__((visibility("hidden"))) 135 + void 136 + __bzero(void *s, size_t n) 133 137 { 134 138 return _libkernel_string_functions->bzero(s, n); 135 139 } ··· 269 273 return KERN_SUCCESS; 270 274 } 271 275 272 - #ifndef DARLING 273 276 boolean_t 274 277 voucher_mach_msg_set(mach_msg_header_t *msg) 275 278 { ··· 303 306 return _libkernel_voucher_functions->voucher_mach_msg_revert(state); 304 307 } 305 308 } 306 - #endif
+79 -13
src/kernel/libsyscall/wrappers/_libkernel_init.c
··· 30 30 #include <stdbool.h> 31 31 #include <strings.h> 32 32 #include <unistd.h> 33 + #include <mach/vm_page_size.h> 33 34 #include "_libkernel_init.h" 34 35 35 - #ifdef DARLING 36 - extern int mach_init(const char** applep); 37 - extern void sigexc_setup(void); 38 - #else 39 36 extern int mach_init(void); 40 - #endif 41 37 42 38 #if TARGET_OS_OSX 39 + 40 + #if !defined(__i386__) 41 + 42 + #include "system-version-compat-support.h" 43 + #include <sys/sysctl.h> 44 + 45 + extern bool _system_version_compat_check_path_suffix(const char *orig_path); 46 + extern int _system_version_compat_open_shim(int opened_fd, int openat_fd, const char *orig_path, int oflag, mode_t mode, 47 + int (*close_syscall)(int), int (*open_syscall)(const char *, int, mode_t), 48 + int (*openat_syscall)(int, const char *, int, mode_t), 49 + int (*fcntl_syscall)(int, int, long)); 50 + 51 + extern bool (*system_version_compat_check_path_suffix)(const char *orig_path); 52 + extern int (*system_version_compat_open_shim)(int opened_fd, int openat_fd, const char *orig_path, int oflag, mode_t mode, 53 + int (*close_syscall)(int), int (*open_syscall)(const char *, int, mode_t), 54 + int (*openat_syscall)(int, const char *, int, mode_t), 55 + int (*fcntl_syscall)(int, int, long)); 56 + 57 + extern system_version_compat_mode_t system_version_compat_mode; 58 + 59 + int __sysctlbyname(const char *name, size_t namelen, void *oldp, size_t *oldlenp, void *newp, size_t newlen); 60 + #endif /* !defined(__i386__) */ 61 + 43 62 __attribute__((visibility("default"))) 44 63 extern bool _os_xbs_chrooted; 45 64 bool _os_xbs_chrooted; 46 - #endif 65 + #endif /* TARGET_OS_OSX */ 47 66 48 67 /* dlsym() funcptr is for legacy support in exc_catcher */ 49 68 void* (*_dlsym)(void*, const char*) __attribute__((visibility("hidden"))); 50 69 51 70 __attribute__((visibility("hidden"))) 52 71 _libkernel_functions_t _libkernel_functions; 72 + 53 73 54 74 void 55 75 __libkernel_init(_libkernel_functions_t fns, 56 76 const char *envp[] __attribute__((unused)), 57 - const char *apple[], 77 + const char *apple[] __attribute__((unused)), 58 78 const struct ProgramVars *vars __attribute__((unused))) 59 79 { 60 80 _libkernel_functions = fns; 61 81 if (fns->dlsym) { 62 82 _dlsym = fns->dlsym; 63 83 } 84 + mach_init(); 85 + #if TARGET_OS_OSX 86 + for (size_t i = 0; envp[i]; i++) { 64 87 65 - #ifdef DARLING 66 - mach_init(apple); 67 - sigexc_setup(); 68 - #else 69 - mach_init(); 70 - #endif 88 + #if defined(__i386__) || defined(__x86_64__) 89 + const char *VM_KERNEL_PAGE_SHIFT_ENV = "VM_KERNEL_PAGE_SIZE_4K=1"; 90 + if (vm_kernel_page_shift != 12 && strcmp(VM_KERNEL_PAGE_SHIFT_ENV, envp[i]) == 0) { 91 + vm_kernel_page_shift = 12; 92 + vm_kernel_page_size = 1 << vm_kernel_page_shift; 93 + vm_kernel_page_mask = vm_kernel_page_size - 1; 94 + } 95 + #endif /* defined(__i386__) || defined(__x86_64__) */ 96 + } 97 + #endif /* TARGET_OS_OSX */ 98 + } 99 + 100 + void 101 + __libkernel_init_late(_libkernel_late_init_config_t config) 102 + { 103 + if (config->version >= 1) { 104 + #if TARGET_OS_OSX && !defined(__i386__) 105 + if (config->enable_system_version_compat) { 106 + /* enable the version compatibility shim for this process (macOS only) */ 107 + 108 + /* first hook up the shims we reference from open{at}() */ 109 + system_version_compat_check_path_suffix = _system_version_compat_check_path_suffix; 110 + system_version_compat_open_shim = _system_version_compat_open_shim; 111 + 112 + system_version_compat_mode = SYSTEM_VERSION_COMPAT_MODE_MACOSX; 113 + 114 + /* 115 + * tell the kernel the shim is enabled for this process so it can shim any 116 + * necessary sysctls 117 + */ 118 + int enable = 1; 119 + __sysctlbyname("kern.system_version_compat", strlen("kern.system_version_compat"), 120 + NULL, NULL, &enable, sizeof(enable)); 121 + } else if ((config->version >= 2) && config->enable_ios_version_compat) { 122 + /* enable the iOS ProductVersion compatibility shim for this process */ 123 + 124 + /* first hook up the shims we reference from open{at}() */ 125 + system_version_compat_check_path_suffix = _system_version_compat_check_path_suffix; 126 + system_version_compat_open_shim = _system_version_compat_open_shim; 127 + 128 + system_version_compat_mode = SYSTEM_VERSION_COMPAT_MODE_IOS; 129 + 130 + /* 131 + * We don't currently shim any sysctls for iOS apps running on macOS so we 132 + * don't need to inform the kernel that this app has the SystemVersion shim enabled. 133 + */ 134 + } 135 + #endif /* TARGET_OS_OSX && !defined(__i386__) */ 136 + } 71 137 }
+9 -1
src/kernel/libsyscall/wrappers/_libkernel_init.h
··· 29 29 #ifndef __LIBKERNEL_INIT_H 30 30 #define __LIBKERNEL_INIT_H 31 31 32 + #include <stdbool.h> 32 33 #include <sys/types.h> 33 34 #include <mach/mach.h> 34 35 #include <mach/message.h> ··· 68 69 int (*pthread_current_stack_contains_np)(const void *, size_t); 69 70 70 71 /* Subsequent versions must only add pointers! */ 71 - void (*dyld_func_lookup)(const char*,void**); 72 72 } *_libkernel_functions_t; 73 73 74 74 typedef const struct _libkernel_string_functions { ··· 104 104 /* Subsequent versions must only add pointers! */ 105 105 } *_libkernel_voucher_functions_t; 106 106 107 + typedef struct _libkernel_late_init_config { 108 + unsigned long version; 109 + bool enable_system_version_compat; 110 + bool enable_ios_version_compat; 111 + } *_libkernel_late_init_config_t; 112 + 107 113 struct ProgramVars; /* forward reference */ 108 114 109 115 void __libkernel_init(_libkernel_functions_t fns, const char *envp[], ··· 112 118 kern_return_t __libkernel_platform_init(_libkernel_string_functions_t fns); 113 119 114 120 kern_return_t __libkernel_voucher_init(_libkernel_voucher_functions_t fns); 121 + 122 + void __libkernel_init_late(_libkernel_late_init_config_t config); 115 123 116 124 #endif // __LIBKERNEL_INIT_H
+3
src/kernel/libsyscall/wrappers/cancelable/fcntl-base.c
··· 64 64 case F_ADDFILESIGS: 65 65 case F_ADDFILESIGS_FOR_DYLD_SIM: 66 66 case F_ADDFILESIGS_RETURN: 67 + case F_ADDFILESIGS_INFO: 68 + case F_ADDFILESUPPL: 67 69 case F_FINDSIGS: 68 70 case F_TRANSCODEKEY: 69 71 case F_TRIM_ACTIVE_FILE: 70 72 case F_SPECULATIVE_READ: 71 73 case F_CHECK_LV: 74 + case F_GETSIGSINFO: 72 75 arg = va_arg(ap, void *); 73 76 break; 74 77 default:
+26
src/kernel/libsyscall/wrappers/cancelable/open.c
··· 1 + /* 2 + * Copyright (c) 2020 Apple Inc. All rights reserved. 3 + * 4 + * @APPLE_LICENSE_HEADER_START@ 5 + * 6 + * This file contains Original Code and/or Modifications of Original Code 7 + * as defined in and that are subject to the Apple Public Source License 8 + * Version 2.0 (the 'License'). You may not use this file except in 9 + * compliance with the License. Please obtain a copy of the License at 10 + * http://www.opensource.apple.com/apsl/ and read it before using this 11 + * file. 12 + * 13 + * The Original Code and all software distributed under the License are 14 + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 + * Please see the License for the specific language governing rights and 19 + * limitations under the License. 20 + * 21 + * @APPLE_LICENSE_HEADER_END@ 22 + */ 23 + 24 + #define VARIANT_CANCELABLE 25 + 26 + #include "../open-base.c"
+1 -6
src/kernel/libsyscall/wrappers/getiopolicy_np.c
··· 33 33 int policy, error; 34 34 struct _iopol_param_t iop_param; 35 35 36 - if ((iotype != IOPOL_TYPE_DISK && iotype != IOPOL_TYPE_VFS_ATIME_UPDATES && iotype != IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES) || 37 - (scope != IOPOL_SCOPE_PROCESS && scope != IOPOL_SCOPE_THREAD)) { 38 - errno = EINVAL; 39 - policy = -1; 40 - goto exit; 41 - } 36 + /* Do not sanity check iotype and scope, leave it to kernel. */ 42 37 43 38 iop_param.iop_scope = scope; 44 39 iop_param.iop_iotype = iotype;
+1 -1
src/kernel/libsyscall/wrappers/init_cpu_capabilities.c
··· 40 40 41 41 #elif defined(__arm__) || defined(__arm64__) 42 42 43 - extern int _get_cpu_capabilities(void); 43 + extern uint64_t _get_cpu_capabilities(void); 44 44 45 45 int _cpu_capabilities = 0; 46 46 int _cpu_has_altivec = 0; // DEPRECATED: use _cpu_capabilities instead
+2 -2
src/kernel/libsyscall/wrappers/kdebug_trace.c
··· 84 84 bool 85 85 kdebug_is_enabled(uint32_t debugid) 86 86 { 87 - uint32_t state = *((volatile uint32_t *)(uintptr_t)(_COMM_PAGE_KDEBUG_ENABLE)); 87 + uint32_t state = COMM_PAGE_READ(uint32_t, KDEBUG_ENABLE); 88 88 89 89 if (state == 0) { 90 90 return FALSE; ··· 119 119 bool 120 120 kdebug_using_continuous_time(void) 121 121 { 122 - uint32_t state = *((volatile uint32_t *)(uintptr_t)(_COMM_PAGE_KDEBUG_ENABLE)); 122 + uint32_t state = COMM_PAGE_READ(uint32_t, KDEBUG_ENABLE); 123 123 return state & KDEBUG_ENABLE_CONT_TIME; 124 124 } 125 125
-54
src/kernel/libsyscall/wrappers/legacy/open.c
··· 1 - /* 2 - * Copyright (c) 2005, 2009 Apple Inc. All rights reserved. 3 - * 4 - * @APPLE_LICENSE_HEADER_START@ 5 - * 6 - * This file contains Original Code and/or Modifications of Original Code 7 - * as defined in and that are subject to the Apple Public Source License 8 - * Version 2.0 (the 'License'). You may not use this file except in 9 - * compliance with the License. Please obtain a copy of the License at 10 - * http://www.opensource.apple.com/apsl/ and read it before using this 11 - * file. 12 - * 13 - * The Original Code and all software distributed under the License are 14 - * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 - * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 - * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 - * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 - * Please see the License for the specific language governing rights and 19 - * limitations under the License. 20 - * 21 - * @APPLE_LICENSE_HEADER_END@ 22 - */ 23 - 24 - #ifndef NO_SYSCALL_LEGACY 25 - 26 - #define _NONSTD_SOURCE 27 - #include <sys/cdefs.h> 28 - 29 - #include <sys/types.h> 30 - #include <sys/fcntl.h> 31 - #include <stdarg.h> 32 - 33 - int __open_nocancel(const char *path, int flags, mode_t mode); 34 - 35 - /* 36 - * open stub: The legacy interface never automatically associated a controlling 37 - * tty, so we always pass O_NOCTTY. 38 - */ 39 - int 40 - open(const char *path, int flags, ...) 41 - { 42 - mode_t mode = 0; 43 - 44 - if (flags & O_CREAT) { 45 - va_list ap; 46 - va_start(ap, flags); 47 - // compiler warns to pass int (not mode_t) to va_arg 48 - mode = va_arg(ap, int); 49 - va_end(ap); 50 - } 51 - return __open_nocancel(path, flags | O_NOCTTY, mode); 52 - } 53 - 54 - #endif /* NO_SYSCALL_LEGACY */
+93 -1
src/kernel/libsyscall/wrappers/libproc/libproc.c
··· 37 37 #include "libproc_internal.h" 38 38 39 39 int __proc_info(int callnum, int pid, int flavor, uint64_t arg, void * buffer, int buffersize); 40 + int __proc_info_extended_id(int32_t callnum, int32_t pid, uint32_t flavor, uint32_t flags, uint64_t ext_id, uint64_t arg, user_addr_t buffer, int32_t buffersize); 40 41 __private_extern__ int proc_setthreadname(void * buffer, int buffersize); 41 42 int __process_policy(int scope, int action, int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64_t target_threadid); 42 43 int proc_rlimit_control(pid_t pid, int flavor, void *arg); ··· 234 235 } 235 236 236 237 retval = proc_pidinfo(pid, PROC_PIDREGIONPATH, (uint64_t)address, &path, sizeof(struct proc_regionpath)); 237 - if (retval != -1) { 238 + if (retval != 0) { 238 239 return (int)(strlcpy(buffer, path.prpo_path, buffersize)); 239 240 } 240 241 return 0; ··· 273 274 return 0; 274 275 } 275 276 277 + int 278 + proc_pidpath_audittoken(audit_token_t *audittoken, void * buffer, uint32_t buffersize) 279 + { 280 + int retval, len; 281 + 282 + if (buffersize < PROC_PIDPATHINFO_SIZE) { 283 + errno = ENOMEM; 284 + return 0; 285 + } 286 + if (buffersize > PROC_PIDPATHINFO_MAXSIZE) { 287 + errno = EOVERFLOW; 288 + return 0; 289 + } 290 + 291 + int pid = audittoken->val[5]; 292 + int idversion = audittoken->val[7]; 293 + 294 + retval = __proc_info_extended_id(PROC_INFO_CALL_PIDINFO, pid, PROC_PIDPATHINFO, PIF_COMPARE_IDVERSION, (uint64_t)idversion, 295 + (uint64_t)0, buffer, buffersize); 296 + if (retval != -1) { 297 + len = (int)strlen(buffer); 298 + return len; 299 + } 300 + return 0; 301 + } 276 302 277 303 int 278 304 proc_libversion(int *major, int * minor) ··· 1003 1029 #endif /* !TARGET_OS_SIMULATOR */ 1004 1030 1005 1031 #endif /* !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) */ 1032 + 1033 + int 1034 + proc_set_no_smt(void) 1035 + { 1036 + if (__process_policy(PROC_POLICY_SCOPE_PROCESS, PROC_POLICY_ACTION_APPLY, PROC_POLICY_NO_SMT, 0, NULL, getpid(), (uint64_t)0) == -1) { 1037 + return errno; 1038 + } 1039 + return 0; 1040 + } 1041 + 1042 + int 1043 + proc_setthread_no_smt(void) 1044 + { 1045 + extern uint64_t __thread_selfid(void); 1046 + if (__process_policy(PROC_POLICY_SCOPE_THREAD, PROC_POLICY_ACTION_APPLY, PROC_POLICY_NO_SMT, 0, NULL, 0, __thread_selfid()) == -1) { 1047 + return errno; 1048 + } 1049 + return 0; 1050 + } 1051 + 1052 + int 1053 + proc_set_csm(uint32_t flags) 1054 + { 1055 + const uint32_t mask = PROC_CSM_ALL | PROC_CSM_TECS | PROC_CSM_NOSMT; 1056 + if ((flags & ~mask) != 0) { 1057 + return EINVAL; 1058 + } 1059 + 1060 + if (flags & (PROC_CSM_NOSMT | PROC_CSM_ALL)) { 1061 + if (__process_policy(PROC_POLICY_SCOPE_PROCESS, PROC_POLICY_ACTION_APPLY, PROC_POLICY_NO_SMT, 0, NULL, getpid(), (uint64_t)0) == -1) { 1062 + return errno; 1063 + } 1064 + } 1065 + 1066 + if (flags & (PROC_CSM_TECS | PROC_CSM_ALL)) { 1067 + if (__process_policy(PROC_POLICY_SCOPE_PROCESS, PROC_POLICY_ACTION_APPLY, PROC_POLICY_TECS, 0, NULL, getpid(), (uint64_t)0) == -1) { 1068 + return errno; 1069 + } 1070 + } 1071 + 1072 + return 0; 1073 + } 1074 + 1075 + int 1076 + proc_setthread_csm(uint32_t flags) 1077 + { 1078 + extern uint64_t __thread_selfid(void); 1079 + const uint32_t mask = PROC_CSM_ALL | PROC_CSM_TECS | PROC_CSM_NOSMT; 1080 + if ((flags & ~mask) != 0) { 1081 + return EINVAL; 1082 + } 1083 + 1084 + if (flags & (PROC_CSM_NOSMT | PROC_CSM_ALL)) { 1085 + if (__process_policy(PROC_POLICY_SCOPE_THREAD, PROC_POLICY_ACTION_APPLY, PROC_POLICY_NO_SMT, 0, NULL, 0, __thread_selfid()) == -1) { 1086 + return errno; 1087 + } 1088 + } 1089 + 1090 + if (flags & (PROC_CSM_TECS | PROC_CSM_ALL)) { 1091 + if (__process_policy(PROC_POLICY_SCOPE_THREAD, PROC_POLICY_ACTION_APPLY, PROC_POLICY_TECS, 0, NULL, 0, __thread_selfid()) == -1) { 1092 + return errno; 1093 + } 1094 + } 1095 + 1096 + return 0; 1097 + }
+35
src/kernel/libsyscall/wrappers/libproc/libproc.h
··· 31 31 #include <sys/resource.h> 32 32 #include <stdint.h> 33 33 #include <stdbool.h> 34 + #include <mach/message.h> /* for audit_token_t */ 34 35 35 36 #include <sys/proc_info.h> 36 37 37 38 #include <Availability.h> 39 + #include <os/availability.h> 38 40 39 41 /* 40 42 * This header file contains private interfaces to obtain process information. ··· 98 100 int proc_regionfilename(int pid, uint64_t address, void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 99 101 int proc_kmsgbuf(void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 100 102 int proc_pidpath(int pid, void * buffer, uint32_t buffersize) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 103 + int proc_pidpath_audittoken(audit_token_t *audittoken, void * buffer, uint32_t buffersize) API_AVAILABLE(macos(10.16), ios(14.0), watchos(7.0), tvos(14.0)); 101 104 int proc_libversion(int *major, int * minor) __OSX_AVAILABLE_STARTING(__MAC_10_5, __IPHONE_2_0); 102 105 103 106 /* ··· 125 128 int proc_clear_dirty(pid_t pid, uint32_t flags); 126 129 127 130 int proc_terminate(pid_t pid, int *sig); 131 + 132 + /* 133 + * NO_SMT means that on an SMT CPU, this thread must be scheduled alone, 134 + * with the paired CPU idle. 135 + * 136 + * Set NO_SMT on the current proc (all existing and future threads) 137 + * This attribute is inherited on fork and exec 138 + */ 139 + int proc_set_no_smt(void) __API_AVAILABLE(macos(10.16)); 140 + 141 + /* Set NO_SMT on the current thread */ 142 + int proc_setthread_no_smt(void) __API_AVAILABLE(macos(10.16)); 143 + 144 + /* 145 + * CPU Security Mitigation APIs 146 + * 147 + * Set CPU security mitigation on the current proc (all existing and future threads) 148 + * This attribute is inherited on fork and exec 149 + */ 150 + int proc_set_csm(uint32_t flags) __API_AVAILABLE(macos(10.16)); 151 + 152 + /* Set CPU security mitigation on the current thread */ 153 + int proc_setthread_csm(uint32_t flags) __API_AVAILABLE(macos(10.16)); 154 + 155 + /* 156 + * flags for CPU Security Mitigation APIs 157 + * PROC_CSM_ALL should be used in most cases, 158 + * the individual flags are provided only for performance evaluation etc 159 + */ 160 + #define PROC_CSM_ALL 0x0001 /* Set all available mitigations */ 161 + #define PROC_CSM_NOSMT 0x0002 /* Set NO_SMT - see above */ 162 + #define PROC_CSM_TECS 0x0004 /* Execute VERW on every return to user mode */ 128 163 129 164 #ifdef PRIVATE 130 165 #include <sys/event.h>
+9 -7
src/kernel/libsyscall/wrappers/mach_absolute_time.S
··· 153 153 #elif defined(__arm__) 154 154 155 155 #include <mach/arm/syscall_sw.h> 156 + #include <mach/arm/traps.h> 156 157 157 158 /* 158 159 * If userspace access to the timebase is supported (indicated through the commpage), ··· 180 181 ldrb r0, [ip, #((_COMM_PAGE_USER_TIMEBASE) - (_COMM_PAGE_TIMEBASE_OFFSET))] 181 182 cmp r0, #USER_TIMEBASE_NONE // Are userspace reads supported? 182 183 beq _mach_absolute_time_kernel // If not, go to the kernel 183 - isb // Prevent speculation on CNTPCT across calls 184 + isb // Prevent speculation on CNTVCT across calls 184 185 // (see ARMV7C.b section B8.1.2, ARMv8 section D6.1.2) 185 186 push {r4, r5, r7, lr} // Push a frame 186 187 add r7, sp, #8 ··· 206 207 .align 2 207 208 .globl _mach_absolute_time_kernel 208 209 _mach_absolute_time_kernel: 209 - mov r12, #-3 // Load the magic MAT number 210 + mov r12, #MACH_ARM_TRAP_ABSTIME // Load the magic MAT number 210 211 swi #SWI_SYSCALL 211 212 bx lr 212 213 ··· 214 215 .align 2 215 216 .globl _mach_continuous_time_kernel 216 217 _mach_continuous_time_kernel: 217 - mov r12, #-4 // Load the magic MCT number 218 + mov r12, #MACH_ARM_TRAP_CONTTIME // Load the magic MCT number 218 219 swi #SWI_SYSCALL 219 220 bx lr 220 221 221 222 #elif defined(__arm64__) 222 223 223 224 #include <mach/arm/syscall_sw.h> 225 + #include <mach/arm/traps.h> 224 226 225 227 /* 226 228 * If userspace access to the timebase is supported (indicated through the commpage), ··· 244 246 ldrb w2, [x3, #((_COMM_PAGE_USER_TIMEBASE) - (_COMM_PAGE_TIMEBASE_OFFSET))] 245 247 cmp x2, #USER_TIMEBASE_NONE // Are userspace reads supported? 246 248 b.eq _mach_absolute_time_kernel // If not, go to the kernel 247 - isb // Prevent speculation on CNTPCT across calls 249 + isb // Prevent speculation on CNTVCT across calls 248 250 // (see ARMV7C.b section B8.1.2, ARMv8 section D6.1.2) 249 251 L_mach_absolute_time_user: 250 252 ldr x1, [x3] // Load the offset 251 - mrs x0, CNTPCT_EL0 // Read the timebase 253 + mrs x0, CNTVCT_EL0 // Read the timebase 252 254 ldr x2, [x3] // Load the offset 253 255 cmp x1, x2 // Compare our offset values... 254 256 b.ne L_mach_absolute_time_user // If they changed, try again ··· 261 263 .align 2 262 264 .globl _mach_absolute_time_kernel 263 265 _mach_absolute_time_kernel: 264 - mov w16, #-3 // Load the magic MAT number 266 + mov w16, #MACH_ARM_TRAP_ABSTIME // Load the magic MAT number 265 267 svc #SWI_SYSCALL 266 268 ret 267 269 ··· 269 271 .align 2 270 272 .globl _mach_continuous_time_kernel 271 273 _mach_continuous_time_kernel: 272 - mov w16, #-4 // Load the magic MCT number 274 + mov w16, #MACH_ARM_TRAP_CONTTIME // Load the magic MCT number 273 275 svc #SWI_SYSCALL 274 276 ret 275 277
+2 -3
src/kernel/libsyscall/wrappers/mach_approximate_time.c
··· 30 30 uint64_t 31 31 mach_approximate_time(void) 32 32 { 33 - uint8_t supported = *((uint8_t *)_COMM_PAGE_APPROX_TIME_SUPPORTED); 34 - if (supported) { 35 - return *((uint64_t *)_COMM_PAGE_APPROX_TIME); 33 + if (COMM_PAGE_READ(uint8_t, APPROX_TIME_SUPPORTED)) { 34 + return COMM_PAGE_READ(uint64_t, APPROX_TIME); 36 35 } 37 36 return mach_absolute_time(); 38 37 }
src/kernel/libsyscall/wrappers/mach_approximate_time_i386.S src/kernel/libsyscall/wrappers/mach_approximate_time.S
+1 -1
src/kernel/libsyscall/wrappers/mach_boottime.c
··· 25 25 uint64_t 26 26 mach_boottime_usec(void) 27 27 { 28 - return *(uint64_t*)_COMM_PAGE_BOOTTIME_USEC; 28 + return COMM_PAGE_READ(uint64_t, BOOTTIME_USEC); 29 29 }
+2 -1
src/kernel/libsyscall/wrappers/mach_bridge_remote_time.c
··· 50 50 uint64_t now = 0; 51 51 struct bt_params params = {}; 52 52 53 - volatile struct bt_params *commpage_bt_params_p = (struct bt_params *)_COMM_PAGE_REMOTETIME_PARAMS; 53 + COMM_PAGE_SLOT_TYPE(struct bt_params) commpage_bt_params_p = 54 + COMM_PAGE_SLOT(struct bt_params, REMOTETIME_PARAMS); 54 55 volatile uint64_t *base_local_ts_p = &commpage_bt_params_p->base_local_ts; 55 56 volatile uint64_t *base_remote_ts_p = &commpage_bt_params_p->base_remote_ts; 56 57 volatile double *rate_p = &commpage_bt_params_p->rate;
+2 -1
src/kernel/libsyscall/wrappers/mach_continuous_time.c
··· 62 62 #define ISB_SY 0xf 63 63 uint8_t cont_hwclock = *((uint8_t*)_COMM_PAGE_CONT_HWCLOCK); 64 64 if (cont_hwclock) { 65 + volatile uint64_t *base_ptr = (volatile uint64_t*)_COMM_PAGE_CONT_HW_TIMEBASE; 65 66 __builtin_arm_isb(ISB_SY); 66 - *cont_time = __builtin_arm_rsr64("CNTPCT_EL0"); 67 + *cont_time = __builtin_arm_rsr64("CNTVCT_EL0") + *base_ptr; 67 68 return KERN_SUCCESS; 68 69 } 69 70 #endif
-5
src/kernel/libsyscall/wrappers/mach_get_times.c
··· 64 64 if (__gettimeofday_with_mach(&tv, NULL, &tbr) < 0) { 65 65 return KERN_FAILURE; 66 66 } else if (tbr == 0) { 67 - #if !(TARGET_OS_IPHONE && !TARGET_OS_SIMULATOR) 68 - // On an old kernel, likely chroot'ed. (remove next year) 69 - tbr = mach_absolute_time(); 70 - #else 71 67 __builtin_trap(); 72 - #endif 73 68 } 74 69 } 75 70
+164
src/kernel/libsyscall/wrappers/open-base.c
··· 1 + /* 2 + * Copyright (c) 2020 Apple Inc. All rights reserved. 3 + * 4 + * @APPLE_LICENSE_HEADER_START@ 5 + * 6 + * This file contains Original Code and/or Modifications of Original Code 7 + * as defined in and that are subject to the Apple Public Source License 8 + * Version 2.0 (the 'License'). You may not use this file except in 9 + * compliance with the License. Please obtain a copy of the License at 10 + * http://www.opensource.apple.com/apsl/ and read it before using this 11 + * file. 12 + * 13 + * The Original Code and all software distributed under the License are 14 + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 + * Please see the License for the specific language governing rights and 19 + * limitations under the License. 20 + * 21 + * @APPLE_LICENSE_HEADER_END@ 22 + */ 23 + 24 + #include <fcntl.h> 25 + #include <stdarg.h> 26 + #include <sys/param.h> 27 + #include <sys/types.h> 28 + #include <TargetConditionals.h> 29 + 30 + #if !defined(__i386__) 31 + 32 + #if TARGET_OS_OSX 33 + #include <stdbool.h> 34 + 35 + /* 36 + * On macOS we have support for shimming calls to open the SystemVersion plist. 37 + * This support is enabled for specific (generally older) binaries from 38 + * libSystem_initializer()/__libkernel_init_late() by populating these function pointers 39 + * with the corresponding functions built into libsyscall_dynamic (see open-compat-shim.c). 40 + */ 41 + extern bool (*system_version_compat_check_path_suffix)(const char *orig_path); 42 + extern int (*system_version_compat_open_shim)(int opened_fd, int openat_fd, const char *orig_path, int oflag, mode_t mode, 43 + int (*close_syscall)(int), int (*open_syscall)(const char *, int, mode_t), 44 + int (*openat_syscall)(int, const char *, int, mode_t), 45 + int (*fcntl_syscall)(int, int, long)); 46 + #endif /* TARGET_OS_OSX */ 47 + 48 + #ifdef VARIANT_CANCELABLE 49 + int __open(const char *path, int oflag, mode_t mode); 50 + int __openat(int fd, const char *path, int oflag, mode_t mode); 51 + 52 + #define OPEN_SYSCALL __open 53 + #define OPENAT_SYSCALL __openat 54 + 55 + #if TARGET_OS_OSX 56 + int __fcntl(int fd, int cmd, long arg); 57 + int close(int fd); 58 + 59 + #define FCNTL_SYSCALL __fcntl 60 + #define CLOSE_SYSCALL close 61 + #endif /* TARGET_OS_OSX */ 62 + 63 + #else /* VARIANT_CANCELABLE */ 64 + int __open_nocancel(const char *path, int oflag, mode_t mode); 65 + int __openat_nocancel(int fd, const char *path, int oflag, mode_t mode); 66 + 67 + #define OPEN_SYSCALL __open_nocancel 68 + #define OPENAT_SYSCALL __openat_nocancel 69 + 70 + #if TARGET_OS_OSX 71 + int __fcntl_nocancel(int fd, int cmd, long arg); 72 + int __close_nocancel(int fd); 73 + 74 + #define FCNTL_SYSCALL __fcntl_nocancel 75 + #define CLOSE_SYSCALL __close_nocancel 76 + #endif /* TARGET_OS_OSX */ 77 + #endif /* VARIANT_CANCELABLE */ 78 + 79 + #ifdef VARIANT_CANCELABLE 80 + int 81 + open(const char *path, int oflag, ...) 82 + #else /* VARIANT_CANCELABLE */ 83 + int 84 + open$NOCANCEL(const char *path, int oflag, ...) 85 + #endif 86 + { 87 + int opened_fd = 0; 88 + mode_t mode = 0; 89 + 90 + if (oflag & O_CREAT) { 91 + va_list ap; 92 + va_start(ap, oflag); 93 + /* compiler warns to pass int (not mode_t) to va_arg */ 94 + mode = va_arg(ap, int); 95 + va_end(ap); 96 + } 97 + 98 + opened_fd = OPEN_SYSCALL(path, oflag, mode); 99 + #if !TARGET_OS_OSX 100 + return opened_fd; 101 + #else /* TARGET_OS_OSX */ 102 + if (opened_fd < 0) { 103 + return opened_fd; 104 + } 105 + 106 + /* check to see if system_version_compat is enabled for this process */ 107 + if (system_version_compat_check_path_suffix == NULL) { 108 + return opened_fd; 109 + } 110 + 111 + /* check to see if the suffix of the path we opened matches one we are shimming */ 112 + if (!system_version_compat_check_path_suffix(path)) { 113 + return opened_fd; 114 + } 115 + 116 + /* at this point we call into the version compat open shim and return values from there */ 117 + return system_version_compat_open_shim(opened_fd, -1, path, oflag, mode, CLOSE_SYSCALL, OPEN_SYSCALL, 118 + NULL, FCNTL_SYSCALL); 119 + #endif /* TARGET_OS_OSX */ 120 + } 121 + 122 + #ifdef VARIANT_CANCELABLE 123 + int 124 + openat(int fd, const char *path, int oflag, ...) 125 + #else /* VARIANT_CANCELABLE */ 126 + int 127 + openat$NOCANCEL(int fd, const char *path, int oflag, ...) 128 + #endif 129 + { 130 + int opened_fd = 0; 131 + mode_t mode = 0; 132 + 133 + if (oflag & O_CREAT) { 134 + va_list ap; 135 + va_start(ap, oflag); 136 + // compiler warns to pass int (not mode_t) to va_arg 137 + mode = va_arg(ap, int); 138 + va_end(ap); 139 + } 140 + 141 + opened_fd = OPENAT_SYSCALL(fd, path, oflag, mode); 142 + #if !TARGET_OS_OSX 143 + return opened_fd; 144 + #else 145 + if (opened_fd < 0) { 146 + return opened_fd; 147 + } 148 + 149 + /* check to see if system_version_compat is enabled for this process */ 150 + if (system_version_compat_check_path_suffix == NULL) { 151 + return opened_fd; 152 + } 153 + 154 + /* check to see if the suffix of the path we opened matches one we are shimming */ 155 + if (!system_version_compat_check_path_suffix(path)) { 156 + return opened_fd; 157 + } 158 + 159 + /* at this point we call into the version compat open shim and return values from there */ 160 + return system_version_compat_open_shim(opened_fd, fd, path, oflag, mode, CLOSE_SYSCALL, NULL, 161 + OPENAT_SYSCALL, FCNTL_SYSCALL); 162 + #endif /* !TARGET_OS_OSX */ 163 + } 164 + #endif /* !defined(__i386__) */
-2
src/kernel/libsyscall/wrappers/proc.c
··· 27 27 #include <TargetConditionals.h> 28 28 #include <os/proc.h> 29 29 30 - #if !TARGET_OS_OSX 31 30 extern uint64_t __memorystatus_available_memory(void); 32 31 33 32 size_t ··· 35 34 { 36 35 return (size_t)__memorystatus_available_memory(); 37 36 } 38 - #endif
+1 -1
src/kernel/libsyscall/wrappers/skywalk/os_channel.c
··· 1 1 /* 2 - * Copyright (c) 2015-2019 Apple Inc. All rights reserved. 2 + * Copyright (c) 2015-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 5 *
+1 -1
src/kernel/libsyscall/wrappers/skywalk/os_packet.c
··· 1 1 /* 2 - * Copyright (c) 2015-2017 Apple Inc. All rights reserved. 2 + * Copyright (c) 2015-2020 Apple Inc. All rights reserved. 3 3 * 4 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 5 *
+316 -4
src/kernel/libsyscall/wrappers/spawn/posix_spawn.c
··· 97 97 /* Default is no binary preferences, i.e. use normal grading */ 98 98 memset((*psattrp)->psa_binprefs, 0, 99 99 sizeof((*psattrp)->psa_binprefs)); 100 + memset((*psattrp)->psa_subcpuprefs, 0xff /* CPU_SUBTYPE_ANY */, 101 + sizeof((*psattrp)->psa_subcpuprefs)); 100 102 101 103 /* Default is no port actions to take */ 102 104 (*psattrp)->psa_ports = NULL; ··· 157 159 (*psattrp)->psa_darwin_role = POSIX_SPAWN_DARWIN_ROLE_NONE; 158 160 159 161 (*psattrp)->psa_max_addr = 0; 162 + 163 + (*psattrp)->psa_no_smt = false; 164 + (*psattrp)->psa_tecs = false; 165 + 166 + /* Default is no subsystem root path */ 167 + (*psattrp)->psa_subsystem_root_path = NULL; 168 + 169 + /* Default is no platform given */ 170 + (*psattrp)->psa_platform = 0; 171 + 172 + /* Default is no option */ 173 + (*psattrp)->psa_options = PSA_OPTION_NONE; 160 174 } 161 175 162 176 return err; ··· 188 202 static int posix_spawn_destroypersona_info_np(posix_spawnattr_t *); 189 203 static int posix_spawn_destroyposix_cred_info_np(posix_spawnattr_t *); 190 204 static int posix_spawn_destroymacpolicy_info_np(posix_spawnattr_t *); 205 + static int posix_spawn_destroysubsystem_root_path_np(posix_spawnattr_t *); 191 206 192 207 int 193 208 posix_spawnattr_destroy(posix_spawnattr_t *attr) ··· 204 219 posix_spawn_destroypersona_info_np(attr); 205 220 posix_spawn_destroyposix_cred_info_np(attr); 206 221 posix_spawn_destroymacpolicy_info_np(attr); 222 + posix_spawn_destroysubsystem_root_path_np(attr); 207 223 208 224 free(psattr); 209 225 *attr = NULL; ··· 420 436 _posix_spawnattr_t psattr; 421 437 int i = 0; 422 438 423 - if (attr == NULL || *attr == NULL) { 439 + if (attr == NULL || *attr == NULL || pref == NULL) { 424 440 return EINVAL; 425 441 } 426 442 427 443 psattr = *(_posix_spawnattr_t *)attr; 428 - for (i = 0; i < count && i < 4; i++) { 444 + for (i = 0; i < count && i < NBINPREFS; i++) { 429 445 pref[i] = psattr->psa_binprefs[i]; 430 446 } 431 447 ··· 435 451 return 0; 436 452 } 437 453 454 + /* 455 + * posix_spawnattr_getarchpref_np 456 + * 457 + * Description: Obtain the value of the spawn binary preferences attribute from 458 + * the spawn attributes object referenced by 'attr' and place the 459 + * result into the memory referenced by 'pref' and 'subpref'. 460 + * 461 + * Parameters: attr The spawn attributes object whose 462 + * binary preferences are to be retrieved 463 + * count The size of the cpu_type_t array 464 + * pref An array of cpu types 465 + * subpref An array of subcpu types 466 + * ocount The actual number copied 467 + * 468 + * Returns: 0 No cpu/subcpu preferences found 469 + * > 0 The number of types (less than 470 + * count) copied over from 'attr'. 471 + * 472 + * Implicit Returns: 473 + * *pref (modified) The cpu preferences array 474 + * from the spawn attributes object 475 + * *subpref (modified) The subcpu preferences array 476 + * from the spawn attributes object 477 + */ 478 + int 479 + posix_spawnattr_getarchpref_np(const posix_spawnattr_t * __restrict attr, 480 + size_t count, cpu_type_t *pref, cpu_subtype_t *subpref, size_t * __restrict ocount) 481 + { 482 + _posix_spawnattr_t psattr; 483 + int i = 0; 484 + 485 + if (attr == NULL || *attr == NULL || pref == NULL || subpref == NULL) { 486 + return EINVAL; 487 + } 488 + 489 + psattr = *(_posix_spawnattr_t *)attr; 490 + for (i = 0; i < count && i < NBINPREFS; i++) { 491 + pref[i] = psattr->psa_binprefs[i]; 492 + subpref[i] = psattr->psa_subcpuprefs[i]; 493 + } 494 + 495 + if (ocount) { 496 + *ocount = i; 497 + } 498 + return 0; 499 + } 500 + 438 501 439 502 /* 440 503 * posix_spawnattr_getpcontrol_np ··· 628 691 _posix_spawnattr_t psattr; 629 692 int i = 0; 630 693 631 - if (attr == NULL || *attr == NULL) { 694 + if (attr == NULL || *attr == NULL || pref == NULL) { 632 695 return EINVAL; 633 696 } 634 697 635 698 psattr = *(_posix_spawnattr_t *)attr; 636 - for (i = 0; i < count && i < 4; i++) { 699 + for (i = 0; i < count && i < NBINPREFS; i++) { 637 700 psattr->psa_binprefs[i] = pref[i]; 701 + psattr->psa_subcpuprefs[i] = CPU_SUBTYPE_ANY; 638 702 } 639 703 640 704 /* return number of binprefs copied over */ 641 705 if (ocount) { 642 706 *ocount = i; 643 707 } 708 + 709 + for (; i < NBINPREFS; i++) { 710 + psattr->psa_binprefs[i] = 0; 711 + psattr->psa_subcpuprefs[i] = CPU_SUBTYPE_ANY; 712 + } 713 + 644 714 return 0; 645 715 } 646 716 717 + /* 718 + * posix_spawnattr_setarchpref_np 719 + * 720 + * Description: Set the universal binary preferences for the spawn attribute 721 + * value referenced by 'attr' from the memory containing the 722 + * cpu_type_t array referenced by 'pref', the cpu_subtype_t array 723 + * referenced by 'subpref' and size of 'count' 724 + * 725 + * Parameters: attr The spawn attributes object whose 726 + * binary preferences are to be set 727 + * count Size of the array pointed to by 'pref' 728 + * pref cpu_type_t array of cpu binary preferences 729 + * subpref cpu_subtype_t array of subcpu binary preferences 730 + * ocount The actual number copied 731 + * 732 + * Returns: 0 No preferences copied 733 + * > 0 Number of preferences copied 734 + * 735 + * Note: The posix_spawnattr_t currently only holds four 736 + * cpu_type_t/cpu_subtype_t pairs. 737 + * If the caller provides more preferences than this limit, they 738 + * will be ignored, as reflected in the return value. 739 + */ 740 + int 741 + posix_spawnattr_setarchpref_np(posix_spawnattr_t * __restrict attr, 742 + size_t count, cpu_type_t *pref, cpu_subtype_t *subpref, 743 + size_t * __restrict ocount) 744 + { 745 + _posix_spawnattr_t psattr; 746 + int i = 0; 747 + 748 + if (attr == NULL || *attr == NULL || pref == NULL || subpref == NULL) { 749 + return EINVAL; 750 + } 751 + 752 + psattr = *(_posix_spawnattr_t *)attr; 753 + for (i = 0; i < count && i < NBINPREFS; i++) { 754 + psattr->psa_binprefs[i] = pref[i]; 755 + psattr->psa_subcpuprefs[i] = subpref[i]; 756 + } 757 + 758 + /* return number of binprefs copied over */ 759 + if (ocount) { 760 + *ocount = i; 761 + } 762 + 763 + for (; i < NBINPREFS; i++) { 764 + psattr->psa_binprefs[i] = 0; 765 + psattr->psa_subcpuprefs[i] = CPU_SUBTYPE_ANY; 766 + } 767 + 768 + return 0; 769 + } 647 770 648 771 /* 649 772 * posix_spawnattr_setpcontrol_np ··· 874 997 } 875 998 876 999 /* 1000 + * posix_spawn_set_subsystem_root_path 1001 + * Description: Set path as the subsystem root path for attr; clears if NULL 1002 + */ 1003 + int 1004 + posix_spawnattr_set_subsystem_root_path_np(posix_spawnattr_t *attr, char *path) 1005 + { 1006 + _posix_spawnattr_t psattr; 1007 + char * buf = NULL; 1008 + char * old_buf; 1009 + size_t bytes; 1010 + 1011 + if (attr == NULL || *attr == NULL) { 1012 + return EINVAL; 1013 + } 1014 + 1015 + psattr = *(_posix_spawnattr_t *)attr; 1016 + 1017 + if (path) { 1018 + buf = malloc(MAXPATHLEN); 1019 + 1020 + if (buf == NULL) { 1021 + return ENOMEM; 1022 + } 1023 + 1024 + bytes = strlcpy(buf, path, MAXPATHLEN); 1025 + 1026 + if (bytes >= MAXPATHLEN) { 1027 + free(buf); 1028 + return ENAMETOOLONG; 1029 + } 1030 + } 1031 + 1032 + old_buf = psattr->psa_subsystem_root_path; 1033 + psattr->psa_subsystem_root_path = buf; 1034 + 1035 + free(old_buf); 1036 + 1037 + return 0; 1038 + } 1039 + 1040 + /* 1041 + * posix_spawn_destroy_subsystem_root_path_np 1042 + * Description: clean up subsystem_root_path string in posix_spawnattr_t attr 1043 + */ 1044 + static int 1045 + posix_spawn_destroysubsystem_root_path_np(posix_spawnattr_t *attr) 1046 + { 1047 + _posix_spawnattr_t psattr; 1048 + char * subsystem_root_path; 1049 + 1050 + if (attr == NULL || *attr == NULL) { 1051 + return EINVAL; 1052 + } 1053 + 1054 + psattr = *(_posix_spawnattr_t *)attr; 1055 + subsystem_root_path = psattr->psa_subsystem_root_path; 1056 + 1057 + if (subsystem_root_path == NULL) { 1058 + return EINVAL; 1059 + } 1060 + 1061 + psattr->psa_subsystem_root_path = NULL; 1062 + free(subsystem_root_path); 1063 + return 0; 1064 + } 1065 + 1066 + /* 1067 + * posix_spawnattr_set_platform_np 1068 + * Description: sets the platform in posix_spawnattr_t attr 1069 + * 1070 + * To be implemented. 1071 + */ 1072 + int 1073 + posix_spawnattr_set_platform_np(posix_spawnattr_t *attr, int platform, uint32_t flags) 1074 + { 1075 + _posix_spawnattr_t psattr; 1076 + 1077 + if (attr == NULL || *attr == NULL) { 1078 + return EINVAL; 1079 + } 1080 + 1081 + psattr = *(_posix_spawnattr_t *)attr; 1082 + psattr->psa_platform = platform; 1083 + 1084 + (void)flags; 1085 + return 0; 1086 + } 1087 + 1088 + /* 1089 + * posix_spawnattr_disable_ptr_auth_a_keys_np 1090 + * Description: Set flag to disable A keys for Ptr Auth 1091 + */ 1092 + int 1093 + posix_spawnattr_disable_ptr_auth_a_keys_np(posix_spawnattr_t *attr, uint32_t flags) 1094 + { 1095 + _posix_spawnattr_t psattr; 1096 + 1097 + if (attr == NULL || *attr == NULL) { 1098 + return EINVAL; 1099 + } 1100 + 1101 + psattr = *(_posix_spawnattr_t *)attr; 1102 + 1103 + psattr->psa_options |= PSA_OPTION_PLUGIN_HOST_DISABLE_A_KEYS; 1104 + (void)flags; 1105 + return 0; 1106 + } 1107 + 1108 + /* 877 1109 * posix_spawn_appendportaction_np 878 1110 * Description: append a port action, grow the array if necessary 879 1111 */ ··· 944 1176 } 945 1177 946 1178 /* 1179 + * posix_spawnattr_setsuidcredport_np 1180 + * 1181 + * Description: Set an suid cred port to be used to execute with a different UID. 1182 + * 1183 + * Parameters: attr The spawn attributes object for the 1184 + * new process 1185 + * port The suid cred port 1186 + * 1187 + * Returns: 0 Success 1188 + */ 1189 + int 1190 + posix_spawnattr_setsuidcredport_np(posix_spawnattr_t *attr, mach_port_t port) 1191 + { 1192 + _ps_port_action_t action = { 1193 + .port_type = PSPA_SUID_CRED, 1194 + .new_port = port, 1195 + }; 1196 + return posix_spawn_appendportaction_np(attr, &action); 1197 + } 1198 + 1199 + /* 947 1200 * posix_spawnattr_setexceptionports_np 948 1201 * 949 1202 * Description: Set a new port for a set of exception ports in the spawned task. ··· 1756 2009 return err; 1757 2010 } 1758 2011 2012 + int 2013 + posix_spawnattr_set_ptrauth_task_port_np(posix_spawnattr_t * __restrict attr, 2014 + mach_port_t port) 2015 + { 2016 + int err = 0; 2017 + 2018 + _ps_port_action_t action = { 2019 + .port_type = PSPA_PTRAUTH_TASK_PORT, 2020 + .new_port = port, 2021 + }; 2022 + 2023 + err = posix_spawn_appendportaction_np(attr, &action); 2024 + return err; 2025 + } 1759 2026 1760 2027 static 1761 2028 _ps_mac_policy_extension_t * ··· 2117 2384 return 0; 2118 2385 } 2119 2386 2387 + int 2388 + posix_spawnattr_setnosmt_np(const posix_spawnattr_t * __restrict attr) 2389 + { 2390 + _posix_spawnattr_t psattr; 2391 + 2392 + if (attr == NULL || *attr == NULL) { 2393 + return EINVAL; 2394 + } 2395 + 2396 + psattr = *(_posix_spawnattr_t *)attr; 2397 + psattr->psa_no_smt = true; 2398 + 2399 + return 0; 2400 + } 2401 + 2402 + int 2403 + posix_spawnattr_set_csm_np(const posix_spawnattr_t * __restrict attr, uint32_t flags) 2404 + { 2405 + _posix_spawnattr_t psattr; 2406 + 2407 + if (attr == NULL || *attr == NULL) { 2408 + return EINVAL; 2409 + } 2410 + 2411 + const uint32_t mask = POSIX_SPAWN_NP_CSM_ALL | POSIX_SPAWN_NP_CSM_TECS | POSIX_SPAWN_NP_CSM_NOSMT; 2412 + if ((flags & ~mask) != 0) { 2413 + return EINVAL; 2414 + } 2415 + 2416 + psattr = *(_posix_spawnattr_t *)attr; 2417 + 2418 + if (flags & (POSIX_SPAWN_NP_CSM_TECS | POSIX_SPAWN_NP_CSM_ALL)) { 2419 + psattr->psa_tecs = true; 2420 + } 2421 + if (flags & (POSIX_SPAWN_NP_CSM_NOSMT | POSIX_SPAWN_NP_CSM_ALL)) { 2422 + psattr->psa_no_smt = true; 2423 + } 2424 + 2425 + return 0; 2426 + } 2427 + 2120 2428 static struct _posix_spawn_posix_cred_info * 2121 2429 _posix_spawnattr_get_posix_creds_info(_posix_spawnattr_t psattr) 2122 2430 { ··· 2404 2712 if (psattr->psa_posix_cred_info != NULL) { 2405 2713 ad.posix_cred_info_size = sizeof(struct _posix_spawn_posix_cred_info); 2406 2714 ad.posix_cred_info = psattr->psa_posix_cred_info; 2715 + } 2716 + if (psattr->psa_subsystem_root_path != NULL) { 2717 + ad.subsystem_root_path_size = MAXPATHLEN; 2718 + ad.subsystem_root_path = psattr->psa_subsystem_root_path; 2407 2719 } 2408 2720 } 2409 2721 if (file_actions != NULL && *file_actions != NULL) {
+24
src/kernel/libsyscall/wrappers/spawn/spawn.h
··· 135 135 int posix_spawnattr_getbinpref_np(const posix_spawnattr_t * __restrict, 136 136 size_t, cpu_type_t *__restrict, size_t *__restrict) __API_AVAILABLE(macos(10.5), ios(2.0)) __SPI_AVAILABLE(watchos(2.0), tvos(9.0), bridgeos(1.0)); 137 137 138 + int posix_spawnattr_getarchpref_np(const posix_spawnattr_t * __restrict, 139 + size_t, cpu_type_t *__restrict, cpu_subtype_t *__restrict, size_t *__restrict) __API_AVAILABLE(macos(10.16), ios(14.0)) __SPI_AVAILABLE(watchos(7.0), tvos(14.0), bridgeos(5.0)); 140 + 138 141 int posix_spawnattr_setauditsessionport_np(posix_spawnattr_t * __restrict, 139 142 mach_port_t) __API_AVAILABLE(macos(10.6), ios(3.2)); 140 143 141 144 int posix_spawnattr_setbinpref_np(posix_spawnattr_t * __restrict, 142 145 size_t, cpu_type_t *__restrict, size_t *__restrict) __API_AVAILABLE(macos(10.5), ios(2.0)) __SPI_AVAILABLE(watchos(2.0), tvos(9.0), bridgeos(1.0)); 146 + 147 + int posix_spawnattr_setarchpref_np(posix_spawnattr_t * __restrict, 148 + size_t, cpu_type_t *__restrict, cpu_subtype_t *__restrict, size_t *__restrict) __API_AVAILABLE(macos(10.16), ios(14.0)) __SPI_AVAILABLE(watchos(7.0), tvos(14.0), bridgeos(5.0)); 143 149 144 150 int posix_spawnattr_setexceptionports_np(posix_spawnattr_t * __restrict, 145 151 exception_mask_t, mach_port_t, ··· 147 153 148 154 int posix_spawnattr_setspecialport_np(posix_spawnattr_t * __restrict, 149 155 mach_port_t, int) __API_AVAILABLE(macos(10.5), ios(2.0)) __SPI_AVAILABLE(watchos(2.0), tvos(9.0), bridgeos(1.0)); 156 + 157 + int posix_spawnattr_setsuidcredport_np(posix_spawnattr_t * __restrict, mach_port_t) __SPI_AVAILABLE(ios(13.0), macos(10.15)); 158 + 159 + int posix_spawnattr_setnosmt_np(const posix_spawnattr_t * __restrict attr) __API_AVAILABLE(macos(10.16)); 160 + 161 + /* 162 + * Set CPU Security Mitigation on the spawned process 163 + * This attribute affects all threads and is inherited on fork and exec 164 + */ 165 + int posix_spawnattr_set_csm_np(const posix_spawnattr_t * __restrict attr, uint32_t flags) __API_AVAILABLE(macos(10.16)); 166 + /* 167 + * flags for CPU Security Mitigation attribute 168 + * POSIX_SPAWN_NP_CSM_ALL should be used in most cases, 169 + * the individual flags are provided only for performance evaluation etc 170 + */ 171 + #define POSIX_SPAWN_NP_CSM_ALL 0x0001 172 + #define POSIX_SPAWN_NP_CSM_NOSMT 0x0002 173 + #define POSIX_SPAWN_NP_CSM_TECS 0x0004 150 174 151 175 int posix_spawn_file_actions_addinherit_np(posix_spawn_file_actions_t *, 152 176 int) __API_AVAILABLE(macos(10.7), ios(4.3)) __SPI_AVAILABLE(watchos(2.0), tvos(9.0), bridgeos(1.0));
+14
src/kernel/libsyscall/wrappers/spawn/spawn_private.h
··· 30 30 #include <Availability.h> 31 31 #include <TargetConditionals.h> 32 32 33 + __BEGIN_DECLS 34 + 33 35 int posix_spawnattr_getpcontrol_np(const posix_spawnattr_t * __restrict, int * __restrict) __API_AVAILABLE(macos(10.6), ios(3.2)); 34 36 int posix_spawnattr_setpcontrol_np(posix_spawnattr_t *, const int) __API_AVAILABLE(macos(10.6), ios(3.2)); 35 37 ··· 60 62 61 63 int posix_spawnattr_set_registered_ports_np(posix_spawnattr_t * __restrict attr, mach_port_t portarray[], uint32_t count) __API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0), watchos(6.0)); 62 64 65 + int 66 + posix_spawnattr_set_ptrauth_task_port_np(posix_spawnattr_t * __restrict attr, 67 + mach_port_t port) __API_AVAILABLE(macos(10.16), ios(14.0), tvos(14.0), watchos(7.0)); 68 + 63 69 #define POSIX_SPAWN_MACPOLICYINFO_WITHSIZE 1 64 70 int posix_spawnattr_getmacpolicyinfo_np(const posix_spawnattr_t * __restrict, const char *, void **, size_t *) __API_AVAILABLE(macos(10.9), ios(7.0)); 65 71 int posix_spawnattr_setmacpolicyinfo_np(posix_spawnattr_t * __restrict, const char *, void *, size_t) __API_AVAILABLE(macos(10.9), ios(7.0)); ··· 84 90 int posix_spawnattr_set_groups_np(const posix_spawnattr_t * __restrict, int, gid_t * __restrict, uid_t) __API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0), watchos(6.0)); 85 91 int posix_spawnattr_set_login_np(const posix_spawnattr_t * __restrict, const char * __restrict) __API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0), watchos(6.0)); 86 92 93 + int posix_spawnattr_set_subsystem_root_path_np(posix_spawnattr_t *attr, char *path); __API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0), watchos(7.0)); 94 + 95 + int posix_spawnattr_set_platform_np(posix_spawnattr_t *attr, int platform, uint32_t flags); __API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0), watchos(7.0)); 96 + 97 + int posix_spawnattr_disable_ptr_auth_a_keys_np(posix_spawnattr_t *attr, uint32_t flags); __API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0), watchos(7.0)); 98 + 87 99 int posix_spawn_file_actions_add_fileportdup2_np(posix_spawn_file_actions_t * __restrict, mach_port_t, int) __API_AVAILABLE(macos(10.15), ios(13.0), tvos(13.0), watchos(6.0)); 100 + 101 + __END_DECLS 88 102 89 103 #endif /* !defined _SPAWN_PRIVATE_H_*/
+31 -1
src/kernel/libsyscall/wrappers/stackshot.c
··· 53 53 s_config->sc_delta_timestamp = 0; 54 54 s_config->sc_buffer = 0; 55 55 s_config->sc_size = 0; 56 + s_config->sc_pagetable_mask = 0; 56 57 57 58 return s_config; 58 59 } ··· 91 92 * 0 on success 92 93 */ 93 94 int 94 - stackshot_config_set_flags(stackshot_config_t *stackshot_config, uint32_t flags) 95 + stackshot_config_set_flags(stackshot_config_t *stackshot_config, uint64_t flags) 95 96 { 96 97 stackshot_config_t *s_config; 97 98 ··· 232 233 } 233 234 234 235 stackshot_config->sc_delta_timestamp = delta_timestamp; 236 + 237 + return 0; 238 + } 239 + 240 + /* 241 + * stackshot_config_set_pagetable_mask: set the level mask for pagetable dumping 242 + * 243 + * Each bit of the mask corresponds to a level in the paging structure. Bit 0 244 + * corresponds to Level 0, bit 1 to level 1, and so on. It is undefined what 245 + * happens when a bit is set that's higher than the current maximum level of 246 + * pagetable structures. 247 + * 248 + * When using this setter, you must also pass STACKSHOT_PAGE_TABLES as a flag 249 + * before invoking stackshot, otherwise this setter is a no-operation. 250 + * 251 + * Inputs: stackshot_config - a pointer to a stackshot_config_t 252 + * level_mask - the pagetable level mask, as described above 253 + * 254 + * Outputs: -1 if the passed stackshot config is NULL or there is existing stackshot buffer set. 255 + * 0 on success 256 + */ 257 + int 258 + stackshot_config_set_pagetable_mask(stackshot_config_t *stackshot_config, uint32_t pagetable_mask) 259 + { 260 + if (stackshot_config == NULL || (void *)stackshot_config->sc_buffer != NULL) { 261 + return -1; 262 + } 263 + 264 + stackshot_config->sc_pagetable_mask = pagetable_mask; 235 265 236 266 return 0; 237 267 }
-22
src/kernel/libsyscall/wrappers/string/strcmp.c
··· 46 46 } 47 47 return *(const unsigned char *)s1 - *(const unsigned char *)(s2 - 1); 48 48 } 49 - 50 - #ifdef DARLING 51 - __attribute__((visibility("hidden"))) 52 - int _darling_libkernel_strncmp(const char* str1, const char* str2, size_t max) { 53 - while (max > 0) { 54 - if (*str1 == '\0') { 55 - if (*str2 == '\0') 56 - return 0; 57 - return -1; 58 - } 59 - if (*str2 == '\0') 60 - return 1; 61 - if (*str1 != *str2) { 62 - return *str1 - *str2; 63 - } 64 - ++str1; 65 - ++str2; 66 - --max; 67 - } 68 - return 0; 69 - }; 70 - #endif
+5 -3
src/kernel/libsyscall/wrappers/string/strings.h
··· 64 64 void *memmove(void *, const void *, size_t); 65 65 void *memset(void *, int, size_t); 66 66 int strcmp(const char *, const char *); 67 + int strncmp(const char *, const char *, size_t); 67 68 char *strcpy(char *, const char *); 68 69 size_t strlen(const char *); 70 + size_t strnlen(const char *, size_t); 69 71 size_t strlcpy(char *, const char *, size_t); 72 + size_t strlcat(char *, const char *, size_t); 70 73 char *strsep(char **, const char *); 71 74 72 75 void bcopy(const void *, void *, size_t); 73 76 void bzero(void *, size_t); 77 + void __bzero(void *, size_t); 74 78 char *index(const char *, int); 75 79 char *strchr(const char *, int); 76 80 ··· 80 84 void *_libkernel_memset(void *, int, size_t); 81 85 int _libkernel_strcmp(const char *, const char *); 82 86 char *_libkernel_strcpy(char *, const char *); 87 + size_t _libkernel_strnlen(const char *, size_t); 83 88 size_t _libkernel_strlen(const char *); 84 89 size_t _libkernel_strlcpy(char *, const char *, size_t); 85 90 void _libkernel_bzero(void *, size_t); 86 91 char *_libkernel_strchr(const char *, int); 87 - #ifdef DARLING 88 - int _darling_libkernel_strncmp(const char *, const char *, size_t); 89 - #endif 90 92 91 93 #endif /* _STRINGS_H_ */
+54
src/kernel/libsyscall/wrappers/system-version-compat-support.c
··· 1 + /* 2 + * Copyright (c) 2020 Apple Inc. All rights reserved. 3 + * 4 + * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ 5 + * 6 + * This file contains Original Code and/or Modifications of Original Code 7 + * as defined in and that are subject to the Apple Public Source License 8 + * Version 2.0 (the 'License'). You may not use this file except in 9 + * compliance with the License. The rights granted to you under the License 10 + * may not be used to create, or enable the creation or redistribution of, 11 + * unlawful or unlicensed copies of an Apple operating system, or to 12 + * circumvent, violate, or enable the circumvention or violation of, any 13 + * terms of an Apple operating system software license agreement. 14 + * 15 + * Please obtain a copy of the License at 16 + * http://www.opensource.apple.com/apsl/ and read it before using this file. 17 + * 18 + * The Original Code and all software distributed under the License are 19 + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 20 + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 21 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 22 + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 23 + * Please see the License for the specific language governing rights and 24 + * limitations under the License. 25 + * 26 + * @APPLE_OSREFERENCE_LICENSE_HEADER_END@ 27 + */ 28 + #include <TargetConditionals.h> 29 + 30 + #if TARGET_OS_OSX && !defined(__i386__) 31 + 32 + /* 33 + * Support for the open compatibilty shim for macOS. These NULL 34 + * function pointers need to be built into libsyscall_static. They 35 + * are hooked up to the actual functions from libsyscall_dynamic 36 + * if/when they are used (generally only for older binaries where we 37 + * need to shim the version information). 38 + */ 39 + 40 + #include "system-version-compat-support.h" 41 + #include <stdbool.h> 42 + #include <sys/param.h> 43 + #include <sys/types.h> 44 + 45 + __attribute__((visibility("hidden"))) 46 + bool (*system_version_compat_check_path_suffix)(const char *orig_path) = NULL; 47 + system_version_compat_mode_t system_version_compat_mode = SYSTEM_VERSION_COMPAT_MODE_DISABLED; 48 + 49 + __attribute__((visibility("hidden"))) 50 + int (*system_version_compat_open_shim)(int opened_fd, int openat_fd, const char *orig_path, int oflag, mode_t mode, 51 + int (*close_syscall)(int), int (*open_syscall)(const char *, int, mode_t), 52 + int (*openat_syscall)(int, const char *, int, mode_t), 53 + int (*fcntl_syscall)(int, int, long)) = NULL; 54 + #endif /* TARGET_OS_OSX && && !defined(__i386__) */
+211
src/kernel/libsyscall/wrappers/system-version-compat.c
··· 1 + /* 2 + * Copyright (c) 2020 Apple Inc. All rights reserved. 3 + * 4 + * @APPLE_LICENSE_HEADER_START@ 5 + * 6 + * This file contains Original Code and/or Modifications of Original Code 7 + * as defined in and that are subject to the Apple Public Source License 8 + * Version 2.0 (the 'License'). You may not use this file except in 9 + * compliance with the License. Please obtain a copy of the License at 10 + * http://www.opensource.apple.com/apsl/ and read it before using this 11 + * file. 12 + * 13 + * The Original Code and all software distributed under the License are 14 + * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 + * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 + * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 + * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 + * Please see the License for the specific language governing rights and 19 + * limitations under the License. 20 + * 21 + * @APPLE_LICENSE_HEADER_END@ 22 + */ 23 + 24 + #include <TargetConditionals.h> 25 + 26 + #if TARGET_OS_OSX && !defined(__i386__) 27 + /* 28 + * Support for shimming calls to open() to the SystemVersion plist on macOS for older 29 + * binaries. This code is only built into libsyscall_dynamic. 30 + */ 31 + 32 + #include <fcntl.h> 33 + #include <stdbool.h> 34 + #include <strings.h> 35 + #include <sys/errno.h> 36 + #include <sys/param.h> 37 + #include <unistd.h> 38 + 39 + #include "system-version-compat-support.h" 40 + 41 + #define PLAT_PREFIX_IOS "iOS" 42 + #define PLAT_PREFIX_MACOS "" 43 + 44 + #define COMPAT_SUFFIX_MACOS "Compat" 45 + #define COMPAT_SUFFIX_IOS "" 46 + 47 + #define SYSTEM_VERSION_PLIST_FILENAME "SystemVersion.plist" 48 + #define SYSTEM_VERSION_PLIST_PATH ("/System/Library/CoreServices/" SYSTEM_VERSION_PLIST_FILENAME) 49 + 50 + #define SYSTEM_VERSION_COMPAT_PLIST_FILENAME(platform_prefix, compat_suffix) (platform_prefix "SystemVersion" compat_suffix ".plist") 51 + 52 + #define SYSTEM_VERSION_PLIST_FILENAMELEN strlen(SYSTEM_VERSION_PLIST_FILENAME) 53 + 54 + #define SYSTEM_VERSION_COMPAT_PLIST_FILENAMELEN(platform_prefix, compat_suffix) strlen(SYSTEM_VERSION_COMPAT_PLIST_FILENAME(platform_prefix, compat_suffix)) 55 + 56 + #define SYSTEM_VERSION_PLIST_PATHLEN strlen(SYSTEM_VERSION_PLIST_PATH) 57 + 58 + extern system_version_compat_mode_t system_version_compat_mode; 59 + 60 + /* 61 + * This routine determines whether the path specified matches the path of the SystemVersion plist file 62 + * we are shimming accesses to. If the file name suffix matches, it's expected we'll call into the 63 + * version_compat_open_shim() routine below which will do a full comparison on the expanded path. 64 + * 65 + * Parameters: orig_path The path suffix that was provided to the open{at} call. 66 + * 67 + * Returns: true if the path suffix matches the SystemVersion plist path we're shimming 68 + * false otherwise 69 + */ 70 + __attribute__((visibility("hidden"))) 71 + bool 72 + _system_version_compat_check_path_suffix(const char *orig_path) 73 + { 74 + size_t path_str_len = strnlen(orig_path, MAXPATHLEN); 75 + /* 76 + * If the length of the filename we're opening is shorter than 77 + * SYSTEM_VERSION_PLIST_FILENAME, bail. 78 + */ 79 + if (path_str_len < SYSTEM_VERSION_PLIST_FILENAMELEN) { 80 + return false; 81 + } 82 + 83 + /* If the path we're accessing doesn't end in SYSTEM_VERSION_PLIST_FILENAME, bail. */ 84 + if (strncmp(&orig_path[path_str_len - SYSTEM_VERSION_PLIST_FILENAMELEN], SYSTEM_VERSION_PLIST_FILENAME, 85 + SYSTEM_VERSION_PLIST_FILENAMELEN) != 0) { 86 + return false; 87 + } 88 + 89 + /* If modifying the path specified would exceed MAXPATHLEN, bail */ 90 + if (path_str_len == MAXPATHLEN) { 91 + return false; 92 + } 93 + 94 + size_t compat_len = (system_version_compat_mode == SYSTEM_VERSION_COMPAT_MODE_IOS) ? SYSTEM_VERSION_COMPAT_PLIST_FILENAMELEN(PLAT_PREFIX_IOS, COMPAT_SUFFIX_IOS) : SYSTEM_VERSION_COMPAT_PLIST_FILENAMELEN(PLAT_PREFIX_MACOS, COMPAT_SUFFIX_MACOS); 95 + if ((compat_len - SYSTEM_VERSION_PLIST_FILENAMELEN) > (MAXPATHLEN - path_str_len - 1)) { 96 + return false; 97 + } 98 + 99 + /* Indicate that we should */ 100 + return true; 101 + } 102 + 103 + /* 104 + * This routine determines whether we are trying to open the SystemVersion plist at SYSTEM_VERSION_PLIST_PATH. 105 + * It's only used on targets that have the compatibility shim enabled (mainly older binaries). 106 + * 107 + * Note that this routine should * ABSOLUTELY NOT * be used as a general shim for accesses at all paths. We replace 108 + * what the developer generally expected to be one system call with multiple additional system calls. We're ok 109 + * with doing this here because we only do it for calls to open against files that match this very specific pattern 110 + * (named SystemVersion.plist), but doing so for all calls to open could result in various issues. Specifically it's 111 + * difficult to ensure the same cancellation semantics (around EINTR etc) that developers generally expect when replacing 112 + * a single system call with multiple. 113 + * 114 + * This routine should return with the same semantics as the general open system calls that it is shimming - specifically 115 + * it should leave errno and the return value matching what developers expect. 116 + * 117 + * It's expected that _version_compat_check_path_suffix() above was called prior to this call and returned true. 118 + * 119 + * We take the close, open and fcntl syscalls as parameters to make sure the variant we call matches the original call 120 + * to open{at}. 121 + * 122 + * Parameters: opened_fd The file descriptor that was opened in the original open{at} call 123 + * openat_fd The file descriptor passed to the original openat call (only used when use_openat is true) 124 + * orig_path The original path suffix passed to open{at} 125 + * oflag The original oflag passed to open{at} 126 + * mode The original mode passed to open{at} 127 + * close_syscall The appropriate syscall to use for closing file descriptors 128 + * open_syscall The syscall that should be used for a new call to open. 129 + * fctnl_syscall The appopriate syscall to use for fcntl. 130 + * 131 + * Returns: The original file descriptor if the open{at} access wasn't to SYSTEM_VERSION_PLIST_PATH 132 + * A new file descriptor (with the original closed) if the expanded path matches SYSTEM_VERSION_PLIST_PATH 133 + * The original file descriptor if the full path suffix does not match SYSTEM_VERSION_PLIST_PATH 134 + * -1 (with errno set to EINTR) if the new open or fcntl calls received EINTR (with all new fds closed) 135 + */ 136 + __attribute__((visibility("hidden"))) 137 + int 138 + _system_version_compat_open_shim(int opened_fd, int openat_fd, const char *orig_path, int oflag, mode_t mode, 139 + int (*close_syscall)(int), int (*open_syscall)(const char *, int, mode_t), 140 + int (*openat_syscall)(int, const char *, int, mode_t), 141 + int (*fcntl_syscall)(int, int, long)) 142 + { 143 + /* stash the errno from the original open{at} call */ 144 + int stashed_errno = errno; 145 + char new_path[MAXPATHLEN]; 146 + size_t path_str_len = strnlen(orig_path, sizeof(new_path)); 147 + 148 + /* Resolve the full path of the file we've opened */ 149 + if (fcntl_syscall(opened_fd, F_GETPATH, new_path)) { 150 + if (errno == EINTR) { 151 + /* If we got EINTR, we close the file that was opened and return -1 & EINTR */ 152 + close_syscall(opened_fd); 153 + errno = EINTR; 154 + return -1; 155 + } else { 156 + /* otherwise we return the original file descriptor that was requested */ 157 + errno = stashed_errno; 158 + return opened_fd; 159 + } 160 + } 161 + 162 + /* Check to see whether the path matches SYSTEM_VERSION_PLIST_PATH */ 163 + size_t newpathlen = strnlen(new_path, MAXPATHLEN); 164 + if (newpathlen != SYSTEM_VERSION_PLIST_PATHLEN) { 165 + errno = stashed_errno; 166 + return opened_fd; 167 + } 168 + 169 + if (strncmp(new_path, SYSTEM_VERSION_PLIST_PATH, SYSTEM_VERSION_PLIST_PATHLEN) != 0) { 170 + errno = stashed_errno; 171 + return opened_fd; 172 + } 173 + 174 + new_path[0] = '\0'; 175 + 176 + /* 177 + * It looks like we're trying to access the SystemVersion plist. Let's try to open 178 + * the compatibility plist and return that instead if it exists. 179 + */ 180 + size_t prefix_str_len = path_str_len - SYSTEM_VERSION_PLIST_FILENAMELEN; 181 + strlcpy(new_path, orig_path, (prefix_str_len + 1)); 182 + if (system_version_compat_mode == SYSTEM_VERSION_COMPAT_MODE_IOS) { 183 + strlcat(new_path, SYSTEM_VERSION_COMPAT_PLIST_FILENAME(PLAT_PREFIX_IOS, COMPAT_SUFFIX_IOS), MAXPATHLEN); 184 + } else { 185 + strlcat(new_path, SYSTEM_VERSION_COMPAT_PLIST_FILENAME(PLAT_PREFIX_MACOS, COMPAT_SUFFIX_MACOS), MAXPATHLEN); 186 + } 187 + 188 + int new_fd = -1; 189 + if (openat_syscall != NULL) { 190 + new_fd = openat_syscall(openat_fd, new_path, oflag, mode); 191 + } else { 192 + new_fd = open_syscall(new_path, oflag, mode); 193 + } 194 + if ((new_fd == -1) && (errno == ENOENT)) { 195 + /* The file doesn't exist, so return the original fd and errno. */ 196 + errno = stashed_errno; 197 + return opened_fd; 198 + } 199 + 200 + /* 201 + * Otherwise we close the first file we opened and populate errno 202 + * with errno from the call to open{at}. (Note this covers the EINTR 203 + * case and other failures). 204 + */ 205 + stashed_errno = errno; 206 + close_syscall(opened_fd); 207 + errno = stashed_errno; 208 + return new_fd; 209 + } 210 + 211 + #endif /* TARGET_OS_OSX && !defined(__i386__) */
+5 -3
src/kernel/libsyscall/wrappers/unix03/mmap.c
··· 46 46 * Preemptory failures: 47 47 * 48 48 * o off is not a multiple of the page size 49 + * [ This is enforced by the kernel with MAP_UNIX03 ] 49 50 * o flags does not contain either MAP_PRIVATE or MAP_SHARED 50 51 * o len is zero 52 + * 53 + * Now enforced by the kernel when the MAP_UNIX03 flag is provided. 51 54 */ 52 55 extern void cerror_nocancel(int); 53 - if ((off & PAGE_MASK) || 54 - (((flags & MAP_PRIVATE) != MAP_PRIVATE) && 56 + if ((((flags & MAP_PRIVATE) != MAP_PRIVATE) && 55 57 ((flags & MAP_SHARED) != MAP_SHARED)) || 56 58 (len == 0)) { 57 59 cerror_nocancel(EINVAL); 58 60 return MAP_FAILED; 59 61 } 60 62 61 - void *ptr = __mmap(addr, len, prot, flags, fildes, off); 63 + void *ptr = __mmap(addr, len, prot, flags | MAP_UNIX03, fildes, off); 62 64 63 65 if (__syscall_logger) { 64 66 int stackLoggingFlags = stack_logging_type_vm_allocate;
-64
src/kernel/libsyscall/wrappers/varargs_wrappers.S
··· 54 54 POP_FRAME 55 55 ARM64_STACK_EPILOG 56 56 57 - /* 58 - * int open(const char *name, int oflag, ...); 59 - * int __open(const char *name, int oflag, int mode, int value); 60 - */ 61 - MI_ENTRY_POINT(_open) 62 - ARM64_STACK_PROLOG 63 - PUSH_FRAME 64 - #if __LP64__ 65 - ldr x2, [fp, #16] 66 - #else 67 - ldr w2, [fp, #16] 68 - #endif 69 - MI_CALL_EXTERNAL(___open) 70 - POP_FRAME 71 - ARM64_STACK_EPILOG 72 - 73 - /* 74 - * int open_nocancel(const char *name, int oflag, ...); 75 - * int __open_nocancel(const char *name, int oflag, int mode); 76 - */ 77 - MI_ENTRY_POINT(_open$NOCANCEL) 78 - ARM64_STACK_PROLOG 79 - PUSH_FRAME 80 - #if __LP64__ 81 - ldr x2, [fp, #16] 82 - #else 83 - ldr w2, [fp, #16] 84 - #endif 85 - MI_CALL_EXTERNAL(___open_nocancel) 86 - POP_FRAME 87 - ARM64_STACK_EPILOG 88 - 89 - /* 90 - * int openat(int fd,const char *name, int oflag, ...); 91 - * int __openat(int fd, const char *name, int oflag, int mode, int value); 92 - */ 93 - MI_ENTRY_POINT(_openat) 94 - ARM64_STACK_PROLOG 95 - PUSH_FRAME 96 - #if __LP64__ 97 - ldr x3, [fp, #16] 98 - #else 99 - ldr w3, [fp, #16] 100 - #endif 101 - MI_CALL_EXTERNAL(___openat) 102 - POP_FRAME 103 - ARM64_STACK_EPILOG 104 - 105 - /* 106 - * int openat_nocancel(int fd, const char *name, int oflag, ...); 107 - * int __openat_nocancel(int fd, const char *name, int oflag, int mode); 108 - */ 109 - MI_ENTRY_POINT(_openat$NOCANCEL) 110 - ARM64_STACK_PROLOG 111 - PUSH_FRAME 112 - #if __LP64__ 113 - ldr x3, [fp, #16] 114 - #else 115 - ldr w3, [fp, #16] 116 - #endif 117 - MI_CALL_EXTERNAL(___openat_nocancel) 118 - POP_FRAME 119 - ARM64_STACK_EPILOG 120 - 121 57 /* 122 58 * int shm_open(const char *, int, ...); 123 59 * int __shm_open(const char*, int oflag, int mode);
+24
src/kernel/libsyscall/wrappers/work_interval.c
··· 79 79 } 80 80 81 81 int 82 + work_interval_get_flags_from_port(mach_port_t port, uint32_t *flags) 83 + { 84 + if (!MACH_PORT_VALID(port) || flags == NULL) { 85 + errno = EINVAL; 86 + return -1; 87 + } 88 + 89 + struct work_interval_create_params create_params = { 0 }; 90 + 91 + int ret = __work_interval_ctl(WORK_INTERVAL_OPERATION_GET_FLAGS, port, 92 + &create_params, sizeof(create_params)); 93 + if (ret == -1) { 94 + return ret; 95 + } 96 + 97 + *flags = create_params.wicp_create_flags; 98 + return 0; 99 + } 100 + 101 + int 82 102 work_interval_notify(work_interval_t interval_handle, uint64_t start, 83 103 uint64_t finish, uint64_t deadline, uint64_t next_start, 84 104 uint32_t notify_flags) ··· 96 116 if (interval_handle == NULL) { 97 117 errno = EINVAL; 98 118 return -1; 119 + } 120 + 121 + if (interval_handle->create_flags & WORK_INTERVAL_FLAG_IGNORED) { 122 + return 0; 99 123 } 100 124 101 125 notification.create_flags = interval_handle->create_flags;
src/kernel/libsyscall/xcodescripts/compile-syscalls.pl
+25 -3
src/kernel/libsyscall/xcodescripts/create-syscalls.pl
··· 133 133 link linkat lseek lstat 134 134 msgrcv msgsnd msync 135 135 open openat 136 - pathconf peeloff poll posix_spawn pread pselect pwrite 136 + pathconf peeloff poll posix_spawn pread preadv pselect pwrite pwritev 137 137 read readv recvfrom recvmsg rename renameat 138 138 rename_ext 139 139 __semwait_signal __sigwait ··· 165 165 die "$MyName: $file: $!\n" unless defined($f); 166 166 my $line = 0; 167 167 my $skip = 0; 168 + my $allow_missing = 0; 168 169 while(<$f>) { 169 170 $line++; 170 171 if(/^#\s*endif/) { 171 172 $skip = 0; 173 + $allow_missing = 0; 172 174 next; 173 175 } 174 176 if(/^#\s*else/) { 175 177 $skip = -$skip; 178 + $allow_missing = 0; 176 179 next; 177 180 } 178 181 chomp; 182 + if(/^#\s*ifndef\s+(RC_HIDE\S+)$/) { 183 + $skip = 1; 184 + $allow_missing = 1; 185 + } 179 186 if(/^#\s*if\s+(\S+)$/) { 180 187 $skip = ($1 eq 'COMPAT_GETFSSTAT') ? -1 : 1; 181 188 next; ··· 229 236 aliases => {}, 230 237 mismatch_args => \%mismatch_args, # Arguments that might need to be zero/sign-extended 231 238 except => [], 239 + allow_missing => $allow_missing, 232 240 }; 233 241 } 234 242 } ··· 324 332 ########################################################################## 325 333 sub writeStubForSymbol { 326 334 my ($f, $symbol) = @_; 327 - 335 + 328 336 my @conditions; 329 337 my $has_arm64 = 0; 330 338 for my $subarch (@Architectures) { ··· 343 351 344 352 print $f "#define __SYSCALL_32BIT_ARG_BYTES $$symbol{bytes}\n"; 345 353 print $f "#include \"SYS.h\"\n\n"; 354 + if ($$symbol{allow_missing}) { 355 + printf $f "#ifdef SYS_%s\n", $$symbol{syscall}; 356 + } 346 357 347 358 if (scalar(@conditions)) { 348 359 printf $f "#ifndef SYS_%s\n", $$symbol{syscall}; ··· 379 390 # override it we need to honour that. 380 391 } 381 392 393 + if ($$symbol{allow_missing}) { 394 + printf $f "#endif\n"; 395 + } 396 + 382 397 if($has_arm64) { 383 398 printf $f "#endif\n\n"; 384 399 } ··· 386 401 387 402 sub writeAliasesForSymbol { 388 403 my ($f, $symbol) = @_; 389 - 404 + 405 + if ($$symbol{allow_missing}) { 406 + printf $f "#ifdef SYS_%s\n", $$symbol{syscall}; 407 + } 408 + 390 409 foreach my $subarch (@Architectures) { 391 410 (my $arch = $subarch) =~ s/arm(v.*)/arm/; 392 411 $arch =~ s/x86_64(.*)/x86_64/; ··· 402 421 printf $f "\t.set\t$alias_sym, $sym\n"; 403 422 } 404 423 printf $f "#endif\n\n"; 424 + } 425 + if ($$symbol{allow_missing}) { 426 + printf $f "#endif\n"; 405 427 } 406 428 } 407 429
src/kernel/libsyscall/xcodescripts/filter_mig.awk
+20 -25
src/kernel/libsyscall/xcodescripts/mach_install_mig.sh
··· 33 33 MIG=`xcrun -sdk "$SDKROOT" -find mig` 34 34 MIGCC=`xcrun -sdk "$SDKROOT" -find cc` 35 35 export MIGCC 36 - MIG_DEFINES="-DLIBSYSCALL_INTERFACE" 36 + [ -n "$DRIVERKITROOT" ] && MIG_DRIVERKIT_DEFINES="-DDRIVERKIT" 37 + MIG_DEFINES="-DLIBSYSCALL_INTERFACE $MIG_DRIVERKIT_DEFINES" 38 + MIG_PRIVATE_DEFINES="-DPRIVATE -D_OPEN_SOURCE_ -D__OPEN_SOURCE__" 37 39 MIG_HEADER_OBJ="$OBJROOT/mig_hdr/include/mach" 38 40 MIG_HEADER_DST="$BUILT_PRODUCTS_DIR/mig_hdr/include/mach" 39 41 MIG_PRIVATE_HEADER_DST="$BUILT_PRODUCTS_DIR/mig_hdr/local/include/mach" ··· 41 43 MACH_HEADER_DST="$BUILT_PRODUCTS_DIR/mig_hdr/include/mach" 42 44 MACH_PRIVATE_HEADER_DST="$BUILT_PRODUCTS_DIR/mig_hdr/local/include/mach" 43 45 MIG_INTERNAL_HEADER_DST="$BUILT_PRODUCTS_DIR/internal_hdr/include/mach" 44 - MIG_INCFLAGS="-I${SDKROOT}/${SDK_INSTALL_HEADERS_ROOT}/usr/include -I${SDKROOT}/${SDK_INSTALL_HEADERS_ROOT}/usr/local/include" 45 - MIG_PRIVATE_DEFS_INCFLAGS="-I${SDKROOT}/${SDK_INSTALL_HEADERS_ROOT}/System/Library/Frameworks/System.framework/PrivateHeaders" 46 + MIG_INCFLAGS="-I${SRCROOT}/../osfmk" 46 47 SRC="$SRCROOT/mach" 47 48 FILTER_MIG="$SRCROOT/xcodescripts/filter_mig.awk" 48 49 49 - # from old Libsystem makefiles 50 - MACHINE_ARCH=`echo $ARCHS | cut -d' ' -f 1` 51 - if [[ ( "$MACHINE_ARCH" =~ ^"arm64" || "$MACHINE_ARCH" =~ ^"x86_64" ) && `echo $ARCHS | wc -w` -gt 1 ]] 52 - then 53 - # MACHINE_ARCH needs to be a 32-bit arch to generate vm_map_internal.h correctly. 54 - MACHINE_ARCH=`echo $ARCHS | cut -d' ' -f 2` 55 - if [[ ( "$MACHINE_ARCH" =~ ^"arm64" || "$MACHINE_ARCH" =~ ^"x86_64" ) && `echo $ARCHS | wc -w` -gt 2 ]] 56 - then 57 - # MACHINE_ARCH needs to be a 32-bit arch to generate vm_map_internal.h correctly. 58 - MACHINE_ARCH=`echo $ARCHS | cut -d' ' -f 3` 59 - fi 60 - fi 61 50 # MACHINE_ARCH *really* needs to be a 32-bit arch to generate vm_map_internal.h correctly, even if there are no 32-bit targets. 62 - if [[ ( "$MACHINE_ARCH" =~ ^"arm64" ) ]] 63 - then 64 - MACHINE_ARCH="armv7" 65 - fi 66 - if [[ ( "$MACHINE_ARCH" =~ ^"x86_64" ) ]] 67 - then 68 - MACHINE_ARCH="i386" 69 - fi 51 + # thread_state_t *really* needs to pick up arm64 over intel because it has a larger struct type. 52 + case "$ARCHS" in 53 + *arm64*) 54 + MACHINE_ARCH=armv7 55 + ;; 56 + *x86_64*) 57 + MACHINE_ARCH=i386 58 + ;; 59 + *) 60 + MACHINE_ARCH=`echo $ARCHS | cut -d' ' -f 1` 61 + ;; 62 + esac 70 63 71 64 ASROOT="" 72 65 if [ `whoami` = "root" ]; then ··· 80 73 host_priv.defs 81 74 host_security.defs 82 75 lock_set.defs 76 + mach_eventlink.defs 83 77 mach_host.defs 84 78 mach_port.defs 85 79 mach_voucher.defs ··· 103 97 104 98 MIGS_INTERNAL="mach_port.defs 105 99 mach_vm.defs 100 + task.defs 106 101 thread_act.defs 107 102 vm_map.defs" 108 103 ··· 168 163 169 164 for mig in $MIGS_PRIVATE $MIGS_DUAL_PUBLIC_PRIVATE; do 170 165 MIG_NAME=`basename $mig .defs` 171 - $MIG -novouchers -arch $MACHINE_ARCH -cc $MIGCC -header "$MIG_PRIVATE_HEADER_DST/$MIG_NAME.h" $MIG_DEFINES $MIG_INCFLAGS $MIG_PRIVATE_DEFS_INCFLAGS $SRC/$mig 166 + $MIG -novouchers -arch $MACHINE_ARCH -cc $MIGCC -header "$MIG_PRIVATE_HEADER_DST/$MIG_NAME.h" $MIG_DEFINES $MIG_PRIVATE_DEFINES $MIG_INCFLAGS $SRC/$mig 172 167 if [ ! -e "$MIG_HEADER_DST/$MIG_NAME.h" ]; then 173 168 echo "#error $MIG_NAME.h unsupported." > "$MIG_HEADER_DST/$MIG_NAME.h" 174 169 fi ··· 185 180 MIG_NAME=`basename $mig .defs` 186 181 $MIG -novouchers -arch $MACHINE_ARCH -cc $MIGCC -header "$MIG_INTERNAL_HEADER_DST/${MIG_NAME}_internal.h" $MIG_INCFLAGS $SRC/$mig 187 182 done 188 - 183 +
-851
src/kernel/libsyscall/xcodescripts/syscalls.master
··· 1 - ; derived from: FreeBSD @(#)syscalls.master 8.2 (Berkeley) 1/13/94 2 - ; 3 - ; System call name/number master file. 4 - ; This is file processed by .../xnu/bsd/kern/makesyscalls.sh and creates: 5 - ; .../xnu/bsd/kern/init_sysent.c 6 - ; .../xnu/bsd/kern/syscalls.c 7 - ; .../xnu/bsd/sys/syscall.h 8 - ; .../xnu/bsd/sys/sysproto.h 9 - ; .../xnu/bsd/security/audit_syscalls.c 10 - 11 - ; Columns -> | Number Audit Files | { Name and Args } | { Comments } 12 - ; Number: system call number, must be in order 13 - ; Audit: the audit event associated with the system call 14 - ; A value of AUE_NULL means no auditing, but it also means that 15 - ; there is no audit event for the call at this time. For the 16 - ; case where the event exists, but we don't want auditing, the 17 - ; event should be #defined to AUE_NULL in audit_kevents.h. 18 - ; Files: with files to generate - "ALL" or any combo of: 19 - ; "T" for syscall table (in init_sysent.c) 20 - ; "N" for syscall names (in syscalls.c) 21 - ; "H" for syscall headers (in syscall.h) 22 - ; "P" for syscall prototypes (in sysproto.h) 23 - ; Name and Args: function prototype, optionally followed by 24 - ; NO_SYSCALL_STUB (which mean no system call stub will 25 - ; be generated in libSystem) and ending with a semicolon. 26 - ; (Note: functions prefixed by double-underbar are 27 - ; automatically given the NO_SYSCALL_STUB attribute.) 28 - ; Comments: additional comments about the sys call copied to output files 29 - 30 - ; #ifdef's, #include's, #if's etc. are copied to all output files. 31 - ; N.B.: makesyscalls.sh and createsyscalls.pl must be updated to account 32 - ; for any new argument types. 33 - 34 - #include <sys/appleapiopts.h> 35 - #include <sys/param.h> 36 - #include <sys/systm.h> 37 - #include <sys/types.h> 38 - #include <sys/sysent.h> 39 - #include <sys/sysproto.h> 40 - 41 - 0 AUE_NULL ALL { int nosys(void); } { indirect syscall } 42 - 1 AUE_EXIT ALL { void exit(int rval) NO_SYSCALL_STUB; } 43 - 2 AUE_FORK ALL { int fork(void) NO_SYSCALL_STUB; } 44 - 3 AUE_NULL ALL { user_ssize_t read(int fd, user_addr_t cbuf, user_size_t nbyte); } 45 - 4 AUE_NULL ALL { user_ssize_t write(int fd, user_addr_t cbuf, user_size_t nbyte); } 46 - 5 AUE_OPEN_RWTC ALL { int open(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; } 47 - 6 AUE_CLOSE ALL { int close(int fd); } 48 - 7 AUE_WAIT4 ALL { int wait4(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; } 49 - 8 AUE_NULL ALL { int enosys(void); } { old creat } 50 - 9 AUE_LINK ALL { int link(user_addr_t path, user_addr_t link); } 51 - 10 AUE_UNLINK ALL { int unlink(user_addr_t path) NO_SYSCALL_STUB; } 52 - 11 AUE_NULL ALL { int enosys(void); } { old execv } 53 - 12 AUE_CHDIR ALL { int chdir(user_addr_t path); } 54 - 13 AUE_FCHDIR ALL { int fchdir(int fd); } 55 - 14 AUE_MKNOD ALL { int mknod(user_addr_t path, int mode, int dev); } 56 - 15 AUE_CHMOD ALL { int chmod(user_addr_t path, int mode) NO_SYSCALL_STUB; } 57 - 16 AUE_CHOWN ALL { int chown(user_addr_t path, int uid, int gid); } 58 - 17 AUE_NULL ALL { int enosys(void); } { old break } 59 - 18 AUE_GETFSSTAT ALL { int getfsstat(user_addr_t buf, int bufsize, int flags); } 60 - 19 AUE_NULL ALL { int enosys(void); } { old lseek } 61 - 20 AUE_GETPID ALL { int getpid(void); } 62 - 21 AUE_NULL ALL { int enosys(void); } { old mount } 63 - 22 AUE_NULL ALL { int enosys(void); } { old umount } 64 - 23 AUE_SETUID ALL { int setuid(uid_t uid); } 65 - 24 AUE_GETUID ALL { int getuid(void); } 66 - 25 AUE_GETEUID ALL { int geteuid(void); } 67 - 26 AUE_PTRACE ALL { int ptrace(int req, pid_t pid, caddr_t addr, int data); } 68 - #if SOCKETS 69 - 27 AUE_RECVMSG ALL { int recvmsg(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; } 70 - 28 AUE_SENDMSG ALL { int sendmsg(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; } 71 - 29 AUE_RECVFROM ALL { int recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; } 72 - 30 AUE_ACCEPT ALL { int accept(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; } 73 - 31 AUE_GETPEERNAME ALL { int getpeername(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; } 74 - 32 AUE_GETSOCKNAME ALL { int getsockname(int fdes, caddr_t asa, socklen_t *alen) NO_SYSCALL_STUB; } 75 - #else 76 - 27 AUE_NULL ALL { int nosys(void); } 77 - 28 AUE_NULL ALL { int nosys(void); } 78 - 29 AUE_NULL ALL { int nosys(void); } 79 - 30 AUE_NULL ALL { int nosys(void); } 80 - 31 AUE_NULL ALL { int nosys(void); } 81 - 32 AUE_NULL ALL { int nosys(void); } 82 - #endif /* SOCKETS */ 83 - 33 AUE_ACCESS ALL { int access(user_addr_t path, int flags); } 84 - 34 AUE_CHFLAGS ALL { int chflags(char *path, int flags); } 85 - 35 AUE_FCHFLAGS ALL { int fchflags(int fd, int flags); } 86 - 36 AUE_SYNC ALL { int sync(void); } 87 - 37 AUE_KILL ALL { int kill(int pid, int signum, int posix) NO_SYSCALL_STUB; } 88 - 38 AUE_NULL ALL { int nosys(void); } { old stat } 89 - 39 AUE_GETPPID ALL { int getppid(void); } 90 - 40 AUE_NULL ALL { int nosys(void); } { old lstat } 91 - 41 AUE_DUP ALL { int dup(u_int fd); } 92 - 42 AUE_PIPE ALL { int pipe(void); } 93 - 43 AUE_GETEGID ALL { int getegid(void); } 94 - 44 AUE_NULL ALL { int nosys(void); } { old profil } 95 - 45 AUE_NULL ALL { int nosys(void); } { old ktrace } 96 - 46 AUE_SIGACTION ALL { int sigaction(int signum, struct __sigaction *nsa, struct sigaction *osa) NO_SYSCALL_STUB; } 97 - 47 AUE_GETGID ALL { int getgid(void); } 98 - 48 AUE_SIGPROCMASK ALL { int sigprocmask(int how, user_addr_t mask, user_addr_t omask); } 99 - 49 AUE_GETLOGIN ALL { int getlogin(char *namebuf, u_int namelen) NO_SYSCALL_STUB; } 100 - 50 AUE_SETLOGIN ALL { int setlogin(char *namebuf) NO_SYSCALL_STUB; } 101 - 51 AUE_ACCT ALL { int acct(char *path); } 102 - 52 AUE_SIGPENDING ALL { int sigpending(struct sigvec *osv); } 103 - 53 AUE_SIGALTSTACK ALL { int sigaltstack(struct sigaltstack *nss, struct sigaltstack *oss) NO_SYSCALL_STUB ; } 104 - 54 AUE_IOCTL ALL { int ioctl(int fd, u_long com, caddr_t data) NO_SYSCALL_STUB; } 105 - 55 AUE_REBOOT ALL { int reboot(int opt, char *msg) NO_SYSCALL_STUB; } 106 - 56 AUE_REVOKE ALL { int revoke(char *path); } 107 - 57 AUE_SYMLINK ALL { int symlink(char *path, char *link); } 108 - 58 AUE_READLINK ALL { int readlink(char *path, char *buf, int count); } 109 - 59 AUE_EXECVE ALL { int execve(char *fname, char **argp, char **envp); } 110 - 60 AUE_UMASK ALL { int umask(int newmask); } 111 - 61 AUE_CHROOT ALL { int chroot(user_addr_t path); } 112 - 62 AUE_NULL ALL { int nosys(void); } { old fstat } 113 - 63 AUE_NULL ALL { int nosys(void); } { used internally and reserved } 114 - 64 AUE_NULL ALL { int nosys(void); } { old getpagesize } 115 - 65 AUE_MSYNC ALL { int msync(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; } 116 - 66 AUE_VFORK ALL { int vfork(void); } 117 - 67 AUE_NULL ALL { int nosys(void); } { old vread } 118 - 68 AUE_NULL ALL { int nosys(void); } { old vwrite } 119 - 69 AUE_NULL ALL { int nosys(void); } { old sbrk } 120 - 70 AUE_NULL ALL { int nosys(void); } { old sstk } 121 - 71 AUE_NULL ALL { int nosys(void); } { old mmap } 122 - 72 AUE_NULL ALL { int nosys(void); } { old vadvise } 123 - 73 AUE_MUNMAP ALL { int munmap(caddr_t addr, size_t len) NO_SYSCALL_STUB; } 124 - 74 AUE_MPROTECT ALL { int mprotect(caddr_t addr, size_t len, int prot) NO_SYSCALL_STUB; } 125 - 75 AUE_MADVISE ALL { int madvise(caddr_t addr, size_t len, int behav); } 126 - 76 AUE_NULL ALL { int nosys(void); } { old vhangup } 127 - 77 AUE_NULL ALL { int nosys(void); } { old vlimit } 128 - 78 AUE_MINCORE ALL { int mincore(user_addr_t addr, user_size_t len, user_addr_t vec); } 129 - 79 AUE_GETGROUPS ALL { int getgroups(u_int gidsetsize, gid_t *gidset); } 130 - 80 AUE_SETGROUPS ALL { int setgroups(u_int gidsetsize, gid_t *gidset); } 131 - 81 AUE_GETPGRP ALL { int getpgrp(void); } 132 - 82 AUE_SETPGRP ALL { int setpgid(int pid, int pgid); } 133 - 83 AUE_SETITIMER ALL { int setitimer(u_int which, struct itimerval *itv, struct itimerval *oitv); } 134 - 84 AUE_NULL ALL { int nosys(void); } { old wait } 135 - 85 AUE_SWAPON ALL { int swapon(void); } 136 - 86 AUE_GETITIMER ALL { int getitimer(u_int which, struct itimerval *itv); } 137 - 87 AUE_NULL ALL { int nosys(void); } { old gethostname } 138 - 88 AUE_NULL ALL { int nosys(void); } { old sethostname } 139 - 89 AUE_GETDTABLESIZE ALL { int getdtablesize(void); } 140 - 90 AUE_DUP2 ALL { int dup2(u_int from, u_int to); } 141 - 91 AUE_NULL ALL { int nosys(void); } { old getdopt } 142 - 92 AUE_FCNTL ALL { int fcntl(int fd, int cmd, long arg) NO_SYSCALL_STUB; } 143 - 93 AUE_SELECT ALL { int select(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; } 144 - 94 AUE_NULL ALL { int nosys(void); } { old setdopt } 145 - 95 AUE_FSYNC ALL { int fsync(int fd); } 146 - 96 AUE_SETPRIORITY ALL { int setpriority(int which, id_t who, int prio) NO_SYSCALL_STUB; } 147 - #if SOCKETS 148 - 97 AUE_SOCKET ALL { int socket(int domain, int type, int protocol); } 149 - 98 AUE_CONNECT ALL { int connect(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; } 150 - #else 151 - 97 AUE_NULL ALL { int nosys(void); } 152 - 98 AUE_NULL ALL { int nosys(void); } 153 - #endif /* SOCKETS */ 154 - 99 AUE_NULL ALL { int nosys(void); } { old accept } 155 - 100 AUE_GETPRIORITY ALL { int getpriority(int which, id_t who); } 156 - 101 AUE_NULL ALL { int nosys(void); } { old send } 157 - 102 AUE_NULL ALL { int nosys(void); } { old recv } 158 - 103 AUE_NULL ALL { int nosys(void); } { old sigreturn } 159 - #if SOCKETS 160 - 104 AUE_BIND ALL { int bind(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; } 161 - 105 AUE_SETSOCKOPT ALL { int setsockopt(int s, int level, int name, caddr_t val, socklen_t valsize); } 162 - 106 AUE_LISTEN ALL { int listen(int s, int backlog) NO_SYSCALL_STUB; } 163 - #else 164 - 104 AUE_NULL ALL { int nosys(void); } 165 - 105 AUE_NULL ALL { int nosys(void); } 166 - 106 AUE_NULL ALL { int nosys(void); } 167 - #endif /* SOCKETS */ 168 - 107 AUE_NULL ALL { int nosys(void); } { old vtimes } 169 - 108 AUE_NULL ALL { int nosys(void); } { old sigvec } 170 - 109 AUE_NULL ALL { int nosys(void); } { old sigblock } 171 - 110 AUE_NULL ALL { int nosys(void); } { old sigsetmask } 172 - 111 AUE_NULL ALL { int sigsuspend(sigset_t mask) NO_SYSCALL_STUB; } 173 - 112 AUE_NULL ALL { int nosys(void); } { old sigstack } 174 - #if SOCKETS 175 - 113 AUE_NULL ALL { int nosys(void); } { old recvmsg } 176 - 114 AUE_NULL ALL { int nosys(void); } { old sendmsg } 177 - #else 178 - 113 AUE_NULL ALL { int nosys(void); } 179 - 114 AUE_NULL ALL { int nosys(void); } 180 - #endif /* SOCKETS */ 181 - 115 AUE_NULL ALL { int nosys(void); } { old vtrace } 182 - 116 AUE_GETTIMEOFDAY ALL { int gettimeofday(struct timeval *tp, struct timezone *tzp, uint64_t *mach_absolute_time) NO_SYSCALL_STUB; } 183 - 117 AUE_GETRUSAGE ALL { int getrusage(int who, struct rusage *rusage); } 184 - #if SOCKETS 185 - 118 AUE_GETSOCKOPT ALL { int getsockopt(int s, int level, int name, caddr_t val, socklen_t *avalsize); } 186 - #else 187 - 118 AUE_NULL ALL { int nosys(void); } 188 - #endif /* SOCKETS */ 189 - 119 AUE_NULL ALL { int nosys(void); } { old resuba } 190 - 120 AUE_READV ALL { user_ssize_t readv(int fd, struct iovec *iovp, u_int iovcnt); } 191 - 121 AUE_WRITEV ALL { user_ssize_t writev(int fd, struct iovec *iovp, u_int iovcnt); } 192 - 122 AUE_SETTIMEOFDAY ALL { int settimeofday(struct timeval *tv, struct timezone *tzp) NO_SYSCALL_STUB; } 193 - 123 AUE_FCHOWN ALL { int fchown(int fd, int uid, int gid); } 194 - 124 AUE_FCHMOD ALL { int fchmod(int fd, int mode) NO_SYSCALL_STUB; } 195 - 125 AUE_NULL ALL { int nosys(void); } { old recvfrom } 196 - 126 AUE_SETREUID ALL { int setreuid(uid_t ruid, uid_t euid) NO_SYSCALL_STUB; } 197 - 127 AUE_SETREGID ALL { int setregid(gid_t rgid, gid_t egid) NO_SYSCALL_STUB; } 198 - 128 AUE_RENAME ALL { int rename(char *from, char *to) NO_SYSCALL_STUB; } 199 - 129 AUE_NULL ALL { int nosys(void); } { old truncate } 200 - 130 AUE_NULL ALL { int nosys(void); } { old ftruncate } 201 - 131 AUE_FLOCK ALL { int flock(int fd, int how); } 202 - 132 AUE_MKFIFO ALL { int mkfifo(user_addr_t path, int mode); } 203 - #if SOCKETS 204 - 133 AUE_SENDTO ALL { int sendto(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; } 205 - 134 AUE_SHUTDOWN ALL { int shutdown(int s, int how); } 206 - 135 AUE_SOCKETPAIR ALL { int socketpair(int domain, int type, int protocol, int *rsv) NO_SYSCALL_STUB; } 207 - #else 208 - 133 AUE_NULL ALL { int nosys(void); } 209 - 134 AUE_NULL ALL { int nosys(void); } 210 - 135 AUE_NULL ALL { int nosys(void); } 211 - #endif /* SOCKETS */ 212 - 136 AUE_MKDIR ALL { int mkdir(user_addr_t path, int mode); } 213 - 137 AUE_RMDIR ALL { int rmdir(char *path) NO_SYSCALL_STUB; } 214 - 138 AUE_UTIMES ALL { int utimes(char *path, struct timeval *tptr); } 215 - 139 AUE_FUTIMES ALL { int futimes(int fd, struct timeval *tptr); } 216 - 140 AUE_ADJTIME ALL { int adjtime(struct timeval *delta, struct timeval *olddelta); } 217 - 141 AUE_NULL ALL { int nosys(void); } { old getpeername } 218 - 142 AUE_SYSCTL ALL { int gethostuuid(unsigned char *uuid_buf, const struct timespec *timeoutp) NO_SYSCALL_STUB; } 219 - 143 AUE_NULL ALL { int nosys(void); } { old sethostid } 220 - 144 AUE_NULL ALL { int nosys(void); } { old getrlimit } 221 - 145 AUE_NULL ALL { int nosys(void); } { old setrlimit } 222 - 146 AUE_NULL ALL { int nosys(void); } { old killpg } 223 - 147 AUE_SETSID ALL { int setsid(void); } 224 - 148 AUE_NULL ALL { int nosys(void); } { old setquota } 225 - 149 AUE_NULL ALL { int nosys(void); } { old qquota } 226 - 150 AUE_NULL ALL { int nosys(void); } { old getsockname } 227 - 151 AUE_GETPGID ALL { int getpgid(pid_t pid); } 228 - 152 AUE_SETPRIVEXEC ALL { int setprivexec(int flag); } 229 - 153 AUE_PREAD ALL { user_ssize_t pread(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); } 230 - 154 AUE_PWRITE ALL { user_ssize_t pwrite(int fd, user_addr_t buf, user_size_t nbyte, off_t offset); } 231 - 232 - #if NFSSERVER 233 - 155 AUE_NFS_SVC ALL { int nfssvc(int flag, caddr_t argp); } 234 - #else 235 - 155 AUE_NULL ALL { int nosys(void); } 236 - #endif 237 - 238 - 156 AUE_NULL ALL { int nosys(void); } { old getdirentries } 239 - 157 AUE_STATFS ALL { int statfs(char *path, struct statfs *buf); } 240 - 158 AUE_FSTATFS ALL { int fstatfs(int fd, struct statfs *buf); } 241 - 159 AUE_UNMOUNT ALL { int unmount(user_addr_t path, int flags); } 242 - 160 AUE_NULL ALL { int nosys(void); } { old async_daemon } 243 - 244 - #if NFSSERVER 245 - 161 AUE_NFS_GETFH ALL { int getfh(char *fname, fhandle_t *fhp); } 246 - #else 247 - 161 AUE_NULL ALL { int nosys(void); } 248 - #endif 249 - 250 - 162 AUE_NULL ALL { int nosys(void); } { old getdomainname } 251 - 163 AUE_NULL ALL { int nosys(void); } { old setdomainname } 252 - 164 AUE_NULL ALL { int nosys(void); } 253 - 165 AUE_QUOTACTL ALL { int quotactl(const char *path, int cmd, int uid, caddr_t arg); } 254 - 166 AUE_NULL ALL { int nosys(void); } { old exportfs } 255 - 167 AUE_MOUNT ALL { int mount(char *type, char *path, int flags, caddr_t data); } 256 - 168 AUE_NULL ALL { int nosys(void); } { old ustat } 257 - 169 AUE_CSOPS ALL { int csops(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize); } 258 - 170 AUE_CSOPS ALL { int csops_audittoken(pid_t pid, uint32_t ops, user_addr_t useraddr, user_size_t usersize, user_addr_t uaudittoken); } 259 - 171 AUE_NULL ALL { int nosys(void); } { old wait3 } 260 - 172 AUE_NULL ALL { int nosys(void); } { old rpause } 261 - 173 AUE_WAITID ALL { int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); } 262 - 174 AUE_NULL ALL { int nosys(void); } { old getdents } 263 - 175 AUE_NULL ALL { int nosys(void); } { old gc_control } 264 - 176 AUE_NULL ALL { int nosys(void); } { old add_profil } 265 - 177 AUE_NULL ALL { int kdebug_typefilter(void** addr, size_t* size) NO_SYSCALL_STUB; } 266 - 178 AUE_NULL ALL { uint64_t kdebug_trace_string(uint32_t debugid, uint64_t str_id, const char *str) NO_SYSCALL_STUB; } 267 - 179 AUE_NULL ALL { int kdebug_trace64(uint32_t code, uint64_t arg1, uint64_t arg2, uint64_t arg3, uint64_t arg4) NO_SYSCALL_STUB; } 268 - 180 AUE_NULL ALL { int kdebug_trace(uint32_t code, u_long arg1, u_long arg2, u_long arg3, u_long arg4) NO_SYSCALL_STUB; } 269 - 181 AUE_SETGID ALL { int setgid(gid_t gid); } 270 - 182 AUE_SETEGID ALL { int setegid(gid_t egid); } 271 - 183 AUE_SETEUID ALL { int seteuid(uid_t euid); } 272 - 184 AUE_SIGRETURN ALL { int sigreturn(struct ucontext *uctx, int infostyle, user_addr_t token) NO_SYSCALL_STUB; } 273 - 185 AUE_NULL ALL { int enosys(void); } { old chud } 274 - 186 AUE_NULL ALL { int thread_selfcounts(int type, user_addr_t buf, user_size_t nbytes); } 275 - 187 AUE_FDATASYNC ALL { int fdatasync(int fd); } 276 - 188 AUE_STAT ALL { int stat(user_addr_t path, user_addr_t ub); } 277 - 189 AUE_FSTAT ALL { int fstat(int fd, user_addr_t ub); } 278 - 190 AUE_LSTAT ALL { int lstat(user_addr_t path, user_addr_t ub); } 279 - 191 AUE_PATHCONF ALL { int pathconf(char *path, int name); } 280 - 192 AUE_FPATHCONF ALL { int fpathconf(int fd, int name); } 281 - 193 AUE_NULL ALL { int nosys(void); } { old getfsstat } 282 - 194 AUE_GETRLIMIT ALL { int getrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; } 283 - 195 AUE_SETRLIMIT ALL { int setrlimit(u_int which, struct rlimit *rlp) NO_SYSCALL_STUB; } 284 - 196 AUE_GETDIRENTRIES ALL { int getdirentries(int fd, char *buf, u_int count, long *basep); } 285 - 197 AUE_MMAP ALL { user_addr_t mmap(caddr_t addr, size_t len, int prot, int flags, int fd, off_t pos) NO_SYSCALL_STUB; } 286 - 198 AUE_NULL ALL { int nosys(void); } { old __syscall } 287 - 199 AUE_LSEEK ALL { off_t lseek(int fd, off_t offset, int whence); } 288 - 200 AUE_TRUNCATE ALL { int truncate(char *path, off_t length); } 289 - 201 AUE_FTRUNCATE ALL { int ftruncate(int fd, off_t length); } 290 - 202 AUE_SYSCTL ALL { int sysctl(int *name, u_int namelen, void *old, size_t *oldlenp, void *new, size_t newlen) NO_SYSCALL_STUB; } 291 - 203 AUE_MLOCK ALL { int mlock(caddr_t addr, size_t len); } 292 - 204 AUE_MUNLOCK ALL { int munlock(caddr_t addr, size_t len); } 293 - 205 AUE_UNDELETE ALL { int undelete(user_addr_t path); } 294 - 295 - 206 AUE_NULL ALL { int nosys(void); } { old ATsocket } 296 - 207 AUE_NULL ALL { int nosys(void); } { old ATgetmsg } 297 - 208 AUE_NULL ALL { int nosys(void); } { old ATputmsg } 298 - 209 AUE_NULL ALL { int nosys(void); } { old ATsndreq } 299 - 210 AUE_NULL ALL { int nosys(void); } { old ATsndrsp } 300 - 211 AUE_NULL ALL { int nosys(void); } { old ATgetreq } 301 - 212 AUE_NULL ALL { int nosys(void); } { old ATgetrsp } 302 - 213 AUE_NULL ALL { int nosys(void); } { Reserved for AppleTalk } 303 - 304 - 214 AUE_NULL ALL { int nosys(void); } 305 - 215 AUE_NULL ALL { int nosys(void); } 306 - 307 - ; System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus 308 - ; file system semantics. Currently, we only use 215-227. The rest is 309 - ; for future expansion in anticipation of new MacOS APIs for HFS Plus. 310 - ; These calls are not conditionalized because while they are specific 311 - ; to HFS semantics, they are not specific to the HFS filesystem. 312 - ; We expect all filesystems to recognize the call and report that it is 313 - ; not supported or to actually implement it. 314 - 315 - ; 216-> 219 used to be mkcomplex and {f,l}statv variants. They are gone now. 316 - 216 AUE_NULL ALL { int open_dprotected_np(user_addr_t path, int flags, int class, int dpflags, int mode) NO_SYSCALL_STUB; } 317 - 217 AUE_FSGETPATH_EXTENDED ALL { user_ssize_t fsgetpath_ext(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid, uint32_t options); } 318 - 218 AUE_NULL ALL { int nosys(void); } { old lstatv } 319 - 219 AUE_NULL ALL { int nosys(void); } { old fstatv } 320 - 220 AUE_GETATTRLIST ALL { int getattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; } 321 - 221 AUE_SETATTRLIST ALL { int setattrlist(const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options) NO_SYSCALL_STUB; } 322 - 222 AUE_GETDIRENTRIESATTR ALL { int getdirentriesattr(int fd, struct attrlist *alist, void *buffer, size_t buffersize, u_long *count, u_long *basep, u_long *newstate, u_long options); } 323 - 223 AUE_EXCHANGEDATA ALL { int exchangedata(const char *path1, const char *path2, u_long options); } 324 - 224 AUE_NULL ALL { int nosys(void); } { old checkuseraccess or fsgetpath } 325 - 225 AUE_SEARCHFS ALL { int searchfs(const char *path, struct fssearchblock *searchblock, uint32_t *nummatches, uint32_t scriptcode, uint32_t options, struct searchstate *state); } 326 - 226 AUE_DELETE ALL { int delete(user_addr_t path) NO_SYSCALL_STUB; } { private delete (Carbon semantics) } 327 - 227 AUE_COPYFILE ALL { int copyfile(char *from, char *to, int mode, int flags) NO_SYSCALL_STUB; } 328 - 228 AUE_FGETATTRLIST ALL { int fgetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); } 329 - 229 AUE_FSETATTRLIST ALL { int fsetattrlist(int fd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); } 330 - 230 AUE_POLL ALL { int poll(struct pollfd *fds, u_int nfds, int timeout); } 331 - 231 AUE_WATCHEVENT ALL { int watchevent(struct eventreq *u_req, int u_eventmask); } 332 - 232 AUE_WAITEVENT ALL { int waitevent(struct eventreq *u_req, struct timeval *tv); } 333 - 233 AUE_MODWATCH ALL { int modwatch(struct eventreq *u_req, int u_eventmask); } 334 - 234 AUE_GETXATTR ALL { user_ssize_t getxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 335 - 235 AUE_FGETXATTR ALL { user_ssize_t fgetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 336 - 236 AUE_SETXATTR ALL { int setxattr(user_addr_t path, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 337 - 237 AUE_FSETXATTR ALL { int fsetxattr(int fd, user_addr_t attrname, user_addr_t value, size_t size, uint32_t position, int options); } 338 - 238 AUE_REMOVEXATTR ALL { int removexattr(user_addr_t path, user_addr_t attrname, int options); } 339 - 239 AUE_FREMOVEXATTR ALL { int fremovexattr(int fd, user_addr_t attrname, int options); } 340 - 240 AUE_LISTXATTR ALL { user_ssize_t listxattr(user_addr_t path, user_addr_t namebuf, size_t bufsize, int options); } 341 - 241 AUE_FLISTXATTR ALL { user_ssize_t flistxattr(int fd, user_addr_t namebuf, size_t bufsize, int options); } 342 - 242 AUE_FSCTL ALL { int fsctl(const char *path, u_long cmd, caddr_t data, u_int options); } 343 - 243 AUE_INITGROUPS ALL { int initgroups(u_int gidsetsize, gid_t *gidset, int gmuid) NO_SYSCALL_STUB; } 344 - 244 AUE_POSIX_SPAWN ALL { int posix_spawn(pid_t *pid, const char *path, const struct _posix_spawn_args_desc *adesc, char **argv, char **envp) NO_SYSCALL_STUB; } 345 - 245 AUE_FFSCTL ALL { int ffsctl(int fd, u_long cmd, caddr_t data, u_int options); } 346 - 246 AUE_NULL ALL { int nosys(void); } 347 - 348 - #if NFSCLIENT 349 - 247 AUE_NULL ALL { int nfsclnt(int flag, caddr_t argp); } 350 - #else 351 - 247 AUE_NULL ALL { int nosys(void); } 352 - #endif 353 - #if NFSSERVER 354 - 248 AUE_FHOPEN ALL { int fhopen(const struct fhandle *u_fhp, int flags); } 355 - #else 356 - 248 AUE_NULL ALL { int nosys(void); } 357 - #endif 358 - 359 - 249 AUE_NULL ALL { int nosys(void); } 360 - 250 AUE_MINHERIT ALL { int minherit(void *addr, size_t len, int inherit); } 361 - #if SYSV_SEM 362 - 251 AUE_SEMSYS ALL { int semsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; } 363 - #else 364 - 251 AUE_NULL ALL { int nosys(void); } 365 - #endif 366 - #if SYSV_MSG 367 - 252 AUE_MSGSYS ALL { int msgsys(u_int which, int a2, int a3, int a4, int a5) NO_SYSCALL_STUB; } 368 - #else 369 - 252 AUE_NULL ALL { int nosys(void); } 370 - #endif 371 - #if SYSV_SHM 372 - 253 AUE_SHMSYS ALL { int shmsys(u_int which, int a2, int a3, int a4) NO_SYSCALL_STUB; } 373 - #else 374 - 253 AUE_NULL ALL { int nosys(void); } 375 - #endif 376 - #if SYSV_SEM 377 - 254 AUE_SEMCTL ALL { int semctl(int semid, int semnum, int cmd, semun_t arg) NO_SYSCALL_STUB; } 378 - 255 AUE_SEMGET ALL { int semget(key_t key, int nsems, int semflg); } 379 - 256 AUE_SEMOP ALL { int semop(int semid, struct sembuf *sops, int nsops); } 380 - 257 AUE_NULL ALL { int nosys(void); } { old semconfig } 381 - #else 382 - 254 AUE_NULL ALL { int nosys(void); } 383 - 255 AUE_NULL ALL { int nosys(void); } 384 - 256 AUE_NULL ALL { int nosys(void); } 385 - 257 AUE_NULL ALL { int nosys(void); } 386 - #endif 387 - #if SYSV_MSG 388 - 258 AUE_MSGCTL ALL { int msgctl(int msqid, int cmd, struct msqid_ds *buf) NO_SYSCALL_STUB; } 389 - 259 AUE_MSGGET ALL { int msgget(key_t key, int msgflg); } 390 - 260 AUE_MSGSND ALL { int msgsnd(int msqid, void *msgp, size_t msgsz, int msgflg); } 391 - 261 AUE_MSGRCV ALL { user_ssize_t msgrcv(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg); } 392 - #else 393 - 258 AUE_NULL ALL { int nosys(void); } 394 - 259 AUE_NULL ALL { int nosys(void); } 395 - 260 AUE_NULL ALL { int nosys(void); } 396 - 261 AUE_NULL ALL { int nosys(void); } 397 - #endif 398 - #if SYSV_SHM 399 - 262 AUE_SHMAT ALL { user_addr_t shmat(int shmid, void *shmaddr, int shmflg); } 400 - 263 AUE_SHMCTL ALL { int shmctl(int shmid, int cmd, struct shmid_ds *buf) NO_SYSCALL_STUB; } 401 - 264 AUE_SHMDT ALL { int shmdt(void *shmaddr); } 402 - 265 AUE_SHMGET ALL { int shmget(key_t key, size_t size, int shmflg); } 403 - #else 404 - 262 AUE_NULL ALL { int nosys(void); } 405 - 263 AUE_NULL ALL { int nosys(void); } 406 - 264 AUE_NULL ALL { int nosys(void); } 407 - 265 AUE_NULL ALL { int nosys(void); } 408 - #endif 409 - 266 AUE_SHMOPEN ALL { int shm_open(const char *name, int oflag, int mode) NO_SYSCALL_STUB; } 410 - 267 AUE_SHMUNLINK ALL { int shm_unlink(const char *name); } 411 - 268 AUE_SEMOPEN ALL { user_addr_t sem_open(const char *name, int oflag, int mode, int value) NO_SYSCALL_STUB; } 412 - 269 AUE_SEMCLOSE ALL { int sem_close(sem_t *sem); } 413 - 270 AUE_SEMUNLINK ALL { int sem_unlink(const char *name); } 414 - 271 AUE_SEMWAIT ALL { int sem_wait(sem_t *sem); } 415 - 272 AUE_SEMTRYWAIT ALL { int sem_trywait(sem_t *sem); } 416 - 273 AUE_SEMPOST ALL { int sem_post(sem_t *sem); } 417 - 274 AUE_SYSCTL ALL { int sys_sysctlbyname(const char *name, size_t namelen, void *old, size_t *oldlenp, void *new, size_t newlen) NO_SYSCALL_STUB; } 418 - 275 AUE_NULL ALL { int enosys(void); } { old sem_init } 419 - 276 AUE_NULL ALL { int enosys(void); } { old sem_destroy } 420 - 277 AUE_OPEN_EXTENDED_RWTC ALL { int open_extended(user_addr_t path, int flags, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 421 - 278 AUE_UMASK_EXTENDED ALL { int umask_extended(int newmask, user_addr_t xsecurity) NO_SYSCALL_STUB; } 422 - 279 AUE_STAT_EXTENDED ALL { int stat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 423 - 280 AUE_LSTAT_EXTENDED ALL { int lstat_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 424 - 281 AUE_FSTAT_EXTENDED ALL { int fstat_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 425 - 282 AUE_CHMOD_EXTENDED ALL { int chmod_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 426 - 283 AUE_FCHMOD_EXTENDED ALL { int fchmod_extended(int fd, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 427 - 284 AUE_ACCESS_EXTENDED ALL { int access_extended(user_addr_t entries, size_t size, user_addr_t results, uid_t uid) NO_SYSCALL_STUB; } 428 - 285 AUE_SETTID ALL { int settid(uid_t uid, gid_t gid) NO_SYSCALL_STUB; } 429 - 286 AUE_GETTID ALL { int gettid(uid_t *uidp, gid_t *gidp) NO_SYSCALL_STUB; } 430 - 287 AUE_SETSGROUPS ALL { int setsgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 431 - 288 AUE_GETSGROUPS ALL { int getsgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 432 - 289 AUE_SETWGROUPS ALL { int setwgroups(int setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 433 - 290 AUE_GETWGROUPS ALL { int getwgroups(user_addr_t setlen, user_addr_t guidset) NO_SYSCALL_STUB; } 434 - 291 AUE_MKFIFO_EXTENDED ALL { int mkfifo_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 435 - 292 AUE_MKDIR_EXTENDED ALL { int mkdir_extended(user_addr_t path, uid_t uid, gid_t gid, int mode, user_addr_t xsecurity) NO_SYSCALL_STUB; } 436 - #if CONFIG_EXT_RESOLVER 437 - 293 AUE_IDENTITYSVC ALL { int identitysvc(int opcode, user_addr_t message) NO_SYSCALL_STUB; } 438 - #else 439 - 293 AUE_NULL ALL { int nosys(void); } 440 - #endif 441 - 294 AUE_NULL ALL { int shared_region_check_np(uint64_t *start_address) NO_SYSCALL_STUB; } 442 - 295 AUE_NULL ALL { int nosys(void); } { old shared_region_map_np } 443 - 296 AUE_NULL ALL { int vm_pressure_monitor(int wait_for_pressure, int nsecs_monitored, uint32_t *pages_reclaimed); } 444 - #if PSYNCH 445 - 297 AUE_NULL ALL { uint32_t psynch_rw_longrdlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 446 - 298 AUE_NULL ALL { uint32_t psynch_rw_yieldwrlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 447 - 299 AUE_NULL ALL { int psynch_rw_downgrade(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 448 - 300 AUE_NULL ALL { uint32_t psynch_rw_upgrade(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 449 - 301 AUE_NULL ALL { uint32_t psynch_mutexwait(user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; } 450 - 302 AUE_NULL ALL { uint32_t psynch_mutexdrop(user_addr_t mutex, uint32_t mgen, uint32_t ugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; } 451 - 303 AUE_NULL ALL { uint32_t psynch_cvbroad(user_addr_t cv, uint64_t cvlsgen, uint64_t cvudgen, uint32_t flags, user_addr_t mutex, uint64_t mugen, uint64_t tid) NO_SYSCALL_STUB; } 452 - 304 AUE_NULL ALL { uint32_t psynch_cvsignal(user_addr_t cv, uint64_t cvlsgen, uint32_t cvugen, int thread_port, user_addr_t mutex, uint64_t mugen, uint64_t tid, uint32_t flags) NO_SYSCALL_STUB; } 453 - 305 AUE_NULL ALL { uint32_t psynch_cvwait(user_addr_t cv, uint64_t cvlsgen, uint32_t cvugen, user_addr_t mutex, uint64_t mugen, uint32_t flags, int64_t sec, uint32_t nsec) NO_SYSCALL_STUB; } 454 - 306 AUE_NULL ALL { uint32_t psynch_rw_rdlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 455 - 307 AUE_NULL ALL { uint32_t psynch_rw_wrlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 456 - 308 AUE_NULL ALL { uint32_t psynch_rw_unlock(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 457 - 309 AUE_NULL ALL { uint32_t psynch_rw_unlock2(user_addr_t rwlock, uint32_t lgenval, uint32_t ugenval, uint32_t rw_wc, int flags) NO_SYSCALL_STUB; } 458 - #else 459 - 297 AUE_NULL ALL { int nosys(void); } { old reset_shared_file } 460 - 298 AUE_NULL ALL { int nosys(void); } { old new_system_shared_regions } 461 - 299 AUE_NULL ALL { int enosys(void); } { old shared_region_map_file_np } 462 - 300 AUE_NULL ALL { int enosys(void); } { old shared_region_make_private_np } 463 - 301 AUE_NULL ALL { int nosys(void); } 464 - 302 AUE_NULL ALL { int nosys(void); } 465 - 303 AUE_NULL ALL { int nosys(void); } 466 - 304 AUE_NULL ALL { int nosys(void); } 467 - 305 AUE_NULL ALL { int nosys(void); } 468 - 306 AUE_NULL ALL { int nosys(void); } 469 - 307 AUE_NULL ALL { int nosys(void); } 470 - 308 AUE_NULL ALL { int nosys(void); } 471 - 309 AUE_NULL ALL { int nosys(void); } 472 - #endif 473 - 310 AUE_GETSID ALL { int getsid(pid_t pid); } 474 - 311 AUE_SETTIDWITHPID ALL { int settid_with_pid(pid_t pid, int assume) NO_SYSCALL_STUB; } 475 - #if PSYNCH 476 - 312 AUE_NULL ALL { int psynch_cvclrprepost(user_addr_t cv, uint32_t cvgen, uint32_t cvugen, uint32_t cvsgen, uint32_t prepocnt, uint32_t preposeq, uint32_t flags) NO_SYSCALL_STUB; } 477 - #else 478 - 312 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_timedwait } 479 - #endif 480 - 313 AUE_NULL ALL { int aio_fsync(int op, user_addr_t aiocbp); } 481 - 314 AUE_NULL ALL { user_ssize_t aio_return(user_addr_t aiocbp); } 482 - 315 AUE_NULL ALL { int aio_suspend(user_addr_t aiocblist, int nent, user_addr_t timeoutp); } 483 - 316 AUE_NULL ALL { int aio_cancel(int fd, user_addr_t aiocbp); } 484 - 317 AUE_NULL ALL { int aio_error(user_addr_t aiocbp); } 485 - 318 AUE_NULL ALL { int aio_read(user_addr_t aiocbp); } 486 - 319 AUE_NULL ALL { int aio_write(user_addr_t aiocbp); } 487 - 320 AUE_LIOLISTIO ALL { int lio_listio(int mode, user_addr_t aiocblist, int nent, user_addr_t sigp); } 488 - 321 AUE_NULL ALL { int nosys(void); } { old __pthread_cond_wait } 489 - 322 AUE_IOPOLICYSYS ALL { int iopolicysys(int cmd, void *arg) NO_SYSCALL_STUB; } 490 - 323 AUE_NULL ALL { int process_policy(int scope, int action, int policy, int policy_subtype, user_addr_t attrp, pid_t target_pid, uint64_t target_threadid) NO_SYSCALL_STUB; } 491 - 324 AUE_MLOCKALL ALL { int mlockall(int how); } 492 - 325 AUE_MUNLOCKALL ALL { int munlockall(int how); } 493 - 326 AUE_NULL ALL { int nosys(void); } 494 - 327 AUE_ISSETUGID ALL { int issetugid(void); } 495 - 328 AUE_PTHREADKILL ALL { int __pthread_kill(int thread_port, int sig); } 496 - 329 AUE_PTHREADSIGMASK ALL { int __pthread_sigmask(int how, user_addr_t set, user_addr_t oset); } 497 - 330 AUE_SIGWAIT ALL { int __sigwait(user_addr_t set, user_addr_t sig); } 498 - 331 AUE_NULL ALL { int __disable_threadsignal(int value); } 499 - 332 AUE_NULL ALL { int __pthread_markcancel(int thread_port); } 500 - 333 AUE_NULL ALL { int __pthread_canceled(int action); } 501 - 502 - ;#if OLD_SEMWAIT_SIGNAL 503 - ;334 AUE_NULL ALL { int nosys(void); } { old __semwait_signal } 504 - ;#else 505 - 334 AUE_SEMWAITSIGNAL ALL { int __semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); } 506 - ;#endif 507 - 508 - 335 AUE_NULL ALL { int nosys(void); } { old utrace } 509 - 336 AUE_PROCINFO ALL { int proc_info(int32_t callnum,int32_t pid,uint32_t flavor, uint64_t arg,user_addr_t buffer,int32_t buffersize) NO_SYSCALL_STUB; } 510 - #if SENDFILE 511 - 337 AUE_SENDFILE ALL { int sendfile(int fd, int s, off_t offset, off_t *nbytes, struct sf_hdtr *hdtr, int flags); } 512 - #else /* !SENDFILE */ 513 - 337 AUE_NULL ALL { int nosys(void); } 514 - #endif /* SENDFILE */ 515 - 338 AUE_STAT64 ALL { int stat64(user_addr_t path, user_addr_t ub); } 516 - 339 AUE_FSTAT64 ALL { int fstat64(int fd, user_addr_t ub); } 517 - 340 AUE_LSTAT64 ALL { int lstat64(user_addr_t path, user_addr_t ub); } 518 - 341 AUE_STAT64_EXTENDED ALL { int stat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 519 - 342 AUE_LSTAT64_EXTENDED ALL { int lstat64_extended(user_addr_t path, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 520 - 343 AUE_FSTAT64_EXTENDED ALL { int fstat64_extended(int fd, user_addr_t ub, user_addr_t xsecurity, user_addr_t xsecurity_size) NO_SYSCALL_STUB; } 521 - 344 AUE_GETDIRENTRIES64 ALL { user_ssize_t getdirentries64(int fd, void *buf, user_size_t bufsize, off_t *position) NO_SYSCALL_STUB; } 522 - 345 AUE_STATFS64 ALL { int statfs64(char *path, struct statfs64 *buf); } 523 - 346 AUE_FSTATFS64 ALL { int fstatfs64(int fd, struct statfs64 *buf); } 524 - 347 AUE_GETFSSTAT64 ALL { int getfsstat64(user_addr_t buf, int bufsize, int flags); } 525 - 348 AUE_NULL ALL { int __pthread_chdir(user_addr_t path); } 526 - 349 AUE_NULL ALL { int __pthread_fchdir(int fd); } 527 - 350 AUE_AUDIT ALL { int audit(void *record, int length); } 528 - 351 AUE_AUDITON ALL { int auditon(int cmd, void *data, int length); } 529 - 352 AUE_NULL ALL { int nosys(void); } 530 - 353 AUE_GETAUID ALL { int getauid(au_id_t *auid); } 531 - 354 AUE_SETAUID ALL { int setauid(au_id_t *auid); } 532 - 355 AUE_NULL ALL { int nosys(void); } { old getaudit } 533 - 356 AUE_NULL ALL { int nosys(void); } { old setaudit } 534 - 357 AUE_GETAUDIT_ADDR ALL { int getaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); } 535 - 358 AUE_SETAUDIT_ADDR ALL { int setaudit_addr(struct auditinfo_addr *auditinfo_addr, int length); } 536 - 359 AUE_AUDITCTL ALL { int auditctl(char *path); } 537 - #if CONFIG_WORKQUEUE 538 - 360 AUE_NULL ALL { user_addr_t bsdthread_create(user_addr_t func, user_addr_t func_arg, user_addr_t stack, user_addr_t pthread, uint32_t flags) NO_SYSCALL_STUB; } 539 - 361 AUE_NULL ALL { int bsdthread_terminate(user_addr_t stackaddr, size_t freesize, uint32_t port, uint32_t sem) NO_SYSCALL_STUB; } 540 - #else 541 - 360 AUE_NULL ALL { int nosys(void); } 542 - 361 AUE_NULL ALL { int nosys(void); } 543 - #endif /* CONFIG_WORKQUEUE */ 544 - 362 AUE_KQUEUE ALL { int kqueue(void); } 545 - 363 AUE_NULL ALL { int kevent(int fd, const struct kevent *changelist, int nchanges, struct kevent *eventlist, int nevents, const struct timespec *timeout); } 546 - 364 AUE_LCHOWN ALL { int lchown(user_addr_t path, uid_t owner, gid_t group) NO_SYSCALL_STUB; } 547 - 365 AUE_NULL ALL { int nosys(void); } { old stack_snapshot } 548 - #if CONFIG_WORKQUEUE 549 - 366 AUE_NULL ALL { int bsdthread_register(user_addr_t threadstart, user_addr_t wqthread, uint32_t flags, user_addr_t stack_addr_hint, user_addr_t targetconc_ptr, uint32_t dispatchqueue_offset, uint32_t tsd_offset) NO_SYSCALL_STUB; } 550 - 367 AUE_WORKQOPEN ALL { int workq_open(void) NO_SYSCALL_STUB; } 551 - 368 AUE_WORKQOPS ALL { int workq_kernreturn(int options, user_addr_t item, int affinity, int prio) NO_SYSCALL_STUB; } 552 - #else 553 - 366 AUE_NULL ALL { int nosys(void); } 554 - 367 AUE_NULL ALL { int nosys(void); } 555 - 368 AUE_NULL ALL { int nosys(void); } 556 - #endif /* CONFIG_WORKQUEUE */ 557 - 369 AUE_NULL ALL { int kevent64(int fd, const struct kevent64_s *changelist, int nchanges, struct kevent64_s *eventlist, int nevents, unsigned int flags, const struct timespec *timeout); } 558 - #if OLD_SEMWAIT_SIGNAL 559 - 370 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts); } 560 - 371 AUE_SEMWAITSIGNAL ALL { int __old_semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, const struct timespec *ts) NO_SYSCALL_STUB; } 561 - #else 562 - 370 AUE_NULL ALL { int nosys(void); } { old __semwait_signal } 563 - 371 AUE_NULL ALL { int nosys(void); } { old __semwait_signal } 564 - #endif 565 - 372 AUE_NULL ALL { uint64_t thread_selfid (void) NO_SYSCALL_STUB; } 566 - 373 AUE_LEDGER ALL { int ledger(int cmd, caddr_t arg1, caddr_t arg2, caddr_t arg3); } 567 - 374 AUE_NULL ALL { int kevent_qos(int fd, const struct kevent_qos_s *changelist, int nchanges, struct kevent_qos_s *eventlist, int nevents, void *data_out, size_t *data_available, unsigned int flags); } 568 - 375 AUE_NULL ALL { int kevent_id(uint64_t id, const struct kevent_qos_s *changelist, int nchanges, struct kevent_qos_s *eventlist, int nevents, void *data_out, size_t *data_available, unsigned int flags); } 569 - 376 AUE_NULL ALL { int nosys(void); } 570 - 377 AUE_NULL ALL { int nosys(void); } 571 - 378 AUE_NULL ALL { int nosys(void); } 572 - 379 AUE_NULL ALL { int nosys(void); } 573 - 380 AUE_MAC_EXECVE ALL { int __mac_execve(char *fname, char **argp, char **envp, struct mac *mac_p); } 574 - #if CONFIG_MACF 575 - 381 AUE_MAC_SYSCALL ALL { int __mac_syscall(char *policy, int call, user_addr_t arg); } 576 - 382 AUE_MAC_GET_FILE ALL { int __mac_get_file(char *path_p, struct mac *mac_p); } 577 - 383 AUE_MAC_SET_FILE ALL { int __mac_set_file(char *path_p, struct mac *mac_p); } 578 - 384 AUE_MAC_GET_LINK ALL { int __mac_get_link(char *path_p, struct mac *mac_p); } 579 - 385 AUE_MAC_SET_LINK ALL { int __mac_set_link(char *path_p, struct mac *mac_p); } 580 - 386 AUE_MAC_GET_PROC ALL { int __mac_get_proc(struct mac *mac_p); } 581 - 387 AUE_MAC_SET_PROC ALL { int __mac_set_proc(struct mac *mac_p); } 582 - 388 AUE_MAC_GET_FD ALL { int __mac_get_fd(int fd, struct mac *mac_p); } 583 - 389 AUE_MAC_SET_FD ALL { int __mac_set_fd(int fd, struct mac *mac_p); } 584 - 390 AUE_MAC_GET_PID ALL { int __mac_get_pid(pid_t pid, struct mac *mac_p); } 585 - #else 586 - 381 AUE_MAC_SYSCALL ALL { int enosys(void); } 587 - 382 AUE_MAC_GET_FILE ALL { int nosys(void); } 588 - 383 AUE_MAC_SET_FILE ALL { int nosys(void); } 589 - 384 AUE_MAC_GET_LINK ALL { int nosys(void); } 590 - 385 AUE_MAC_SET_LINK ALL { int nosys(void); } 591 - 386 AUE_MAC_GET_PROC ALL { int nosys(void); } 592 - 387 AUE_MAC_SET_PROC ALL { int nosys(void); } 593 - 388 AUE_MAC_GET_FD ALL { int nosys(void); } 594 - 389 AUE_MAC_SET_FD ALL { int nosys(void); } 595 - 390 AUE_MAC_GET_PID ALL { int nosys(void); } 596 - #endif 597 - 391 AUE_NULL ALL { int enosys(void); } 598 - 392 AUE_NULL ALL { int enosys(void); } 599 - 393 AUE_NULL ALL { int enosys(void); } 600 - 394 AUE_SELECT ALL { int pselect(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, const struct timespec *ts, const struct sigset_t *mask) NO_SYSCALL_STUB; } 601 - 395 AUE_SELECT ALL { int pselect_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, const struct timespec *ts, const struct sigset_t *mask) NO_SYSCALL_STUB; } 602 - 396 AUE_NULL ALL { user_ssize_t read_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; } 603 - 397 AUE_NULL ALL { user_ssize_t write_nocancel(int fd, user_addr_t cbuf, user_size_t nbyte) NO_SYSCALL_STUB; } 604 - 398 AUE_OPEN_RWTC ALL { int open_nocancel(user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; } 605 - 399 AUE_CLOSE ALL { int close_nocancel(int fd) NO_SYSCALL_STUB; } 606 - 400 AUE_WAIT4 ALL { int wait4_nocancel(int pid, user_addr_t status, int options, user_addr_t rusage) NO_SYSCALL_STUB; } 607 - #if SOCKETS 608 - 401 AUE_RECVMSG ALL { int recvmsg_nocancel(int s, struct msghdr *msg, int flags) NO_SYSCALL_STUB; } 609 - 402 AUE_SENDMSG ALL { int sendmsg_nocancel(int s, caddr_t msg, int flags) NO_SYSCALL_STUB; } 610 - 403 AUE_RECVFROM ALL { int recvfrom_nocancel(int s, void *buf, size_t len, int flags, struct sockaddr *from, int *fromlenaddr) NO_SYSCALL_STUB; } 611 - 404 AUE_ACCEPT ALL { int accept_nocancel(int s, caddr_t name, socklen_t *anamelen) NO_SYSCALL_STUB; } 612 - #else 613 - 401 AUE_NULL ALL { int nosys(void); } 614 - 402 AUE_NULL ALL { int nosys(void); } 615 - 403 AUE_NULL ALL { int nosys(void); } 616 - 404 AUE_NULL ALL { int nosys(void); } 617 - #endif /* SOCKETS */ 618 - 405 AUE_MSYNC ALL { int msync_nocancel(caddr_t addr, size_t len, int flags) NO_SYSCALL_STUB; } 619 - 406 AUE_FCNTL ALL { int fcntl_nocancel(int fd, int cmd, long arg) NO_SYSCALL_STUB; } 620 - 407 AUE_SELECT ALL { int select_nocancel(int nd, u_int32_t *in, u_int32_t *ou, u_int32_t *ex, struct timeval *tv) NO_SYSCALL_STUB; } 621 - 408 AUE_FSYNC ALL { int fsync_nocancel(int fd) NO_SYSCALL_STUB; } 622 - #if SOCKETS 623 - 409 AUE_CONNECT ALL { int connect_nocancel(int s, caddr_t name, socklen_t namelen) NO_SYSCALL_STUB; } 624 - #else 625 - 409 AUE_NULL ALL { int nosys(void); } 626 - #endif /* SOCKETS */ 627 - 410 AUE_NULL ALL { int sigsuspend_nocancel(sigset_t mask) NO_SYSCALL_STUB; } 628 - 411 AUE_READV ALL { user_ssize_t readv_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; } 629 - 412 AUE_WRITEV ALL { user_ssize_t writev_nocancel(int fd, struct iovec *iovp, u_int iovcnt) NO_SYSCALL_STUB; } 630 - #if SOCKETS 631 - 413 AUE_SENDTO ALL { int sendto_nocancel(int s, caddr_t buf, size_t len, int flags, caddr_t to, socklen_t tolen) NO_SYSCALL_STUB; } 632 - #else 633 - 413 AUE_NULL ALL { int nosys(void); } 634 - #endif /* SOCKETS */ 635 - 414 AUE_PREAD ALL { user_ssize_t pread_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; } 636 - 415 AUE_PWRITE ALL { user_ssize_t pwrite_nocancel(int fd, user_addr_t buf, user_size_t nbyte, off_t offset) NO_SYSCALL_STUB; } 637 - 416 AUE_WAITID ALL { int waitid_nocancel(idtype_t idtype, id_t id, siginfo_t *infop, int options) NO_SYSCALL_STUB; } 638 - 417 AUE_POLL ALL { int poll_nocancel(struct pollfd *fds, u_int nfds, int timeout) NO_SYSCALL_STUB; } 639 - #if SYSV_MSG 640 - 418 AUE_MSGSND ALL { int msgsnd_nocancel(int msqid, void *msgp, size_t msgsz, int msgflg) NO_SYSCALL_STUB; } 641 - 419 AUE_MSGRCV ALL { user_ssize_t msgrcv_nocancel(int msqid, void *msgp, size_t msgsz, long msgtyp, int msgflg) NO_SYSCALL_STUB; } 642 - #else 643 - 418 AUE_NULL ALL { int nosys(void); } 644 - 419 AUE_NULL ALL { int nosys(void); } 645 - #endif 646 - 420 AUE_SEMWAIT ALL { int sem_wait_nocancel(sem_t *sem) NO_SYSCALL_STUB; } 647 - 421 AUE_NULL ALL { int aio_suspend_nocancel(user_addr_t aiocblist, int nent, user_addr_t timeoutp) NO_SYSCALL_STUB; } 648 - 422 AUE_SIGWAIT ALL { int __sigwait_nocancel(user_addr_t set, user_addr_t sig) NO_SYSCALL_STUB; } 649 - ;#if OLD_SEMWAIT_SIGNAL 650 - ;423 AUE_NULL ALL { int nosys(void); } { old __semwait_signal_nocancel } 651 - ;#else 652 - 423 AUE_SEMWAITSIGNAL ALL { int __semwait_signal_nocancel(int cond_sem, int mutex_sem, int timeout, int relative, int64_t tv_sec, int32_t tv_nsec); } 653 - ;#endif 654 - 424 AUE_MAC_MOUNT ALL { int __mac_mount(char *type, char *path, int flags, caddr_t data, struct mac *mac_p); } 655 - #if CONFIG_MACF 656 - 425 AUE_MAC_GET_MOUNT ALL { int __mac_get_mount(char *path, struct mac *mac_p); } 657 - #else 658 - 425 AUE_MAC_GET_MOUNT ALL { int nosys(void); } 659 - #endif 660 - 426 AUE_MAC_GETFSSTAT ALL { int __mac_getfsstat(user_addr_t buf, int bufsize, user_addr_t mac, int macsize, int flags); } 661 - 427 AUE_FSGETPATH ALL { user_ssize_t fsgetpath(user_addr_t buf, size_t bufsize, user_addr_t fsid, uint64_t objid); } { private fsgetpath (File Manager SPI) } 662 - 428 AUE_NULL ALL { mach_port_name_t audit_session_self(void); } 663 - 429 AUE_NULL ALL { int audit_session_join(mach_port_name_t port); } 664 - 430 AUE_NULL ALL { int fileport_makeport(int fd, user_addr_t portnamep); } 665 - 431 AUE_NULL ALL { int fileport_makefd(mach_port_name_t port); } 666 - 432 AUE_NULL ALL { int audit_session_port(au_asid_t asid, user_addr_t portnamep); } 667 - 433 AUE_NULL ALL { int pid_suspend(int pid); } 668 - 434 AUE_NULL ALL { int pid_resume(int pid); } 669 - #if CONFIG_EMBEDDED 670 - 435 AUE_NULL ALL { int pid_hibernate(int pid); } 671 - #else 672 - 435 AUE_NULL ALL { int nosys(void); } 673 - #endif 674 - #if SOCKETS 675 - 436 AUE_NULL ALL { int pid_shutdown_sockets(int pid, int level); } 676 - #else 677 - 436 AUE_NULL ALL { int nosys(void); } 678 - #endif 679 - 437 AUE_NULL ALL { int nosys(void); } { old shared_region_slide_np } 680 - 438 AUE_NULL ALL { int shared_region_map_and_slide_np(int fd, uint32_t count, const struct shared_file_mapping_np *mappings, uint32_t slide, uint64_t* slide_start, uint32_t slide_size) NO_SYSCALL_STUB; } 681 - 439 AUE_NULL ALL { int kas_info(int selector, void *value, size_t *size); } 682 - #if CONFIG_MEMORYSTATUS 683 - 440 AUE_NULL ALL { int memorystatus_control(uint32_t command, int32_t pid, uint32_t flags, user_addr_t buffer, size_t buffersize); } 684 - #else 685 - 440 AUE_NULL ALL { int nosys(void); } 686 - #endif 687 - 441 AUE_OPEN_RWTC ALL { int guarded_open_np(user_addr_t path, const guardid_t *guard, u_int guardflags, int flags, int mode) NO_SYSCALL_STUB; } 688 - 442 AUE_CLOSE ALL { int guarded_close_np(int fd, const guardid_t *guard); } 689 - 443 AUE_KQUEUE ALL { int guarded_kqueue_np(const guardid_t *guard, u_int guardflags); } 690 - 444 AUE_NULL ALL { int change_fdguard_np(int fd, const guardid_t *guard, u_int guardflags, const guardid_t *nguard, u_int nguardflags, int *fdflagsp); } 691 - 445 AUE_USRCTL ALL { int usrctl(uint32_t flags); } 692 - 446 AUE_NULL ALL { int proc_rlimit_control(pid_t pid, int flavor, void *arg); } 693 - #if SOCKETS 694 - 447 AUE_CONNECT ALL { int connectx(int socket, const sa_endpoints_t *endpoints, sae_associd_t associd, unsigned int flags, const struct iovec *iov, unsigned int iovcnt, size_t *len, sae_connid_t *connid); } 695 - 448 AUE_NULL ALL { int disconnectx(int s, sae_associd_t aid, sae_connid_t cid); } 696 - 449 AUE_NULL ALL { int peeloff(int s, sae_associd_t aid); } 697 - 450 AUE_SOCKET ALL { int socket_delegate(int domain, int type, int protocol, pid_t epid); } 698 - #else 699 - 447 AUE_NULL ALL { int nosys(void); } 700 - 448 AUE_NULL ALL { int nosys(void); } 701 - 449 AUE_NULL ALL { int nosys(void); } 702 - 450 AUE_NULL ALL { int nosys(void); } 703 - #endif /* SOCKETS */ 704 - 451 AUE_NULL ALL { int telemetry(uint64_t cmd, uint64_t deadline, uint64_t interval, uint64_t leeway, uint64_t arg4, uint64_t arg5) NO_SYSCALL_STUB; } 705 - #if CONFIG_PROC_UUID_POLICY 706 - 452 AUE_NULL ALL { int proc_uuid_policy(uint32_t operation, uuid_t uuid, size_t uuidlen, uint32_t flags); } 707 - #else 708 - 452 AUE_NULL ALL { int nosys(void); } 709 - #endif 710 - #if CONFIG_MEMORYSTATUS 711 - 453 AUE_NULL ALL { int memorystatus_get_level(user_addr_t level); } 712 - #else 713 - 453 AUE_NULL ALL { int nosys(void); } 714 - #endif 715 - 454 AUE_NULL ALL { int system_override(uint64_t timeout, uint64_t flags); } 716 - 455 AUE_NULL ALL { int vfs_purge(void); } 717 - 456 AUE_NULL ALL { int sfi_ctl(uint32_t operation, uint32_t sfi_class, uint64_t time, uint64_t *out_time) NO_SYSCALL_STUB; } 718 - 457 AUE_NULL ALL { int sfi_pidctl(uint32_t operation, pid_t pid, uint32_t sfi_flags, uint32_t *out_sfi_flags) NO_SYSCALL_STUB; } 719 - #if CONFIG_COALITIONS 720 - 458 AUE_NULL ALL { int coalition(uint32_t operation, uint64_t *cid, uint32_t flags) NO_SYSCALL_STUB; } 721 - 459 AUE_NULL ALL { int coalition_info(uint32_t flavor, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; } 722 - #else 723 - 458 AUE_NULL ALL { int enosys(void); } 724 - 459 AUE_NULL ALL { int enosys(void); } 725 - #endif /* COALITIONS */ 726 - #if NECP 727 - 460 AUE_NECP ALL { int necp_match_policy(uint8_t *parameters, size_t parameters_size, struct necp_aggregate_result *returned_result); } 728 - #else 729 - 460 AUE_NULL ALL { int nosys(void); } 730 - #endif /* NECP */ 731 - 461 AUE_GETATTRLISTBULK ALL { int getattrlistbulk(int dirfd, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint64_t options); } 732 - 462 AUE_CLONEFILEAT ALL { int clonefileat(int src_dirfd, user_addr_t src, int dst_dirfd, user_addr_t dst, uint32_t flags); } 733 - 463 AUE_OPENAT_RWTC ALL { int openat(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; } 734 - 464 AUE_OPENAT_RWTC ALL { int openat_nocancel(int fd, user_addr_t path, int flags, int mode) NO_SYSCALL_STUB; } 735 - 465 AUE_RENAMEAT ALL { int renameat(int fromfd, char *from, int tofd, char *to) NO_SYSCALL_STUB; } 736 - 466 AUE_FACCESSAT ALL { int faccessat(int fd, user_addr_t path, int amode, int flag); } 737 - 467 AUE_FCHMODAT ALL { int fchmodat(int fd, user_addr_t path, int mode, int flag); } 738 - 468 AUE_FCHOWNAT ALL { int fchownat(int fd, user_addr_t path, uid_t uid,gid_t gid, int flag); } 739 - 469 AUE_FSTATAT ALL { int fstatat(int fd, user_addr_t path, user_addr_t ub, int flag); } 740 - 470 AUE_FSTATAT ALL { int fstatat64(int fd, user_addr_t path, user_addr_t ub, int flag); } 741 - 471 AUE_LINKAT ALL { int linkat(int fd1, user_addr_t path, int fd2, user_addr_t link, int flag); } 742 - 472 AUE_UNLINKAT ALL { int unlinkat(int fd, user_addr_t path, int flag) NO_SYSCALL_STUB; } 743 - 473 AUE_READLINKAT ALL { int readlinkat(int fd, user_addr_t path, user_addr_t buf, size_t bufsize); } 744 - 474 AUE_SYMLINKAT ALL { int symlinkat(user_addr_t *path1, int fd, user_addr_t path2); } 745 - 475 AUE_MKDIRAT ALL { int mkdirat(int fd, user_addr_t path, int mode); } 746 - 476 AUE_GETATTRLISTAT ALL { int getattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, u_long options); } 747 - 477 AUE_NULL ALL { int proc_trace_log(pid_t pid, uint64_t uniqueid); } 748 - 478 AUE_NULL ALL { int bsdthread_ctl(user_addr_t cmd, user_addr_t arg1, user_addr_t arg2, user_addr_t arg3) NO_SYSCALL_STUB; } 749 - 479 AUE_OPENBYID_RWT ALL { int openbyid_np(user_addr_t fsid, user_addr_t objid, int oflags); } 750 - #if SOCKETS 751 - 480 AUE_NULL ALL { user_ssize_t recvmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); } 752 - 481 AUE_NULL ALL { user_ssize_t sendmsg_x(int s, struct msghdr_x *msgp, u_int cnt, int flags); } 753 - #else 754 - 480 AUE_NULL ALL { int nosys(void); } 755 - 481 AUE_NULL ALL { int nosys(void); } 756 - #endif /* SOCKETS */ 757 - 482 AUE_NULL ALL { uint64_t thread_selfusage(void) NO_SYSCALL_STUB; } 758 - #if CONFIG_CSR 759 - 483 AUE_NULL ALL { int csrctl(uint32_t op, user_addr_t useraddr, user_addr_t usersize) NO_SYSCALL_STUB; } 760 - #else 761 - 483 AUE_NULL ALL { int enosys(void); } 762 - #endif /* CSR */ 763 - 484 AUE_NULL ALL { int guarded_open_dprotected_np(user_addr_t path, const guardid_t *guard, u_int guardflags, int flags, int dpclass, int dpflags, int mode) NO_SYSCALL_STUB; } 764 - 485 AUE_NULL ALL { user_ssize_t guarded_write_np(int fd, const guardid_t *guard, user_addr_t cbuf, user_size_t nbyte); } 765 - 486 AUE_PWRITE ALL { user_ssize_t guarded_pwrite_np(int fd, const guardid_t *guard, user_addr_t buf, user_size_t nbyte, off_t offset); } 766 - 487 AUE_WRITEV ALL { user_ssize_t guarded_writev_np(int fd, const guardid_t *guard, struct iovec *iovp, int iovcnt); } 767 - 488 AUE_RENAMEAT ALL { int renameatx_np(int fromfd, char *from, int tofd, char *to, u_int flags) NO_SYSCALL_STUB; } 768 - #if CONFIG_CODE_DECRYPTION 769 - 489 AUE_MPROTECT ALL { int mremap_encrypted(caddr_t addr, size_t len, uint32_t cryptid, uint32_t cputype, uint32_t cpusubtype); } 770 - #else 771 - 489 AUE_NULL ALL { int enosys(void); } 772 - #endif 773 - #if NETWORKING 774 - 490 AUE_NETAGENT ALL { int netagent_trigger(uuid_t agent_uuid, size_t agent_uuidlen); } 775 - #else 776 - 490 AUE_NULL ALL { int nosys(void); } 777 - #endif /* NETWORKING */ 778 - 491 AUE_STACKSNAPSHOT ALL { int stack_snapshot_with_config(int stackshot_config_version, user_addr_t stackshot_config, size_t stackshot_config_size) NO_SYSCALL_STUB; } 779 - #if CONFIG_TELEMETRY 780 - 492 AUE_STACKSNAPSHOT ALL { int microstackshot(user_addr_t tracebuf, uint32_t tracebuf_size, uint32_t flags) NO_SYSCALL_STUB; } 781 - #else 782 - 492 AUE_NULL ALL { int enosys(void); } 783 - #endif /* CONFIG_TELEMETRY */ 784 - #if PGO 785 - 493 AUE_NULL ALL { user_ssize_t grab_pgo_data (user_addr_t uuid, int flags, user_addr_t buffer, user_ssize_t size); } 786 - #else 787 - 493 AUE_NULL ALL { int enosys(void); } 788 - #endif 789 - #if CONFIG_PERSONAS 790 - 494 AUE_PERSONA ALL { int persona(uint32_t operation, uint32_t flags, struct kpersona_info *info, uid_t *id, size_t *idlen, char *path) NO_SYSCALL_STUB; } 791 - #else 792 - 494 AUE_NULL ALL { int enosys(void); } 793 - #endif 794 - 495 AUE_NULL ALL { int enosys(void); } 795 - 496 AUE_NULL ALL { int enosys(void); } 796 - 497 AUE_NULL ALL { int enosys(void); } 797 - 498 AUE_NULL ALL { int enosys(void); } 798 - 499 AUE_NULL ALL { int work_interval_ctl(uint32_t operation, uint64_t work_interval_id, void *arg, size_t len) NO_SYSCALL_STUB; } 799 - 500 AUE_NULL ALL { int getentropy(void *buffer, size_t size); } 800 - #if NECP 801 - 501 AUE_NECP ALL { int necp_open(int flags); } } 802 - 502 AUE_NECP ALL { int necp_client_action(int necp_fd, uint32_t action, uuid_t client_id, size_t client_id_len, uint8_t *buffer, size_t buffer_size); } 803 - #else 804 - 501 AUE_NULL ALL { int enosys(void); } 805 - 502 AUE_NULL ALL { int enosys(void); } 806 - #endif /* NECP */ 807 - 503 AUE_NULL ALL { int enosys(void); } 808 - 504 AUE_NULL ALL { int enosys(void); } 809 - 505 AUE_NULL ALL { int enosys(void); } 810 - 506 AUE_NULL ALL { int enosys(void); } 811 - 507 AUE_NULL ALL { int enosys(void); } 812 - 508 AUE_NULL ALL { int enosys(void); } 813 - 509 AUE_NULL ALL { int enosys(void); } 814 - 510 AUE_NULL ALL { int enosys(void); } 815 - 511 AUE_NULL ALL { int enosys(void); } 816 - 512 AUE_NULL ALL { int enosys(void); } 817 - 513 AUE_NULL ALL { int enosys(void); } 818 - 514 AUE_NULL ALL { int enosys(void); } 819 - 515 AUE_NULL ALL { int ulock_wait(uint32_t operation, void *addr, uint64_t value, uint32_t timeout) NO_SYSCALL_STUB; } 820 - 516 AUE_NULL ALL { int ulock_wake(uint32_t operation, void *addr, uint64_t wake_value) NO_SYSCALL_STUB; } 821 - 517 AUE_FCLONEFILEAT ALL { int fclonefileat(int src_fd, int dst_dirfd, user_addr_t dst, uint32_t flags); } 822 - 518 AUE_NULL ALL { int fs_snapshot(uint32_t op, int dirfd, user_addr_t name1, user_addr_t name2, user_addr_t data, uint32_t flags) NO_SYSCALL_STUB; } 823 - 519 AUE_NULL ALL { int enosys(void); } 824 - 520 AUE_KILL ALL { int terminate_with_payload(int pid, uint32_t reason_namespace, uint64_t reason_code, void *payload, uint32_t payload_size, const char *reason_string, uint64_t reason_flags) NO_SYSCALL_STUB; } 825 - 521 AUE_EXIT ALL { void abort_with_payload(uint32_t reason_namespace, uint64_t reason_code, void *payload, uint32_t payload_size, const char *reason_string, uint64_t reason_flags) NO_SYSCALL_STUB; } 826 - #if NECP 827 - 522 AUE_NECP ALL { int necp_session_open(int flags); } } 828 - 523 AUE_NECP ALL { int necp_session_action(int necp_fd, uint32_t action, uint8_t *in_buffer, size_t in_buffer_length, uint8_t *out_buffer, size_t out_buffer_length); } 829 - #else /* NECP */ 830 - 522 AUE_NULL ALL { int enosys(void); } 831 - 523 AUE_NULL ALL { int enosys(void); } 832 - #endif /* NECP */ 833 - 524 AUE_SETATTRLISTAT ALL { int setattrlistat(int fd, const char *path, struct attrlist *alist, void *attributeBuffer, size_t bufferSize, uint32_t options); } 834 - 525 AUE_NET ALL { int net_qos_guideline(struct net_qos_param *param, uint32_t param_len); } 835 - 526 AUE_FMOUNT ALL { int fmount(const char *type, int fd, int flags, void *data); } 836 - 527 AUE_NULL ALL { int ntp_adjtime(struct timex *tp); } 837 - 528 AUE_NULL ALL { int ntp_gettime(struct ntptimeval *ntvp); } 838 - 529 AUE_NULL ALL { int os_fault_with_payload(uint32_t reason_namespace, uint64_t reason_code, void *payload, uint32_t payload_size, const char *reason_string, uint64_t reason_flags); } 839 - #if CONFIG_WORKQUEUE 840 - 530 AUE_WORKLOOPCTL ALL { int kqueue_workloop_ctl(user_addr_t cmd, uint64_t options, user_addr_t addr, size_t sz) NO_SYSCALL_STUB; } 841 - #else 842 - 530 AUE_NULL ALL { int enosys(void); } 843 - #endif // CONFIG_WORKQUEUE 844 - 531 AUE_NULL ALL { uint64_t __mach_bridge_remote_time(uint64_t local_timestamp); } 845 - #if CONFIG_COALITIONS 846 - 532 AUE_NULL ALL { int coalition_ledger(uint32_t operation, uint64_t *cid, void *buffer, size_t *bufsize) NO_SYSCALL_STUB; } 847 - #else 848 - 532 AUE_NULL ALL { int enosys(void); } 849 - #endif // CONFIG_COALITIONS 850 - 533 AUE_NULL ALL { int log_data(unsigned int tag, unsigned int flags, void *buffer, unsigned int size) NO_SYSCALL_STUB; } 851 - 534 AUE_NULL ALL { uint64_t memorystatus_available_memory(void) NO_SYSCALL_STUB; }