| /llvm-project/clang/test/Analysis/ |
| H A D | unix-api.c | 16 int fd; in open_1() local 23 int fd; in open_2() local 31 int fd; in openat_2() local 39 int fd; in open_3() local 46 int fd; in openat_3() local 54 int fd; in open_4() local 61 int fd; in open_5() local 71 int fd; in open_6() local 81 int fd; in open_7() local 88 int fd; in open_8() local
|
| H A D | unix-api.cpp | 21 int fd; in unix_open() local 28 int fd; in unix_open_misuse() local 43 int fd; in namespaced_open() local
|
| /llvm-project/libc/include/llvm-libc-macros/ |
| H A D | sys-select-macros.h | 24 #define __FD_WORD(fd) ((fd) / __FD_SET_WORD_SIZE) argument 25 #define __FD_MASK(fd) \ argument 28 #define FD_CLR(fd, set) (void)((set)->__set[__FD_WORD(fd)] &= ~__FD_MASK(fd)) argument 30 #define FD_SET(fd, set) (void)((set)->__set[__FD_WORD(fd)] |= __FD_MASK(fd)) argument 32 #define FD_ISSET(fd, set) \ argument
|
| /llvm-project/libc/src/__support/File/linux/ |
| H A D | dir.cpp | 22 int fd = LIBC_NAMESPACE::syscall_impl<int>(SYS_open, name, open_flags); platform_opendir() local 24 int fd = platform_opendir() local 37 platform_fetch_dirents(int fd,cpp::span<uint8_t> buffer) platform_fetch_dirents() argument 51 platform_closedir(int fd) platform_closedir() argument
|
| /llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_fd.cpp | 51 static bool bogusfd(int fd) { in bogusfd() 80 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc() 101 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s, in init() 160 bool FdLocation(uptr addr, int *fd, Tid *tid, StackID *stack, bool *closed) { in FdLocation() 178 void FdAcquire(ThreadState *thr, uptr pc, int fd) { in FdAcquire() 189 void FdRelease(ThreadState *thr, uptr pc, int fd) { in FdRelease() 202 void FdAccess(ThreadState *thr, uptr pc, int fd) { in FdAccess() 210 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) { in FdClose() 253 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate() 279 void FdEventCreate(ThreadState *thr, uptr pc, int fd) { in FdEventCreate() [all …]
|
| /llvm-project/libc/test/src/fcntl/ |
| H A D | fcntl_test.cpp | 27 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC, S_IRWXU); in TEST() local 49 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC, S_IRWXU); in TEST() local 66 int fd in TEST() local 102 int fd = TEST() local 134 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC | O_RDWR, S_IRWXU); TEST() local 162 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC | O_RDWR, S_IRWXU); TEST() local 175 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC | O_RDWR, S_IRWXU); TEST() local [all...] |
| /llvm-project/lldb/source/Host/common/ |
| H A D | FileAction.cpp | 34 bool FileAction::Open(int fd, const FileSpec &file_spec, bool read, in Open() argument 53 bool FileAction::Close(int fd) { in Close() argument 62 bool FileAction::Duplicate(int fd, int dup_fd) { in Duplicate() argument [all...] |
| H A D | FileCache.cpp | 38 lldb::user_id_t fd = file.get()->GetDescriptor(); in OpenFile() local 43 bool FileCache::CloseFile(lldb::user_id_t fd, Status &error) { in CloseFile() argument 63 WriteFile(lldb::user_id_t fd,uint64_t offset,const void * src,uint64_t src_len,Status & error) WriteFile() argument 90 ReadFile(lldb::user_id_t fd,uint64_t offset,void * dst,uint64_t dst_len,Status & error) ReadFile() argument [all...] |
| H A D | PseudoTerminal.cpp | 108 use_ptsname(int fd) use_ptsname() argument 206 int fd = m_primary_fd; ReleasePrimaryFileDescriptor() local 218 int fd = m_secondary_fd; ReleaseSecondaryFileDescriptor() local
|
| /llvm-project/libc/src/spawn/linux/ |
| H A D | posix_spawn.cpp | 40 int fd = LIBC_NAMESPACE::syscall_impl<int>(SYS_open, path, oflags, mode); open() local 53 close(int fd) close() argument 56 dup2(int fd,int newfd) dup2() argument 92 auto fd = open(open_act->path, open_act->oflag, open_act->mode); child_process() local [all...] |
| /llvm-project/lldb/source/Utility/ |
| H A D | SelectHelper.cpp | 49 void SelectHelper::FDSetRead(lldb::socket_t fd) { in FDSetRead() argument 53 void SelectHelper::FDSetWrite(lldb::socket_t fd) { in FDSetWrite() argument 57 void SelectHelper::FDSetError(lldb::socket_t fd) { in FDSetError() argument 109 const lldb::socket_t fd = pair.first; Select() local 179 const lldb::socket_t fd = pair.first; Select() local 235 const int fd = pair.first; Select() local [all...] |
| /llvm-project/libc/src/fcntl/linux/ |
| H A D | open.cpp | 35 int fd = LIBC_NAMESPACE::syscall_impl<int>(SYS_open, path, flags, mode_flags); variable 33 int fd = LIBC_NAMESPACE::syscall_impl<int>(SYS_open, path, flags, mode_flags); global() variable
|
| /llvm-project/compiler-rt/test/tsan/Linux/ |
| H A D | syscall.h | 26 int myclose(int fd) { in myclose() 33 ssize_t myread(int fd, void *buf, size_t count) { in myread() 40 ssize_t mywrite(int fd, const void *buf, size_t count) { in mywrite()
|
| /llvm-project/compiler-rt/test/tsan/ |
| H A D | fd_location_closed.cpp | 7 int fd = (long)x; in Thread() local 17 int fd = open("/dev/random", O_RDONLY); in main() local
|
| /llvm-project/libc/test/src/sys/epoll/linux/ |
| H A D | epoll_create1_test.cpp | 18 int fd = LIBC_NAMESPACE::epoll_create1(0); in TEST() local 26 int fd = LIBC_NAMESPACE::epoll_create1(EPOLL_CLOEXEC); in TEST() local
|
| /llvm-project/compiler-rt/test/sanitizer_common/TestCases/FreeBSD/ |
| H A D | fdevname.cpp | 11 int fd = open("/dev/null", O_RDONLY); in test_fdevname() local 23 int fd = open("/dev/null", O_RDONLY); in test_fdevname_r() local
|
| /llvm-project/bolt/runtime/ |
| H A D | sys_aarch64.h | 63 uint64_t __read(uint64_t fd, const void *buf, uint64_t count) { in __read() 77 uint64_t __write(uint64_t fd, const void *buf, uint64_t count) { in __write() 92 uint64_t fd, uint64_t offset) { in __mmap() 149 long __getdents64(unsigned int fd, dirent64 *dirp, size_t count) { in __getdents64() 178 uint64_t __lseek(uint64_t fd, uint64_t pos, uint64_t whence) { in __lseek() 192 int __ftruncate(uint64_t fd, uint64_t length) { in __ftruncate() 205 int __close(uint64_t fd) { in __close() 348 int __fsync(int fd) { in __fsync()
|
| H A D | sys_x86_64.h | 60 uint64_t __read(uint64_t fd, const void *buf, uint64_t count) { in __read() 75 uint64_t __write(uint64_t fd, const void *buf, uint64_t count) { in __write() 91 uint64_t fd, uint64_t offset) { in __mmap() 189 long __getdents64(unsigned int fd, dirent64 *dirp, size_t count) { in __getdents64() 209 uint64_t __lseek(uint64_t fd, uint64_t pos, uint64_t whence) { in __lseek() 219 int __ftruncate(uint64_t fd, uint64_t length) { in __ftruncate() 229 int __close(uint64_t fd) { in __close() 329 int __fsync(int fd) { in __fsync()
|
| /llvm-project/lldb/test/Shell/Register/Core/Inputs/ |
| H A D | multithread.cpp | 16 …2_t a, uint32_t b, uint32_t c, uint32_t d, double fa, double fb, double fc, double fd, bool segv) { in fcommon() 32 volatile double fd = 16.0; in f1() local 47 volatile double fd = 12.0; in f2() local 61 volatile double fd = 20.0; in f3() local
|
| /llvm-project/libc/test/src/stdio/ |
| H A D | fdopen_test.cpp | 28 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC | O_RDWR, S_IRWXU); in TEST() local 59 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_TRUNC); in TEST() local 71 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_CREAT | O_RDONLY, S_IRWXU); in TEST() local
|
| /llvm-project/lldb/tools/debugserver/source/ |
| H A D | TTYState.cpp | 23 bool TTYState::GetTTYState(int fd, bool saveProcessGroup) { in GetTTYState() 67 bool TTYStateSwitcher::GetState(uint32_t idx, int fd, bool saveProcessGroup) { in GetState()
|
| /llvm-project/libc/test/src/termios/ |
| H A D | termios_test.cpp | 48 int fd = LIBC_NAMESPACE::open("/dev/tty", O_RDONLY); in TEST() local 58 int fd = LIBC_NAMESPACE::open("/dev/tty", O_RDONLY); in TEST() local
|
| /llvm-project/libc/test/src/unistd/ |
| H A D | lseek_test.cpp | 23 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_RDONLY); in TEST() local 58 int fd = LIBC_NAMESPACE::open(TEST_FILE, O_RDONLY); in TEST() local
|
| /llvm-project/libc/test/src/sys/mman/linux/ |
| H A D | shm_test.cpp | 28 int fd; in TEST() local 62 int fd; in TEST() local [all...] |
| /llvm-project/lldb/source/Host/posix/ |
| H A D | PipePosix.cpp | 44 static bool SetCloexecFlag(int fd) { in SetCloexecFlag() argument 159 if (fd != -1) in OpenAsReader() local 191 int fd = ::open(name.str().c_str(), flags); in OpenAsWriterWithTimeout() local 232 const int fd in ReleaseReadFileDescriptorUnlocked() local 243 const int fd = m_fds[WRITE]; ReleaseWriteFileDescriptorUnlocked() local 311 const int fd = GetReadFileDescriptorUnlocked(); ReadWithTimeout() local 344 const int fd = GetWriteFileDescriptorUnlocked(); Write() local [all...] |