Home
last modified time | relevance | path

Searched refs:new_fd (Results 26 - 30 of 30) sorted by relevance

12

/third_party/node/src/
H A Dnode_wasi.cc1130 uint32_t new_fd; in PathLink() local
1140 CHECK_TO_TYPE_OR_RETURN(args, args[4], Uint32, new_fd); in PathLink()
1150 new_fd, in PathLink()
1161 new_fd, in PathLink()
1300 uint32_t new_fd; in PathRename() local
1309 CHECK_TO_TYPE_OR_RETURN(args, args[3], Uint32, new_fd); in PathRename()
1318 new_fd, in PathRename()
1328 new_fd, in PathRename()
/kernel/linux/linux-6.6/kernel/
H A Dfork.c3404 struct files_struct *new_fd = NULL; in ksys_unshare() local
3445 err = unshare_fd(unshare_flags, NR_OPEN_MAX, &new_fd); in ksys_unshare()
3462 if (new_fs || new_fd || do_sysvsem || new_cred || new_nsproxy) { in ksys_unshare()
3491 if (new_fd) in ksys_unshare()
3492 swap(current->files, new_fd); in ksys_unshare()
3509 if (new_fd) in ksys_unshare()
3510 put_files_struct(new_fd); in ksys_unshare()
/kernel/linux/linux-5.10/tools/lib/bpf/
H A Dlibbpf.c3659 int new_fd, err; in bpf_map__reuse_fd() local
3677 new_fd = open("/", O_RDONLY | O_CLOEXEC); in bpf_map__reuse_fd()
3678 if (new_fd < 0) { in bpf_map__reuse_fd()
3683 new_fd = dup3(fd, new_fd, O_CLOEXEC); in bpf_map__reuse_fd()
3684 if (new_fd < 0) { in bpf_map__reuse_fd()
3696 map->fd = new_fd; in bpf_map__reuse_fd()
3710 close(new_fd); in bpf_map__reuse_fd()
/kernel/linux/linux-6.6/tools/lib/bpf/
H A Dlibbpf.c4419 int new_fd, err; in bpf_map__reuse_fd() local
4443 new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3); in bpf_map__reuse_fd()
4444 if (new_fd < 0) { in bpf_map__reuse_fd()
4456 map->fd = new_fd; in bpf_map__reuse_fd()
4471 close(new_fd); in bpf_map__reuse_fd()
/third_party/libbpf/src/
H A Dlibbpf.c4824 int new_fd, err; local
4848 new_fd = fcntl(fd, F_DUPFD_CLOEXEC, 3);
4849 if (new_fd < 0) {
4861 map->fd = new_fd;
4876 close(new_fd);

Completed in 60 milliseconds

12