/freebsd/tools/regression/sockets/listen_backlog/ |
H A D | listen_backlog.c | 68 const char *test, const char *testfunc) in socket_get_backlog() 75 warn("%s: %s: %s: socket_get_backlog: getsockopt(" in socket_get_backlog() 76 "SOL_SOCKET, SO_LISTENQLIMIT)", testclass, test, in socket_get_backlog() 84 testclass, test, testfunc, len); in socket_get_backlog() 101 const char *test) in socket_listen() argument 107 warn("%s: %s: socket_listen: socket(%s, %s)", testclass, in socket_listen() 108 test, domainstring, typestring); in socket_listen() 113 if (socket_get_backlog(sock, &backlog_retrieved, testclass, test, in socket_listen() 121 testclass, test, backlog_retrieved, in socket_listen() 128 warn("%s: %s: socket_listen: listen(, %d)", testclass, test, in socket_listen() [all …]
|
/freebsd/tools/regression/priv/ |
H A D | priv_netinet_ipsec.c | 54 struct test *test, int af) in priv_netinet_ipsec_policy_bypass_setup_af() argument 59 warn("%s: ipsec_set_policy(NULL)", __func__); in priv_netinet_ipsec_policy_bypass_setup_af() 66 warn("%s: socket4", __func__); in priv_netinet_ipsec_policy_bypass_setup_af() 74 warn("%s: socket6", __func__); in priv_netinet_ipsec_policy_bypass_setup_af() 88 struct test *test) in priv_netinet_ipsec_policy4_bypass_setup() argument 91 return (priv_netinet_ipsec_policy_bypass_setup_af(asroot, injail, test, in priv_netinet_ipsec_policy4_bypass_setup() 98 struct test *test) in priv_netinet_ipsec_policy6_bypass_setup() argument 101 return (priv_netinet_ipsec_policy_bypass_setup_af(asroot, injail, test, in priv_netinet_ipsec_policy6_bypass_setup() 109 struct test *test, int af) in priv_netinet_ipsec_policy_entrust_setup_af() argument 114 warn("%s: ipsec_set_policy(NULL)", __func__); in priv_netinet_ipsec_policy_entrust_setup_af() [all …]
|
H A D | priv_msgbuf.c | 54 priv_msgbuf_privonly_setup(int asroot, int injail, struct test *test) in priv_msgbuf_privonly_setup() argument 65 warn("priv_msgbuf_privonly_setup: sysctlbyname query"); in priv_msgbuf_privonly_setup() 71 warn("priv_msgbuf_privonly_setup: sysctlbyname set"); in priv_msgbuf_privonly_setup() 79 priv_msgbuf_privonly(int asroot, int injail, struct test *test) in priv_msgbuf_privonly() argument 99 priv_msgbuf_unprivok_setup(int asroot, int injail, struct test *test) in priv_msgbuf_unprivok_setup() argument 110 warn("priv_msgbuf_unprivok_setup: sysctlbyname query"); in priv_msgbuf_unprivok_setup() 116 warn("priv_msgbuf_unprivok_setup: sysctlbyname set"); in priv_msgbuf_unprivok_setup() 124 priv_msgbuf_unprivok(int asroot, int injail, struct test *test) in priv_msgbuf_unprivok() argument 141 priv_msgbuf_cleanup(int asroot, int injail, struct test *test) in priv_msgbuf_cleanup() argument
|
H A D | priv_acct.c | 63 priv_acct_setup(int asroot, int injail, struct test *test) in priv_acct_setup() argument 70 warn("priv_acct_setup: sysctlbyname(%s)", SYSCTL_NAME); in priv_acct_setup() 83 if (test->t_test_func == priv_acct_enable || in priv_acct_setup() 84 test->t_test_func == priv_acct_noopdisable) { in priv_acct_setup() 86 warn("priv_acct_setup: acct(NULL)"); in priv_acct_setup() 89 } else if (test->t_test_func == priv_acct_disable || in priv_acct_setup() 90 test->t_test_func == priv_acct_rotate) { in priv_acct_setup() 92 warn("priv_acct_setup: acct(\"%s\")", fpath1); in priv_acct_setup() 100 priv_acct_cleanup(int asroot, int injail, struct test *test) in priv_acct_cleanup() argument 115 priv_acct_enable(int asroot, int injail, struct test *test) in priv_acct_enable() argument [all …]
|
H A D | priv_audit_setaudit.c | 49 priv_audit_setaudit_setup(int asroot, int injail, struct test *test) in priv_audit_setaudit_setup() argument 53 warn("priv_audit_setaudit_setup: getaudit"); in priv_audit_setaudit_setup() 57 warn("priv_audit_setaudit_setup: getaudit_addr"); in priv_audit_setaudit_setup() 65 priv_audit_setaudit(int asroot, int injail, struct test *test) in priv_audit_setaudit() argument 84 priv_audit_setaudit_addr(int asroot, int injail, struct test *test) in priv_audit_setaudit_addr() argument 104 priv_audit_setaudit_cleanup(int asroot, int injail, struct test *test) in priv_audit_setaudit_cleanup() argument
|
H A D | main.c | 68 static struct test tests[] = { 362 static int tests_count = sizeof(tests) / sizeof(struct test); 365 expect(const char *test, int error, int expected_error, int expected_errno) in expect() argument 371 warnx("%s: returned 0", test); in expect() 376 warn("%s: returned (%d, %d)", test, error, errno); in expect() 379 warn("%s: returned (%d, %d)", test, error, errno); in expect() 385 setup_dir(const char *test, char *dpathp, uid_t uid, gid_t gid, mode_t mode) in setup_dir() argument 390 err(-1, "test %s: mkdtemp", test); in setup_dir() 393 err(-1, "test %s: chown(%s, %d, %d)", test, dpathp, uid, in setup_dir() 397 err(-1, "test %s: chmod(%s, 0%o)", test, dpathp, mode); in setup_dir() [all …]
|
H A D | priv_vfs_generation.c | 54 priv_vfs_generation_setup(int asroot, int injail, struct test *test) in priv_vfs_generation_setup() argument 69 warn("priv_vfs_generation_setup: fstat(%s)", fpath); in priv_vfs_generation_setup() 83 priv_vfs_generation(int asroot, int injail, struct test *test) in priv_vfs_generation() argument 90 warn("priv_vfs_generation(asroot, injail) stat"); in priv_vfs_generation() 111 priv_vfs_generation_cleanup(int asroot, int injail, struct test *test) in priv_vfs_generation_cleanup() argument
|
H A D | priv_sysctl_write.c | 57 priv_sysctl_write_setup(int asroot, int injail, struct test *test) in priv_sysctl_write_setup() argument 66 warn("priv_sysctl_write_setup: sysctlbyname(\"%s\")", in priv_sysctl_write_setup() 75 warn("priv_sysctl_write_setup: sysctlbyname(\"%s\")", in priv_sysctl_write_setup() 84 priv_sysctl_write(int asroot, int injail, struct test *test) in priv_sysctl_write() argument 104 priv_sysctl_writejail(int asroot, int injail, struct test *test) in priv_sysctl_writejail() argument 123 priv_sysctl_write_cleanup(int asroot, int injail, struct test *test) in priv_sysctl_write_cleanup() argument
|
H A D | priv_io.c | 56 priv_io_setup(int asroot, int asjail, struct test *test) in priv_io_setup() argument 61 warn("priv_io_setup: stat(%s)", DEV_IO); in priv_io_setup() 71 warn("priv_io_setup: chmod(%s, 0%o)", DEV_IO, NEW_PERMS); in priv_io_setup() 79 priv_io(int asroot, int injail, struct test *test) in priv_io() argument 101 priv_io_cleanup(int asroot, int asjail, struct test *test) in priv_io_cleanup() argument
|
H A D | priv_sched_setpriority.c | 56 priv_sched_setpriority_setup(int asroot, int injail, struct test *test) in priv_sched_setpriority_setup() argument 65 if (test->t_test_func == priv_sched_setpriority_aproc) { in priv_sched_setpriority_setup() 69 if (test->t_test_func == priv_sched_setpriority_myproc) in priv_sched_setpriority_setup() 75 warn("priv_sched_setup: fork"); in priv_sched_setpriority_setup() 94 priv_sched_setpriority_curproc(int asroot, int injail, struct test *test) in priv_sched_setpriority_curproc() argument 114 priv_sched_setpriority_myproc(int asroot, int injail, struct test *test) in priv_sched_setpriority_myproc() argument 134 priv_sched_setpriority_aproc(int asroot, int injail, struct test *test) in priv_sched_setpriority_aproc() argument 154 priv_sched_setpriority_cleanup(int asroot, int injail, struct test *test) in priv_sched_setpriority_cleanup() argument 163 warn("waitpid(%d (test), NULL, 0)", in priv_sched_setpriority_cleanup()
|
H A D | priv_proc_setrlimit.c | 55 priv_proc_setrlimit_setup(int asroot, int injail, struct test *test) in priv_proc_setrlimit_setup() argument 59 warn("priv_proc_setrlimit_setup: getrlimit"); in priv_proc_setrlimit_setup() 72 warn("priv_proc_setrlimit_setup: setrlimit"); in priv_proc_setrlimit_setup() 84 priv_proc_setrlimit_raisemax(int asroot, int injail, struct test *test) in priv_proc_setrlimit_raisemax() argument 112 struct test *test) in priv_proc_setrlimit_raisecur_nopriv() argument 139 priv_proc_setrlimit_raisecur(int asroot, int injail, struct test *test) in priv_proc_setrlimit_raisecur() argument 162 priv_proc_setrlimit_cleanup(int asroot, int injail, struct test *test) in priv_proc_setrlimit_cleanup() argument
|
H A D | priv_sched_rtprio.c | 60 priv_sched_rtprio_setup(int asroot, int injail, struct test *test) in priv_sched_rtprio_setup() argument 69 if (test->t_test_func == priv_sched_rtprio_aproc_normal || in priv_sched_rtprio_setup() 70 test->t_test_func == priv_sched_rtprio_aproc_idle || in priv_sched_rtprio_setup() 71 test->t_test_func == priv_sched_rtprio_aproc_realtime) { in priv_sched_rtprio_setup() 75 if (test->t_test_func == priv_sched_rtprio_myproc_normal || in priv_sched_rtprio_setup() 76 test->t_test_func == priv_sched_rtprio_myproc_idle || in priv_sched_rtprio_setup() 77 test->t_test_func == priv_sched_rtprio_myproc_realtime) { in priv_sched_rtprio_setup() 84 warn("priv_sched_setup: fork"); in priv_sched_rtprio_setup() 103 priv_sched_rtprio_curproc_normal(int asroot, int injail, struct test *test) in priv_sched_rtprio_curproc_normal() argument 126 priv_sched_rtprio_curproc_idle(int asroot, int injail, struct test *test) in priv_sched_rtprio_curproc_idle() argument [all …]
|
H A D | priv_clock_settime.c | 48 priv_clock_settime_setup(int asroot, int injail, struct test *test) in priv_clock_settime_setup() argument 52 warn("priv_clock_settime_setup: " in priv_clock_settime_setup() 60 priv_clock_settime(int asroot, int injail, struct test *test) in priv_clock_settime() argument 79 priv_clock_settime_cleanup(int asroot, int injail, struct test *test) in priv_clock_settime_cleanup() argument
|
H A D | priv_settimeofday.c | 48 priv_settimeofday_setup(int asroot, int injail, struct test *test) in priv_settimeofday_setup() argument 52 warn("priv_settimeofday_setup: gettimeofday"); in priv_settimeofday_setup() 59 priv_settimeofday(int asroot, int injail, struct test *test) in priv_settimeofday() argument 78 priv_settimeofday_cleanup(int asroot, int injail, struct test *test) in priv_settimeofday_cleanup() argument
|
H A D | priv_adjtime.c | 49 priv_adjtime_setup(int asroot, int injail, struct test *test) in priv_adjtime_setup() argument 55 warn("priv_adjtime_setup: adjtime(NULL)"); in priv_adjtime_setup() 63 priv_adjtime_set(int asroot, int injail, struct test *test) in priv_adjtime_set() argument 79 priv_adjtime_cleanup(int asroot, int injail, struct test *test) in priv_adjtime_cleanup() argument
|
H A D | priv_proc_setlogin.c | 48 priv_proc_setlogin_setup(int asroot, int injail, struct test *test) in priv_proc_setlogin_setup() argument 55 warn("priv_proc_setlogin_setup: getlogin"); in priv_proc_setlogin_setup() 63 priv_proc_setlogin(int asroot, int injail, struct test *test) in priv_proc_setlogin() argument 81 priv_proc_setlogin_cleanup(int asroot, int injail, struct test *test) in priv_proc_setlogin_cleanup() argument
|
H A D | priv_kenv_unset.c | 46 priv_kenv_unset_setup(int asroot, int injail, struct test *test) in priv_kenv_unset_setup() argument 50 warn("priv_kenv_unset: kenv"); in priv_kenv_unset_setup() 57 priv_kenv_unset(int asroot, int injail, struct test *test) in priv_kenv_unset() argument 73 priv_kenv_unset_cleanup(int asroot, int injail, struct test *test) in priv_kenv_unset_cleanup() argument
|
H A D | priv_vfs_fhstat.c | 51 priv_vfs_fhstat_setup(int asroot, int injail, struct test *test) in priv_vfs_fhstat_setup() argument 58 warn("priv_vfs_fhstat_setup: getfh(%s)", fpath); in priv_vfs_fhstat_setup() 65 priv_vfs_fhstat(int asroot, int injail, struct test *test) in priv_vfs_fhstat() argument 82 priv_vfs_fhstat_cleanup(int asroot, int injail, struct test *test) in priv_vfs_fhstat_cleanup() argument
|
H A D | priv_vfs_fhstatfs.c | 50 priv_vfs_fhstatfs_setup(int asroot, int injail, struct test *test) in priv_vfs_fhstatfs_setup() argument 57 warn("priv_vfs_fhstatfs_setup: getfh(%s)", fpath); in priv_vfs_fhstatfs_setup() 64 priv_vfs_fhstatfs(int asroot, int injail, struct test *test) in priv_vfs_fhstatfs() argument 84 priv_vfs_fhstatfs_cleanup(int asroot, int injail, struct test *test) in priv_vfs_fhstatfs_cleanup() argument
|
H A D | priv_vfs_fhopen.c | 51 priv_vfs_fhopen_setup(int asroot, int injail, struct test *test) in priv_vfs_fhopen_setup() argument 58 warn("priv_vfs_fhopen_setup: getfh(%s)", fpath); in priv_vfs_fhopen_setup() 65 priv_vfs_fhopen(int asroot, int injail, struct test *test) in priv_vfs_fhopen() argument 88 priv_vfs_fhopen_cleanup(int asroot, int injail, struct test *test) in priv_vfs_fhopen_cleanup() argument
|
H A D | priv_vfs_clearsugid.c | 75 warn("%s stat(%s)", test_case, fpath); in confirm_sugid() 90 priv_vfs_clearsugid_setup(int asroot, int injail, struct test *test) in priv_vfs_clearsugid_setup() argument 100 priv_vfs_clearsugid_chgrp(int asroot, int injail, struct test *test) in priv_vfs_clearsugid_chgrp() argument 115 priv_vfs_clearsugid_extattr(int asroot, int injail, struct test *test) in priv_vfs_clearsugid_extattr() argument 127 priv_vfs_clearsugid_write(int asroot, int injail, struct test *test) in priv_vfs_clearsugid_write() argument 143 priv_vfs_clearsugid_cleanup(int asroot, int injail, struct test *test) in priv_vfs_clearsugid_cleanup() argument
|
/freebsd/contrib/netbsd-tests/fs/ffs/ |
H A D | h_quota2_tests.c | 53 warn("rump_sys_setegid"); in quota_test0() 58 warn("rump_sys_seteuid"); in quota_test0() 64 warn("rump_sys_open"); in quota_test0() 86 warn("rump_sys_setegid"); in quota_test1() 91 warn("rump_sys_seteuid"); in quota_test1() 97 warn("rump_sys_open"); in quota_test1() 135 warn("rump_sys_setegid"); in quota_test2() 140 warn("rump_sys_seteuid"); in quota_test2() 172 warn("rump_sys_setegid"); in quota_test3() 177 warn("rump_sys_seteuid"); in quota_test3() [all …]
|
/freebsd/usr.sbin/cron/lib/ |
H A D | misc.c | 123 const char **test; in set_debug_flags() 128 for ( test = DebugFlagNames, mask = 1; in set_debug_flags() 129 *test != NULL && strcmp_until(*test, pc, ','); in set_debug_flags() 130 test++, mask <<= 1 in set_debug_flags() 134 if (!*test) { in set_debug_flags() 189 warn("%s", CRONDIR); in set_cron_cwd() 205 warn("%s", SPOOL_DIR); in set_cron_cwd() 401 warn("can't open log file %s", LOG_FILE); in log_it() 421 warn("%s", LOG_FILE); in log_it()
|
/freebsd/contrib/ntp/sntp/ |
H A D | bincheck.mf | 3 # subdir to warn folks if there is another version there. 6 @test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \ 8 test ! -f ${sbindir}/$$i \ 11 @test -z "${sbin_PROGRAMS}${asbin_SCRIPTS}" \ 13 test ! -f ${bindir}/$$i \
|
/freebsd/contrib/ntp/ |
H A D | bincheck.mf | 3 # subdir to warn folks if there is another version there. 6 @test -z "${bin_PROGRAMS}${bin_SCRIPTS}" \ 8 test ! -f ${sbindir}/$$i \ 11 @test -z "${sbin_PROGRAMS}${asbin_SCRIPTS}" \ 13 test ! -f ${bindir}/$$i \
|