Searched refs:procfd (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/samples/pidfd/ |
D | pidfd-metadata.c | 54 int procfd, ret; in pidfd_metadata_fd() local 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd() 59 if (procfd < 0) { in pidfd_metadata_fd() 76 close(procfd); in pidfd_metadata_fd() 77 procfd = -1; in pidfd_metadata_fd() 81 return procfd; in pidfd_metadata_fd() 89 int procfd, statusfd; in main() local 100 procfd = pidfd_metadata_fd(pid, pidfd); in main() 102 if (procfd < 0) in main() 105 statusfd = openat(procfd, "status", O_RDONLY | O_CLOEXEC); in main() [all …]
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_fcntl.c | 43 static int FcntlDupFd(int procfd, int leastFd) in FcntlDupFd() argument 45 int sysfd = GetAssociatedSystemFd(procfd); in FcntlDupFd() 68 int VfsFcntl(int procfd, int cmd, ...) in VfsFcntl() argument 78 ret = FcntlDupFd(procfd, arg); in VfsFcntl() 83 bool isCloexec = CheckCloexecFlag(procfd); in VfsFcntl() 91 SetCloexecFlag(procfd); in VfsFcntl() 93 ClearCloexecFlag(procfd); in VfsFcntl()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | d_path.c | 32 int sockfd = -1, procfd = -1, devfd = -1; in trigger_fstat_events() local 46 procfd = open("/proc/self/comm", O_RDONLY); in trigger_fstat_events() 47 if (CHECK(procfd < 0, "trigger", "open /proc/self/comm failed\n")) in trigger_fstat_events() 70 ret = set_pathname(procfd, pid); in trigger_fstat_events() 87 fstat(procfd, &fileStat); in trigger_fstat_events() 97 close(procfd); in trigger_fstat_events()
|
/kernel/liteos_a/kernel/extended/dynload/src/ |
D | los_load_elf.c | 124 STATIC INT32 OsReadELFInfo(INT32 procfd, UINT8 *buffer, size_t readSize, off_t offset) in OsReadELFInfo() argument 128 INT32 fd = GetAssociatedSystemFd(procfd); in OsReadELFInfo() 206 loadInfo->execInfo.procfd = INVALID_FD; in OsLoadInit() 207 loadInfo->interpInfo.procfd = INVALID_FD; in OsLoadInit() 224 elfInfo->procfd = ret; in OsReadEhdr() 229 ret = fs_getfilep(GetAssociatedSystemFd(elfInfo->procfd), &filep); in OsReadEhdr() 238 ret = OsReadELFInfo(elfInfo->procfd, (UINT8 *)&elfInfo->elfEhdr, sizeof(LD_ELF_EHDR), 0); in OsReadEhdr() 278 ret = OsReadELFInfo(elfInfo->procfd, (UINT8 *)elfInfo->elfPhdr, size, elfEhdr->elfPhoff); in OsReadPhdrs() 319 …ret = OsReadELFInfo(loadInfo->execInfo.procfd, (UINT8 *)elfInterpName, elfPhdr->fileSize, elfPhdr-… in OsReadInterpInfo() 482 STATIC INT32 OsMmapELFFile(INT32 procfd, const LD_ELF_PHDR *elfPhdr, const LD_ELF_EHDR *elfEhdr, UI… in OsMmapELFFile() argument [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/ |
D | devpts_pts.c | 85 char procfd[4096]; in resolve_procfd_symlink() local 87 ret = snprintf(procfd, 4096, "/proc/self/fd/%d", fd); in resolve_procfd_symlink() 91 ret = readlink(procfd, buf, buflen); in resolve_procfd_symlink()
|
/kernel/liteos_a/kernel/extended/dynload/include/ |
D | los_load_elf.h | 92 INT32 procfd; member
|