Home
last modified time | relevance | path

Searched refs:how (Results 1 - 25 of 139) sorted by relevance

123456

/third_party/ltp/testcases/kernel/syscalls/openat2/
H A Dopenat201.c13 static struct open_how *how; variable
24 struct open_how **how; member
27 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, 0, &how, sizeof(*how)},
28 {&dir_fd, TEST_FILE, O_RDONLY, S_IRUSR, 0, &how, sizeof(*how)},
29 {&dir_fd, TEST_FILE, O_WRONLY, S_IWUSR, 0, &how, sizeof(*how)},
30 {&dir_fd, TEST_FILE, O_RDWR, S_IRWXU, RESOLVE_NO_XDEV, &how, sizeof(*how)},
[all...]
H A Dopenat203.c12 static struct open_how *how; variable
22 struct open_how **how; member
26 {"invalid-dfd", -1, TEST_FILE, O_RDWR | O_CREAT, S_IRWXU, 0, &how, sizeof(*how), EBADF},
27 {"invalid-pathname", AT_FDCWD, NULL, O_RDONLY | O_CREAT, S_IRUSR, 0, &how, sizeof(*how), EFAULT},
28 {"invalid-flags", AT_FDCWD, TEST_FILE, O_RDONLY, S_IWUSR, 0, &how, sizeof(*how), EINVAL},
29 {"invalid-mode", AT_FDCWD, TEST_FILE, O_RDWR | O_CREAT, -1, 0, &how, sizeof(*how), EINVA
[all...]
H A Dopenat202.c12 static struct open_how *how; variable
44 how->flags = O_RDONLY | O_CREAT; in run()
45 how->mode = S_IRUSR; in run()
46 how->resolve = tc->resolve; in run()
48 TEST(openat2(AT_FDCWD, tc->pathname, how, sizeof(*how))); in run()
84 {&how, .size = sizeof(*how)},
/third_party/mksh/
H A Dulimit.c203 int how = SOFT | HARD, optc; in c_ulimit() local
210 how = HARD; in c_ulimit()
213 how = SOFT; in c_ulimit()
243 return (set_ulimit(rlimits[i], wp[builtin_opt.optind], how)); in c_ulimit()
246 print_ulimit(rlimits[i], how); in c_ulimit()
249 print_ulimit(rlimits[i], how); in c_ulimit()
263 set_ulimit(const struct limits *l, const char *v, int how MKSH_A_UNUSED) in set_ulimit()
304 if (how & SOFT) in set_ulimit()
306 if (how & HARD) in set_ulimit()
328 print_ulimit(const struct limits *l, int how MKSH_A_UNUSE
[all...]
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_sigmask.c27 extern void intercept_pthread_sigmask(int how, sigset_t *restrict set);
51 int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in pthread_sigmask() argument
54 if (set && (unsigned)how - SIG_BLOCK > 2U) return EINVAL; in pthread_sigmask()
58 intercept_pthread_sigmask(how, &tmpset); in pthread_sigmask()
60 ret = -__syscall(SYS_rt_sigprocmask, how, new_set_ptr, old, _NSIG/8); in pthread_sigmask()
62 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in pthread_sigmask()
/third_party/ltp/include/lapi/
H A Dsafe_rt_signal.h37 int how, const sigset_t *set, in safe_rt_sigprocmask()
42 ret = tst_syscall(__NR_rt_sigprocmask, how, set, oldset, sigsetsize); in safe_rt_sigprocmask()
46 how, set, oldset, sigsetsize); in safe_rt_sigprocmask()
50 how, set, oldset, sigsetsize, ret); in safe_rt_sigprocmask()
56 #define SAFE_RT_SIGPROCMASK(how, set, oldset, sigsetsize) \
57 safe_rt_sigprocmask(__FILE__, __LINE__, how, set, oldset, sigsetsize)
36 safe_rt_sigprocmask(const char *file, const int lineno, int how, const sigset_t *set, sigset_t *oldset, size_t sigsetsize) safe_rt_sigprocmask() argument
H A Dopenat2.h19 * Arguments for how openat2(2) should open the target path. If only @flags and
36 /* how->resolve flags for openat2(2). */
51 struct open_how *how, size_t size) in openat2()
53 return tst_syscall(__NR_openat2, dfd, pathname, how, size); in openat2()
58 /* how should be kept as the first entry here */
59 struct open_how how; member
50 openat2(int dfd, const char *pathname, struct open_how *how, size_t size) openat2() argument
/third_party/python/Lib/idlelib/
H A Drpc.py25 See the Idle run.main() docstring for further information on how this was
173 how, (oid, methodname, args, kwargs) = request
191 if how == 'CALL':
196 elif how == 'QUEUE':
200 return ("ERROR", "Unsupported message type: %s" % how)
253 how, what = response
254 if how == "OK":
256 if how == "QUEUED":
258 if how == "EXCEPTION":
261 if how
[all...]
/third_party/node/deps/uv/src/unix/
H A Dpthread-fixes.c39 int uv__pthread_sigmask(int how, const sigset_t* set, sigset_t* oset) { in uv__pthread_sigmask() argument
44 return sigprocmask(how, set, oset); in uv__pthread_sigmask()
46 err = pthread_sigmask(how, set, oset); in uv__pthread_sigmask()
48 if (err == EINVAL && sigprocmask(how, set, oset) == 0) { in uv__pthread_sigmask()
/third_party/musl/src/thread/
H A Dpthread_sigmask.c5 int pthread_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in pthread_sigmask() argument
8 if (set && (unsigned)how - SIG_BLOCK > 2U) return EINVAL; in pthread_sigmask()
9 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in pthread_sigmask()
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/
H A Dmutex.cc483 : how(how_arg), in SynchWaitParams()
491 const Mutex::MuHow how; // How this thread needs to wait. member
721 static unsigned TsanFlags(Mutex::MuHow how) { in TsanFlags() argument
722 return how == kShared ? __tsan_mutex_read_lock : 0; in TsanFlags()
772 return x->waitp->how == y->waitp->how && x->priority == y->priority && in MuEquivalentWaiter()
951 } else if (waitp->how == kExclusive && in Enqueue()
1026 // there is only one such element if the element has how == kExclusive.
1044 if (w->waitp->how == kExclusive) { // wake at most 1 writer in DequeueAllWakeable()
1580 MuHow how in AwaitCommon() local
1766 LockSlow(MuHow how, const Condition *cond, int flags) LockSlow() argument
1849 LockSlowWithDeadline(MuHow how, const Condition *cond, KernelTimeout t, int flags) LockSlowWithDeadline() argument
2345 Trans(MuHow how) Trans() argument
[all...]
/third_party/musl/porting/linux/user/src/sigchain/
H A Dsigchain.c115 * @param[in] how, the value of the mask operation .
119 static int sigchain_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in sigchain_sigmask() argument
122 if (set && (unsigned)how - SIG_BLOCK > 2U) return EINVAL; in sigchain_sigmask()
123 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in sigchain_sigmask()
459 * @param[in] how, the value of the mask operation .
463 void intercept_pthread_sigmask(int how, sigset_t *restrict set) in intercept_pthread_sigmask() argument
465 SIGCHAIN_PRINT_DEBUG("%{public}s how: %{public}d", __func__, how); in intercept_pthread_sigmask()
474 if (how == SIG_BLOCK || how in intercept_pthread_sigmask()
[all...]
/third_party/musl/src/sigchain/linux/
H A Dsigchain.c117 * @param[in] how, the value of the mask operation .
121 static int sigchain_sigmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in sigchain_sigmask() argument
124 if (set && (unsigned)how - SIG_BLOCK > 2U) return EINVAL; in sigchain_sigmask()
125 ret = -__syscall(SYS_rt_sigprocmask, how, set, old, _NSIG/8); in sigchain_sigmask()
487 * @param[in] how, the value of the mask operation .
491 void intercept_pthread_sigmask(int how, sigset_t *restrict set) in intercept_pthread_sigmask() argument
493 SIGCHAIN_PRINT_DEBUG("%{public}s how: %{public}d", __func__, how); in intercept_pthread_sigmask()
502 if (how == SIG_BLOCK || how in intercept_pthread_sigmask()
[all...]
/third_party/libwebsockets/win32port/zlib/
H A Dgzread.c93 If this is the first time in, allocate required memory. state->how will be
199 state->how = GZIP;
220 state->how = COPY;
229 trailer is verified, state->how is reset to LOOK to look for the next gzip
289 state->how = LOOK; /* ready for next stream, once have is 0 (leave
290 state->direct unchanged to remember how) */
299 file depending on state->how. If state->how is LOOK, then a gzip header is
309 if (state->how == LOOK) { /* look for gzip header */
315 if (state->how
[all...]
/third_party/zlib/
H A Dgzread.c82 If this is the first time in, allocate required memory. state->how will be
144 state->how = GZIP; in gz_look()
165 state->how = COPY; in gz_look()
172 data. If the gzip stream completes, state->how is reset to LOOK to look for
218 state->how = LOOK; in gz_decomp()
226 file depending on state->how. If state->how is LOOK, then a gzip header is
228 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
235 switch(state->how) { in gz_fetch()
241 if (state->how in gz_fetch()
[all...]
/third_party/musl/src/network/
H A Dshutdown.c4 int shutdown(int fd, int how) in shutdown() argument
6 return socketcall(shutdown, fd, how, 0, 0, 0, 0); in shutdown()
/third_party/zlib/contrib/blast/
H A Dblast.h38 typedef unsigned (*blast_in)(void *how, unsigned char **buf);
39 typedef int (*blast_out)(void *how, unsigned char *buf, unsigned len);
53 * The input function is invoked: len = infun(how, &buf), where buf is set by
62 * The output function is invoked: err = outfun(how, buf, len), where the bytes
/third_party/vk-gl-cts/framework/delibs/deutil/
H A DdeSocket.c637 int how = 0; in deSocket_shutdown() local
640 how = SD_BOTH; in deSocket_shutdown()
642 how = SD_SEND; in deSocket_shutdown()
644 how = SD_RECEIVE; in deSocket_shutdown()
646 if (shutdown(sock->handle, how) == 0) in deSocket_shutdown()
664 int how = 0; in deSocket_shutdown() local
667 how = SHUT_RDWR; in deSocket_shutdown()
669 how = SHUT_WR; in deSocket_shutdown()
671 how = SHUT_RD; in deSocket_shutdown()
673 if (shutdown(sock->handle, how) in deSocket_shutdown()
[all...]
/third_party/node/deps/v8/third_party/zlib/
H A Dgzread.c83 If this is the first time in, allocate required memory. state->how will be
142 state->how = GZIP;
165 state->how = COPY;
172 data. If the gzip stream completes, state->how is reset to LOOK to look for
217 state->how = LOOK;
225 file depending on state->how. If state->how is LOOK, then a gzip header is
227 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
235 switch(state->how) {
239 if (state->how
[all...]
/third_party/node/deps/zlib/
H A Dgzread.c68 If this is the first time in, allocate required memory. state->how will be
125 state->how = GZIP; in gz_look()
146 state->how = COPY; in gz_look()
153 data. If the gzip stream completes, state->how is reset to LOOK to look for
196 state->how = LOOK; in gz_decomp()
204 file depending on state->how. If state->how is LOOK, then a gzip header is
206 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
212 switch(state->how) { in gz_fetch()
216 if (state->how in gz_fetch()
[all...]
/third_party/skia/third_party/externals/zlib/
H A Dgzread.c83 If this is the first time in, allocate required memory. state->how will be
142 state->how = GZIP;
165 state->how = COPY;
172 data. If the gzip stream completes, state->how is reset to LOOK to look for
217 state->how = LOOK;
225 file depending on state->how. If state->how is LOOK, then a gzip header is
227 otherwise 0. gz_fetch() will leave state->how as COPY or GZIP unless the
235 switch(state->how) {
239 if (state->how
[all...]
/third_party/musl/src/signal/
H A Dsigprocmask.c4 int sigprocmask(int how, const sigset_t *restrict set, sigset_t *restrict old) in sigprocmask() argument
6 int r = pthread_sigmask(how, set, old); in sigprocmask()
/third_party/backends/lib/
H A Dsigprocmask.c29 sigprocmask (int how, int *new, int *old) in sigprocmask() argument
37 switch (how) in sigprocmask()
/third_party/rust/crates/nix/src/sys/
H A Dreboot.rs32 pub fn reboot(how: RebootMode) -> Result<Infallible> { in reboot()
33 unsafe { libc::reboot(how as libc::c_int) }; in reboot()
/third_party/python/Lib/tkinter/
H A Dfiledialog.py137 self.how = None
138 self.master.mainloop() # Exited by self.quit(how)
141 if self.how:
142 directory = os.path.dirname(self.how)
145 return self.how
147 def quit(self, how=None):
148 self.how = how

Completed in 14 milliseconds

123456