Searched refs:flags (Results 1 - 25 of 675) sorted by relevance

1234567891011>>

/bionic/libc/bionic/
H A Dopen.cpp38 static inline int force_O_LARGEFILE(int flags) { argument
40 return flags; // No need, and aarch64's strace gets confused.
42 return flags | O_LARGEFILE;
46 static inline bool needs_mode(int flags) { argument
47 return ((flags & O_CREAT) == O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE);
55 int open(const char* pathname, int flags, ...) { argument
58 if (needs_mode(flags)) {
60 va_start(args, flags);
65 return __openat(AT_FDCWD, pathname, force_O_LARGEFILE(flags), mod
69 __open_2(const char* pathname, int flags) argument
74 openat(int fd, const char *pathname, int flags, ...) argument
88 __openat_2(int fd, const char* pathname, int flags) argument
[all...]
H A Dsys_signalfd.cpp35 int signalfd(int fd, const sigset_t* mask, int flags) { argument
38 return signalfd64(fd, &set.sigset64, flags);
41 int signalfd64(int fd, const sigset64_t* mask, int flags) { argument
42 return __signalfd4(fd, mask, sizeof(*mask), flags);
H A Dlfs64_support.cpp26 int mkostemp64(char* path, int flags) { argument
27 return mkostemp(path, flags);
32 int mkostemps64(char* path, int suffix_length, int flags) { argument
33 return mkostemps(path, suffix_length, flags);
46 int nopenfd, int flags) {
47 return nftw(dirpath, reinterpret_cast<nftw_fn>(fn), nopenfd, flags);
44 nftw64(const char * dirpath, int (*fn)(const char*, const struct stat64*, int, struct FTW*), int nopenfd, int flags) argument
H A Daccept4.cpp21 int accept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { argument
22 return __netdClientDispatch.accept4(sockfd, addr, addrlen, flags);
H A Drecv.cpp31 ssize_t recv(int socket, void *buf, size_t len, int flags) { argument
32 return recvfrom(socket, buf, len, flags, NULL, 0);
H A Dsend.cpp31 ssize_t send(int socket, const void* buf, size_t len, int flags) { argument
32 return sendto(socket, buf, len, flags, NULL, 0);
H A Dsync_file_range.cpp34 int sync_file_range(int fd, off64_t offset, off64_t length, unsigned int flags) { argument
36 return __sync_file_range2(fd, flags, offset, length);
38 return __sync_file_range(fd, offset, length, flags);
H A Dsys_shm.cpp34 void* shmat(int id, const void* address, int flags) { argument
36 return reinterpret_cast<void*>(syscall(SYS_shmat, id, address, flags));
40 if (syscall(SYS_ipc, SHMAT, id, flags, &result, address, 0) == -1) {
68 int shmget(key_t key, size_t size, int flags) { argument
70 return syscall(SYS_shmget, key, size, flags);
72 return syscall(SYS_ipc, SHMGET, key, size, flags, 0, 0);
H A Dsys_msg.cpp47 int msgget(key_t key, int flags) { argument
49 return syscall(SYS_msgget, key, flags);
51 return syscall(SYS_ipc, MSGGET, key, flags, 0, 0, 0);
55 ssize_t msgrcv(int id, void* msg, size_t n, long type, int flags) { argument
57 return syscall(SYS_msgrcv, id, msg, n, type, flags);
59 return syscall(SYS_ipc, IPCCALL(1, MSGRCV), id, n, flags, msg, type);
63 int msgsnd(int id, const void* msg, size_t n, int flags) { argument
65 return syscall(SYS_msgsnd, id, msg, n, flags);
67 return syscall(SYS_ipc, MSGSND, id, n, flags, msg, 0);
H A Dmremap.cpp39 void* mremap(void* old_address, size_t old_size, size_t new_size, int flags, ...) { argument
50 if ((flags & MREMAP_FIXED) != 0) {
52 va_start(ap, flags);
56 return ___mremap(old_address, old_size, new_size, flags, new_address);
/bionic/libc/kernel/uapi/asm-arm/asm/
H A Dmman.h20 #define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0)
/bionic/libc/versioner-dependencies/arm/kernel_uapi_asm-arm/asm/
H A Dmman.h20 #define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0)
/bionic/libc/versioner-dependencies/common/kernel_uapi/asm-arm/asm/
H A Dmman.h20 #define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0)
/bionic/tools/versioner/dependencies/arm/kernel_uapi_asm-arm/asm/
H A Dmman.h20 #define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0)
/bionic/tools/versioner/dependencies/common/kernel_uapi/asm-arm/asm/
H A Dmman.h20 #define arch_mmap_check(addr,len,flags) (((flags) & MAP_FIXED && (addr) < FIRST_USER_ADDRESS) ? - EINVAL : 0)
/bionic/libc/include/bits/fortify/
H A Dfcntl.h46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)
51 int open(const char* pathname, int flags, mode_t modes, ...) __overloadable
61 int open(const char* const __pass_object_size pathname, int flags)
63 __clang_error_if(__open_modes_useful(flags), "'open' " __open_too_few_args_error) {
64 return __open_2(pathname, flags);
68 int open(const char* const __pass_object_size pathname, int flags, mode_t modes)
70 __clang_warning_if(!__open_modes_useful(flags) && modes,
72 return __open_real(pathname, flags, mode
102 open(const char* pathname, int flags, ...) argument
121 openat(int dirfd, const char* pathname, int flags, ...) argument
[all...]
/bionic/tools/versioner/current/bits/fortify/
H A Dfcntl.h46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)
51 int open(const char* pathname, int flags, mode_t modes, ...) __overloadable
61 int open(const char* const __pass_object_size pathname, int flags)
63 __clang_error_if(__open_modes_useful(flags), "'open' " __open_too_few_args_error) {
64 return __open_2(pathname, flags);
68 int open(const char* const __pass_object_size pathname, int flags, mode_t modes)
70 __clang_warning_if(!__open_modes_useful(flags) && modes,
72 return __open_real(pathname, flags, mode
102 open(const char* pathname, int flags, ...) argument
121 openat(int dirfd, const char* pathname, int flags, ...) argument
[all...]
/bionic/libc/kernel/uapi/linux/netfilter/
H A Dxt_socket.h28 __u8 flags; member in struct:xt_socket_mtinfo1
32 __u8 flags; member in struct:xt_socket_mtinfo2
36 __u8 flags; member in struct:xt_socket_mtinfo3
H A Dxt_rpfilter.h29 __u8 flags; member in struct:xt_rpfilter_info
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/netfilter/
H A Dxt_socket.h28 __u8 flags; member in struct:xt_socket_mtinfo1
32 __u8 flags; member in struct:xt_socket_mtinfo2
36 __u8 flags; member in struct:xt_socket_mtinfo3
H A Dxt_rpfilter.h29 __u8 flags; member in struct:xt_rpfilter_info
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/netfilter/
H A Dxt_socket.h28 __u8 flags; member in struct:xt_socket_mtinfo1
32 __u8 flags; member in struct:xt_socket_mtinfo2
36 __u8 flags; member in struct:xt_socket_mtinfo3
H A Dxt_rpfilter.h29 __u8 flags; member in struct:xt_rpfilter_info
/bionic/libc/stdio/
H A Dvfwscanf.c136 int flags; /* flags as defined above */ local
172 flags = 0;
191 flags |= SUPPRESS;
194 flags |= MAXINT;
197 flags |= LONGDBL;
202 flags |= SHORTSHORT;
204 flags |= SHORT;
210 flags |= LLONG;
212 flags |
[all...]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dsetvbuf.c45 int ret, flags; local
71 flags = fp->_flags;
72 if (flags & __SMBF)
74 flags &= ~(__SLBF | __SNBF | __SMBF | __SOPT | __SNPT | __SEOF);
85 flags |= __swhatbuf(fp, &iosize, &ttyflag);
107 fp->_flags = flags | __SNBF;
114 flags |= __SMBF;
131 flags |= __SNPT;
137 flags |= __SLBF;
138 fp->_flags = flags;
[all...]

Completed in 236 milliseconds

1234567891011>>