Home
last modified time | relevance | path

Searched refs:who (Results 1 - 25 of 69) sorted by relevance

123

/third_party/ltp/testcases/kernel/syscalls/getrusage/
H A Dgetrusage02.c12 * - EINVAL with invalid who
24 static int libc_getrusage(int who, void *usage) in libc_getrusage() argument
26 return getrusage(who, usage); in libc_getrusage()
29 static int sys_getrusage(int who, void *usage) in sys_getrusage() argument
31 return tst_syscall(__NR_getrusage, who, usage); in sys_getrusage()
35 int who; member
45 int (*getrusage)(int who, void *usage);
64 TST_EXP_FAIL(tv->getrusage(tc[i].who, tc[i].usage), tc[i].exp_errno, in verify_getrusage()
65 "getrusage(%i, %p)", tc[i].who, tc[i].usage); in verify_getrusage()
H A Dgetrusage01.c19 int who; member
29 TST_EXP_PASS(getrusage(tc[i].who, usage), "getrusage(%s, %p)", tc[i].desc, usage); in run()
/third_party/python/Lib/test/
H A Dtest_string.py209 s = Template('$who likes to eat a bag of $what worth $$100')
210 self.assertEqual(s.substitute(dict(who='tim', what='ham')),
212 self.assertRaises(KeyError, s.substitute, dict(who='tim'))
216 s = Template('$who likes ${what} for ${meal}')
217 d = dict(who='tim', what='ham', meal='dinner')
220 dict(who='tim', what='ham'))
234 s = Template('$who likes to eat a bag of $$what worth $$100')
235 eq(s.substitute(dict(who='tim', what='ham')),
237 s = Template('$who likes $$')
238 eq(s.substitute(dict(who
[all...]
/third_party/rust/crates/nix/test/test_kmod/hello_mod/
H A Dhello.c8 static char *who = "World"; variable
12 module_param(who, charp, 0000);
13 MODULE_PARM_DESC(who, "Whot to greet");
17 printk(KERN_INFO "Hello %s (%d)!\n", who, number); in init_module()
23 printk(KERN_INFO "Goodbye %s (%d)!\n", who, number); in cleanup_module()
/third_party/ltp/testcases/kernel/syscalls/getpriority/
H A Dgetpriority02.c13 * process was located for 'which' and 'who' arguments.
26 int who; member
42 TEST(getpriority(tc->which, tc->who)); in verify_getpriority()
46 "returned %li", tc->which, tc->who, TST_RET); in verify_getpriority()
53 tc->which, tc->who, tst_strerrno(tc->exp_errno)); in verify_getpriority()
58 tc->which, tc->who); in verify_getpriority()
/third_party/musl/src/thread/
H A Dpthread_atfork.c20 void __fork_handler(int who) in __fork_handler() argument
24 if (who < 0) { in __fork_handler()
34 if (gwpfuncs && !who && gwpfuncs->parent) gwpfuncs->parent(); in __fork_handler()
35 if (gwpfuncs && who && gwpfuncs->child) gwpfuncs->child(); in __fork_handler()
37 if (!who && p->parent) p->parent(); in __fork_handler()
38 else if (who && p->child) p->child(); in __fork_handler()
H A Dpthread_key_create.c26 void __pthread_key_atfork(int who) in __pthread_key_atfork() argument
28 if (who<0) __pthread_rwlock_rdlock(&key_lock); in __pthread_key_atfork()
29 else if (!who) __pthread_rwlock_unlock(&key_lock); in __pthread_key_atfork()
/third_party/ltp/testcases/kernel/syscalls/setpriority/
H A Dsetpriority01.c26 int *who; member
53 TEST(setpriority(tc->which, *tc->who, new_prio)); in setpriority_test()
58 tc->which, *tc->who, new_prio); in setpriority_test()
63 cur_prio = SAFE_GETPRIORITY(tc->which, *tc->who); in setpriority_test()
75 str_which(tc->which), tc->which, *tc->who); in setpriority_test()
85 str_which(tc->which), tc->which, *tc->who); in verify_setpriority()
H A Dsetpriority02.c13 * process was located for 'which' and 'who' arguments.
38 int who; member
62 TEST(setpriority(tc->which, tc->who, tc->prio)); in setpriority_test()
67 "returned %ld", tc->which, tc->who, tc->prio, desc, in setpriority_test()
75 tc->which, tc->who, tc->prio, desc, in setpriority_test()
82 tc->which, tc->who, tc->prio, desc); in setpriority_test()
/third_party/eudev/src/collect/
H A Dcollect.c216 struct _mate *who = NULL; in invite() local
226 who = him; in invite()
229 if (debug && !who) in invite()
244 struct _mate *who = NULL; in reject() local
254 who = him; in reject()
257 if (debug && !who) in reject()
439 struct _mate *who; in main() local
441 who = NULL; in main()
446 who = him; in main()
448 if (!who) { in main()
[all...]
/third_party/musl/src/malloc/mallocng/
H A Dglue.h66 void __malloc_atfork(int who) { malloc_atfork(who); }
88 static inline void malloc_atfork(int who) in malloc_atfork() argument
90 if (who<0) rdlock(); in malloc_atfork()
91 else if (who>0) resetlock(); in malloc_atfork()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/message2/
H A DCustomFormatterPersonTest.java102 Person who = new Person("Mr.", "John", "Doe"); in testCustomFunctions()
106 .arguments(Args.of("name", who)) in testCustomFunctions()
113 .arguments(Args.of("name", who)) in testCustomFunctions()
120 .arguments(Args.of("name", who)) in testCustomFunctions()
125 .arguments(Args.of("name", who)) in testCustomFunctions()
130 .arguments(Args.of("name", who)) in testCustomFunctions()
135 .arguments(Args.of("name", who)) in testCustomFunctions()
140 .arguments(Args.of("name", who)) in testCustomFunctions()
/third_party/ltp/testcases/kernel/syscalls/ioprio/
H A Dioprio.h20 static inline int sys_ioprio_get(int which, int who) in sys_ioprio_get() argument
22 return tst_syscall(__NR_ioprio_get, which, who); in sys_ioprio_get()
25 static inline int sys_ioprio_set(int which, int who, int ioprio) in sys_ioprio_set() argument
27 return tst_syscall(__NR_ioprio_set, which, who, ioprio); in sys_ioprio_set()
/third_party/musl/src/misc/
H A Dgetpriority.c4 int getpriority(int which, id_t who) in getpriority() argument
7 return syscall(SYS_getpriority, which, who); in getpriority()
9 int ret = syscall(SYS_getpriority, which, who); in getpriority()
H A Dgetrusage.c6 int getrusage(int who, struct rusage *ru) in getrusage() argument
11 r = __syscall(SYS_getrusage_time64, who, kru64); in getrusage()
25 r = __syscall(SYS_getrusage, who, dest); in getrusage()
H A Dsetpriority.c4 int setpriority(int which, id_t who, int prio) in setpriority() argument
6 return syscall(SYS_setpriority, which, who, prio); in setpriority()
/third_party/python/Modules/clinic/
H A Dresource.c.h8 "getrusage($module, who, /)\n"
16 resource_getrusage_impl(PyObject *module, int who);
22 int who; in resource_getrusage() local
24 who = _PyLong_AsInt(arg); in resource_getrusage()
25 if (who == -1 && PyErr_Occurred()) { in resource_getrusage()
28 return_value = resource_getrusage_impl(module, who); in resource_getrusage()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dgetpriority.c4 int getpriority(int which, id_t who) in getpriority() argument
6 return syscall(SYS_getpriority, which, who); in getpriority()
/third_party/musl/compat/time32/
H A Dgetrusage_time32.c25 int __getrusage_time32(int who, struct compat_rusage *usage) in __getrusage_time32() argument
28 int r = getrusage(who, &ru); in __getrusage_time32()
/third_party/rust/crates/rustix/tests/net/
H A Dv6.rs27 let who = match getsockname(&connection_socket).unwrap() { in server()
37 *port = who.port(); in server()
H A Dv4.rs23 let who = match getsockname(&connection_socket).unwrap() { in server()
33 *port = who.port(); in server()
H A Dpoll.rs26 let who = match getsockname(&connection_socket).unwrap() { in server()
36 *port = who.port(); in server()
/third_party/node/deps/uvwasi/src/
H A Dclocks.c45 #define UVWASI__GETRUSAGE_AND_RETURN(who, time) \
48 if (0 != getrusage((who), &ru)) \
/third_party/rust/crates/rustix/tests/io/
H A Depoll.rs21 let who = match getsockname(&listen_sock).unwrap() { in server()
29 *port = who.port(); in server()
/third_party/ltp/lib/
H A Dsafe_macros.c148 int who, struct rusage *usage) in safe_getrusage()
152 rval = getrusage(who, usage); in safe_getrusage()
156 "getrusage(%d,%p) failed", who, usage); in safe_getrusage()
159 "Invalid getrusage(%d,%p) return value %d", who, in safe_getrusage()
1033 int safe_getpriority(const char *file, const int lineno, int which, id_t who) in safe_getpriority() argument
1038 rval = getpriority(which, who); in safe_getpriority()
1042 "getpriority(%i, %i) failed", which, who); in safe_getpriority()
1046 which, who, rval); in safe_getpriority()
147 safe_getrusage(const char *file, const int lineno, void (*cleanup_fn) (void), int who, struct rusage *usage) safe_getrusage() argument

Completed in 13 milliseconds

123