Symbol: syscall
crypto/heimdal/lib/kafs/afssys.c
237
return syscall(afs_syscalls[0], AFSCALL_PIOCTL,
crypto/heimdal/lib/kafs/afssys.c
242
return syscall(afs_syscalls[0],
crypto/heimdal/lib/kafs/afssys.c
309
return syscall(afs_syscalls[0], AFSCALL_SETPAG);
crypto/heimdal/lib/kafs/afssys.c
313
return syscall(afs_syscalls[1]);
crypto/heimdal/lib/kafs/afssys.c
366
syscall(syscall_num, AFSCALL_PIOCTL,
crypto/heimdal/lib/kafs/afssys.c
392
syscall(syscall_pioctl,
crypto/heimdal/lib/kafs/afssys.c
41
unsigned long syscall;
crypto/heimdal/lib/kafs/afssys.c
46
unsigned long syscall;
crypto/krb5/src/lib/crypto/krb/prng.c
133
r = syscall(SYS_getrandom, buf, len, 0);
crypto/krb5/src/lib/krb5/os/lock_file.c
61
#define fcntl(fd, cmd, arg) syscall(SYS_fcntl64, fd, cmd, arg)
crypto/krb5/src/util/verto/ev.c
389
# define clock_gettime(id, ts) syscall (SYS_clock_gettime, (id), (ts))
crypto/openssl/crypto/mem_sec.c
566
if (syscall(SYS_mlock2, sh.arena, sh.arena_size, MLOCK_ONFAULT) < 0) {
crypto/openssl/crypto/riscvcap.c
100
return syscall(__NR_riscv_hwprobe, pairs, pair_count, cpu_count, cpus, flags);
crypto/openssl/crypto/sparcv9cap.c
234
int ret = syscall(340);
crypto/openssl/engines/e_afalg.c
110
return syscall(__NR_io_setup, n, ctx);
crypto/openssl/engines/e_afalg.c
115
return syscall(__NR_eventfd2, n, 0);
crypto/openssl/engines/e_afalg.c
120
return syscall(__NR_io_destroy, ctx);
crypto/openssl/engines/e_afalg.c
125
return syscall(__NR_io_submit, ctx, n, iocb);
crypto/openssl/engines/e_afalg.c
141
int ret = syscall(__NR_io_pgetevents_time64, ctx, min, max, events,
crypto/openssl/engines/e_afalg.c
154
return syscall(__NR_io_getevents, ctx, min, max, events, timeout);
crypto/openssl/engines/e_afalg.c
168
return syscall(__NR_io_getevents, ctx, min, max, events, &ts32);
crypto/openssl/engines/e_afalg.c
170
return syscall(__NR_io_getevents, ctx, min, max, events, NULL);
crypto/openssl/providers/implementations/rands/seeding/rand_unix.c
390
return syscall(__NR_getrandom, buf, buflen, 0);
include/unistd.h
591
int syscall(int, ...);
lib/libc/include/libc_private.h
261
#define INTERPOS_SYS(syscall, ...) \
lib/libc/include/libc_private.h
262
_INTERPOS_SYS(__sys_## syscall ##_t, INTERPOS_## syscall \
lib/libc/net/sctp_sys_calls.c
1190
return (syscall(SYS_sctp_peeloff, sd, assoc_id));
lib/libc/net/sctp_sys_calls.c
527
return (syscall(SYS_sctp_generic_sendmsg, s,
lib/libc/net/sctp_sys_calls.c
641
return (syscall(SYS_sctp_generic_sendmsg, sd,
lib/libc/net/sctp_sys_calls.c
702
ret = syscall(SYS_sctp_generic_sendmsg, sd,
lib/libc/net/sctp_sys_calls.c
812
return (syscall(SYS_sctp_generic_recvmsg, s,
lib/libpmc/libpmc.c
78
#define PMC_CALL(op, params) syscall(pmc_syscall, (op), (params))
lib/libsys/_libsys.h
692
int __sys_afs3_syscall(long syscall, long parm1, long parm2, long parm3, long parm4, long parm5, long parm6);
lib/libsys/amd64/SYS.h
41
syscall
lib/libthr/thread/thr_fork.c
212
ret = syscall(SYS_fork);
lib/libthr/thread/thr_fork.c
215
ret = syscall(SYS_pdfork, a->fdp, a->flags);
lib/libthr/thread/thr_rtld.c
285
syscall(SYS_getpid);
lib/libthr/thread/thr_sig.c
420
syscall(SYS_sigreturn, uc);
share/examples/kld/syscall/module/syscall.c
83
SYSCALL_MODULE(syscall, &offset, &hello_sysent, load, NULL);
share/examples/kld/syscall/test/call.c
50
return syscall (syscall_num);
stand/uboot/api_public.h
75
scp_t syscall; /* entry point to the API */
stand/uboot/glue.c
145
if (!syscall(API_GETC, NULL, &c))
stand/uboot/glue.c
156
if (!syscall(API_TSTC, NULL, &t))
stand/uboot/glue.c
166
syscall(API_PUTC, NULL, &c);
stand/uboot/glue.c
173
syscall(API_PUTS, NULL, s);
stand/uboot/glue.c
186
syscall(API_RESET, NULL);
stand/uboot/glue.c
204
if (!syscall(API_GET_SYS_INFO, &err, &si))
stand/uboot/glue.c
220
syscall(API_UDELAY, NULL, &usec);
stand/uboot/glue.c
228
if (!syscall(API_GET_TIMER, NULL, &cur, &base))
stand/uboot/glue.c
266
if (!syscall(API_DEV_ENUM, NULL, di))
stand/uboot/glue.c
280
if (!syscall(API_DEV_ENUM, NULL, di))
stand/uboot/glue.c
302
if (!syscall(API_DEV_OPEN, &err, di))
stand/uboot/glue.c
317
if (!syscall(API_DEV_CLOSE, NULL, di))
stand/uboot/glue.c
369
if (!syscall(API_DEV_READ, &err, di, buf, &len, &start, &act_len))
stand/uboot/glue.c
401
if (!syscall(API_DEV_READ, &err, di, buf, &len, &act_len))
stand/uboot/glue.c
420
if (!syscall(API_DEV_WRITE, &err, di, buf, &len))
stand/uboot/glue.c
521
if (!syscall(API_ENV_GET, NULL, name, &value))
stand/uboot/glue.c
531
syscall(API_ENV_SET, NULL, name, value);
stand/uboot/glue.c
548
if (!syscall(API_ENV_ENUM, NULL, last, &env))
stand/uboot/glue.h
47
int syscall(int, int *, ...);
stand/uboot/main.c
449
syscall_ptr = sig->syscall;
stand/uboot/main.c
87
printf(" sc entry\t= 0x%08x\n", sig->syscall);
sys/arm/arm/syscall.c
165
syscall(td, frame);
sys/i386/i386/trap.c
108
void syscall(struct trapframe *frame);
sys/kern/systrace_args.c
1817
iarg[a++] = p->syscall; /* long */
sys/powerpc/powerpc/trap.c
291
syscall(frame);
sys/powerpc/powerpc/trap.c
90
static void syscall(struct trapframe *frame);
sys/sys/sysproto.h
972
char syscall_l_[PADL_(long)]; long syscall; char syscall_r_[PADR_(long)];
tests/sys/audit/open.c
75
ATF_REQUIRE(syscall(SYS_open, path, flag) != -1); \
tests/sys/audit/open.c
94
ATF_REQUIRE_EQ(-1, syscall(SYS_open, errpath, flag)); \
tests/sys/capsicum/linux.cc
1139
EXPECT_OK(syscall(__NR_io_setup, 10, &ctx));
tests/sys/capsicum/linux.cc
1155
EXPECT_NOTCAPABLE(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1157
EXPECT_OK(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1161
EXPECT_NOTCAPABLE(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1163
EXPECT_NOTCAPABLE(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1166
EXPECT_FAIL_NOT_NOTCAPABLE(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1168
EXPECT_FAIL_NOT_NOTCAPABLE(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1173
EXPECT_NOTCAPABLE(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1175
EXPECT_OK(syscall(__NR_io_submit, ctx, 1, reqs));
tests/sys/capsicum/linux.cc
1177
EXPECT_OK(syscall(__NR_io_destroy, ctx));
tests/sys/capsicum/linux.cc
1196
int rc = syscall(__NR_kcmp, parent, parent, KCMP_FILE, fd, fd);
tests/sys/capsicum/linux.cc
1205
EXPECT_OK(syscall(__NR_kcmp, parent, child, KCMP_FILE, fd, fd));
tests/sys/capsicum/linux.cc
1211
EXPECT_NE(0, syscall(__NR_kcmp, parent, child, KCMP_FILE, fd, fd));
tests/sys/capsicum/linux.cc
1327
EXPECT_EQ(0, syscall(__NR_cap_rights_limit, fd, &rights, 0, 0, NULL, 0));
tests/sys/capsicum/linux.cc
1331
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, 0, 0, NULL, 1));
tests/sys/capsicum/linux.cc
1334
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, CAP_FCNTL_GETFL, 0, NULL, 0));
tests/sys/capsicum/linux.cc
1338
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, 0, 1, &ioctl1, 0));
tests/sys/capsicum/linux.cc
1341
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, 0, 1, NULL, 0));
tests/sys/capsicum/linux.cc
1344
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, 0, -2, NULL, 0));
tests/sys/capsicum/linux.cc
1347
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, NULL, 0, 0, NULL, 0));
tests/sys/capsicum/linux.cc
1351
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, 0, 0, NULL, 0));
tests/sys/capsicum/linux.cc
1355
EXPECT_EQ(-1, syscall(__NR_cap_rights_limit, fd, &rights, 0, 0, NULL, 0));
tests/sys/capsicum/linux.cc
1394
return syscall(__NR_getrandom, buf, buflen, flags);
tests/sys/capsicum/linux.cc
1415
return syscall(__NR_memfd_create, name, flags);
tests/sys/capsicum/linux.cc
977
EXPECT_CAPMODE(syscall(__NR_prctl, big_cmd, 0, 0, 0, 0));
tests/sys/capsicum/overhead.cc
15
syscall(nr, arg1, arg2, arg3);
tests/sys/kern/ktrace_test.c
546
struct ktr_syscall *syscall;
tests/sys/kern/ktrace_test.c
573
ATF_REQUIRE(header.ktr_len >= (int)sizeof(*syscall));
tests/sys/kern/ktrace_test.c
575
syscall = xmalloc(header.ktr_len);
tests/sys/kern/ktrace_test.c
576
n = read(fd, syscall, header.ktr_len);
tests/sys/kern/ktrace_test.c
579
if (syscall->ktr_code == SYS_sigwait) {
tests/sys/kern/ktrace_test.c
580
free(syscall);
tests/sys/kern/ktrace_test.c
587
ATF_REQUIRE(header.ktr_len >= (int)sizeof(*syscall));
tests/sys/kern/ktrace_test.c
589
syscall = xmalloc(header.ktr_len);
tests/sys/kern/ktrace_test.c
590
n = read(fd, syscall, header.ktr_len);
tests/sys/kern/ktrace_test.c
594
ATF_REQUIRE_EQ(syscall->ktr_code, SYS_execve);
tests/sys/kern/ktrace_test.c
595
free(syscall);
tests/sys/kern/sigsys.c
41
ATF_REQUIRE(syscall(273) == -1); /* reserved */
tests/sys/kern/sigsys.c
46
ATF_REQUIRE(syscall(440) == -1); /* SYS_kse_switchin */
tests/sys/kern/sigsys.c
52
ATF_REQUIRE(syscall(3000000) == -1);
tests/sys/kern/sigsys.c
57
ATF_REQUIRE(syscall(SYS_afs3_syscall) == -1);
tools/build/cross-build/include/linux/unistd.h
74
return (syscall(__NR_getrandom, buf, buflen, 0));
tools/regression/doat/doat.c
196
tests[0].syscall = SYS_faccessat;
tools/regression/doat/doat.c
236
tests[1].syscall = SYS_fchmodat;
tools/regression/doat/doat.c
271
tests[2].syscall = SYS_fchownat;
tools/regression/doat/doat.c
312
tests[3].syscall = SYS_fstatat;
tools/regression/doat/doat.c
347
tests[4].syscall = SYS_futimesat;
tools/regression/doat/doat.c
368
tests[5].syscall = SYS_linkat;
tools/regression/doat/doat.c
415
tests[6].syscall = SYS_mkdirat;
tools/regression/doat/doat.c
432
tests[7].syscall = SYS_mkfifoat;
tools/regression/doat/doat.c
449
tests[8].syscall = SYS_mknodat;
tools/regression/doat/doat.c
469
tests[9].syscall = SYS_openat;
tools/regression/doat/doat.c
499
tests[10].syscall = SYS_readlinkat;
tools/regression/doat/doat.c
519
tests[11].syscall = SYS_renameat;
tools/regression/doat/doat.c
549
tests[12].syscall = SYS_symlinkat;
tools/regression/doat/doat.c
567
tests[13].syscall = SYS_unlinkat;
tools/regression/doat/doat.c
60
int syscall;
tools/regression/doat/doat.c
601
tests[14].syscall = SYS_fexecve;
tools/regression/doat/doat.c
640
error = syscall(tests[i].syscall,
tools/regression/kgssapi/gsstest.c
186
syscall(syscall_num, 2, &args, &res);
tools/regression/kgssapi/gsstest.c
213
syscall(syscall_num, 2, &args, &res);
tools/regression/kgssapi/gsstest.c
239
syscall(syscall_num, 2, &args, &res);
tools/regression/kgssapi/gsstest.c
266
syscall(syscall_num, 2, &args, &res);
tools/regression/kgssapi/gsstest.c
284
syscall(syscall_num, 2, &args, &res);
tools/regression/kgssapi/gsstest.c
295
syscall(syscall_num, 3, NULL, NULL);
tools/regression/kgssapi/gsstest.c
298
syscall(syscall_num, 4, NULL, NULL);
tools/regression/kgssapi/gsstest.c
97
syscall(syscall_num, 1, NULL, NULL);
tools/regression/security/cap_test/cap_test.h
67
#define CHECK_SYSCALL_SUCCEEDS(syscall, ...) do { \
tools/regression/security/cap_test/cap_test.h
68
if (syscall(__VA_ARGS__) < 0) \
tools/regression/security/cap_test/cap_test.h
70
__func__, __LINE__, #syscall); \
tools/regression/security/cap_test/cap_test.h
74
#define CHECK_SYSCALL_FAILS(expected_errno, syscall, ...) do { \
tools/regression/security/cap_test/cap_test.h
75
if (syscall(__VA_ARGS__) < 0) { \
tools/regression/security/cap_test/cap_test.h
78
__func__, __LINE__, #syscall); \
tools/regression/security/cap_test/cap_test.h
81
__func__, __LINE__, #syscall); \
tools/regression/security/cap_test/cap_test.h
86
#define CHECK_SYSCALL_FAILS_BUT_NOT_WITH(bad_errno, syscall, ...) do { \
tools/regression/security/cap_test/cap_test.h
87
if (syscall(__VA_ARGS__) < 0) { \
tools/regression/security/cap_test/cap_test.h
90
__func__, __LINE__, #syscall); \
tools/regression/security/cap_test/cap_test.h
93
__func__, __LINE__, #syscall); \
tools/regression/security/cap_test/cap_test_capabilities.c
101
SYSCALL_FAIL(syscall, "errno != ENOTCAPABLE"); \
tools/regression/security/cap_test/cap_test_capabilities.c
55
#define SYSCALL_FAIL(syscall, message) \
tools/regression/security/cap_test/cap_test_capabilities.c
56
FAIL("%s:\t%s (rights 0x%jx)", #syscall, message, rights)
tools/regression/security/cap_test/cap_test_capabilities.c
63
#define CHECK_RESULT(syscall, rights_needed, succeeded) do { \
tools/regression/security/cap_test/cap_test_capabilities.c
69
SYSCALL_FAIL(syscall, "failed"); \
tools/regression/security/cap_test/cap_test_capabilities.c
74
" (rights 0x%jx)", #syscall, \
tools/regression/security/cap_test/cap_test_capabilities.c
77
SYSCALL_FAIL(syscall, "errno != ENOTCAPABLE"); \
tools/regression/security/cap_test/cap_test_capmode.c
53
#define CHECK_SYSCALL_VOID_NOT_ECAPMODE(syscall, ...) do { \
tools/regression/security/cap_test/cap_test_capmode.c
55
(void)syscall(__VA_ARGS__); \
tools/regression/security/cap_test/cap_test_capmode.c
57
FAIL("capmode: %s failed with ECAPMODE", #syscall); \
tools/regression/security/proc_to_proc/scenario.c
197
return (syscall(374, flag));
tools/test/stress2/testcases/openat/doat.c
193
tests[0].syscall = SYS_faccessat;
tools/test/stress2/testcases/openat/doat.c
233
tests[1].syscall = SYS_fchmodat;
tools/test/stress2/testcases/openat/doat.c
268
tests[2].syscall = SYS_fchownat;
tools/test/stress2/testcases/openat/doat.c
309
tests[3].syscall = SYS_fstatat;
tools/test/stress2/testcases/openat/doat.c
344
tests[4].syscall = SYS_futimesat;
tools/test/stress2/testcases/openat/doat.c
365
tests[5].syscall = SYS_linkat;
tools/test/stress2/testcases/openat/doat.c
412
tests[6].syscall = SYS_mkdirat;
tools/test/stress2/testcases/openat/doat.c
429
tests[7].syscall = SYS_mkfifoat;
tools/test/stress2/testcases/openat/doat.c
446
tests[8].syscall = SYS_mknodat;
tools/test/stress2/testcases/openat/doat.c
466
tests[9].syscall = SYS_openat;
tools/test/stress2/testcases/openat/doat.c
496
tests[10].syscall = SYS_readlinkat;
tools/test/stress2/testcases/openat/doat.c
516
tests[11].syscall = SYS_renameat;
tools/test/stress2/testcases/openat/doat.c
546
tests[12].syscall = SYS_symlinkat;
tools/test/stress2/testcases/openat/doat.c
563
tests[13].syscall = SYS_unlinkat;
tools/test/stress2/testcases/openat/doat.c
57
int syscall;
tools/test/stress2/testcases/openat/doat.c
596
tests[14].syscall = SYS_fexecve;
tools/test/stress2/testcases/openat/doat.c
658
error = syscall(tests[i].syscall,
tools/test/xregs_sig/xregs_sig.c
152
printf("thr %ld\n", syscall(SYS_gettid));
usr.bin/truss/setup.c
456
struct syscall *sc;
usr.bin/truss/setup.c
532
struct syscall *sc;
usr.bin/truss/syscall.h
221
STAILQ_ENTRY(syscall) entries;
usr.bin/truss/syscall.h
230
struct syscall *get_syscall(struct threadinfo *, u_int, u_int);
usr.bin/truss/syscalls.c
2829
struct syscall *sc;
usr.bin/truss/syscalls.c
2882
struct syscall *sc;
usr.bin/truss/syscalls.c
637
static STAILQ_HEAD(, syscall) seen_syscalls;
usr.bin/truss/syscalls.c
847
static struct syscall *
usr.bin/truss/syscalls.c
862
add_syscall(struct procabi *abi, u_int number, struct syscall *sc)
usr.bin/truss/syscalls.c
891
struct syscall *
usr.bin/truss/syscalls.c
894
struct syscall *sc;
usr.bin/truss/truss.h
40
struct syscall;
usr.bin/truss/truss.h
52
struct syscall *sc;
usr.bin/truss/truss.h
62
struct syscall *syscalls[SYSCALL_NORMAL_COUNT];
usr.bin/truss/truss.h
79
struct syscall *sc;