Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 335) sorted by relevance

12345678910>>...14

/systemd-251/src/test/
Dtest-bpf-devices.c40 _cleanup_close_ int fd, fd2; in test_policy_closed() local
77 _cleanup_close_ int fd, fd2; in test_policy_strict() local
90 _cleanup_close_ int fd, fd2; in test_policy_strict() local
103 _cleanup_close_ int fd, fd2; in test_policy_strict() local
116 _cleanup_close_ int fd, fd2; in test_policy_strict() local
149 _cleanup_close_ int fd, fd2; in test_policy_allow_list_major() local
162 _cleanup_close_ int fd, fd2; in test_policy_allow_list_major() local
175 _cleanup_close_ int fd, fd2; in test_policy_allow_list_major() local
207 _cleanup_close_ int fd; in test_policy_allow_list_major_star() local
240 _cleanup_close_ int fd; in test_policy_empty() local
Dtest-fdset.c14 int fd = -1; in TEST() local
27 _cleanup_close_ int fd = -1; in TEST() local
46 int fd = -1; in TEST() local
72 int fd = -1; in TEST() local
96 _cleanup_close_ int fd = -1; in TEST() local
116 int fd = -1; in TEST() local
143 int fd; in TEST() local
161 int fd; in TEST() local
/systemd-251/src/shared/
Dbtrfs-util.c72 int btrfs_is_subvol_fd(int fd) { in btrfs_is_subvol_fd()
89 _cleanup_close_ int fd = -1; in btrfs_is_subvol() local
100 int btrfs_subvol_make_fd(int fd, const char *subvolume) { in btrfs_subvol_make_fd()
131 _cleanup_close_ int fd = -1; in btrfs_subvol_make() local
173 int btrfs_subvol_set_read_only_fd(int fd, bool b) { in btrfs_subvol_set_read_only_fd()
196 _cleanup_close_ int fd = -1; in btrfs_subvol_set_read_only() local
205 int btrfs_subvol_get_read_only_fd(int fd) { in btrfs_subvol_get_read_only_fd()
258 int btrfs_get_block_device_fd(int fd, dev_t *dev) { in btrfs_get_block_device_fd()
320 _cleanup_close_ int fd = -1; in btrfs_get_block_device() local
332 int btrfs_subvol_get_id_fd(int fd, uint64_t *ret) { in btrfs_subvol_get_id_fd()
[all …]
Dchown-recursive.c18 int fd, in chown_one()
46 int fd, in chown_recursive_internal()
116 _cleanup_close_ int fd = -1; in path_chown_recursive() local
139 int fd_chown_recursive( in fd_chown_recursive()
Dfdset.c73 int fdset_put(FDSet *s, int fd) { in fdset_put()
80 int fdset_put_dup(FDSet *s, int fd) { in fdset_put_dup()
99 bool fdset_contains(FDSet *s, int fd) { in fdset_contains()
106 int fdset_remove(FDSet *s, int fd) { in fdset_remove()
134 int fd = -1; in fdset_new_fill() local
178 int n, fd, r; in fdset_new_listen_fds() local
Dfdset.h38 #define _FDSET_FOREACH(fd, fds, i) \ argument
40 #define FDSET_FOREACH(fd, fds) \ argument
Dmachine-id-setup.c32 _cleanup_close_ int fd = -1; in generate_machine_id() local
87 _cleanup_close_ int fd = -1; in machine_id_setup() local
199 _cleanup_close_ int fd = -1, initial_mntns_fd = -1; in machine_id_commit() local
/systemd-251/src/basic/
Dmemfd-util.c55 int memfd_map(int fd, uint64_t offset, size_t size, void **p) { in memfd_map()
78 int memfd_set_sealed(int fd) { in memfd_set_sealed()
84 int memfd_get_sealed(int fd) { in memfd_get_sealed()
96 int memfd_get_size(int fd, uint64_t *sz) { in memfd_get_size()
109 int memfd_set_size(int fd, uint64_t sz) { in memfd_set_size()
116 _cleanup_close_ int fd = -1; in memfd_new_and_map() local
Dfd-util.h16 #define FD_TO_PTR(fd) INT_TO_PTR((fd)+1) argument
23 static inline int safe_close_above_stdio(int fd) { in safe_close_above_stdio()
36 static inline void closep(int *fd) { in closep()
92 #define TAKE_FD(fd) \ argument
118 static inline char *format_proc_fd_path(char buf[static PROC_FD_PATH_MAX], int fd) { in format_proc_fd_path()
125 #define FORMAT_PROC_FD_PATH(fd) \ argument
Dfd-util.c37 int close_nointr(int fd) { in close_nointr()
58 int safe_close(int fd) { in safe_close()
144 int fd_nonblock(int fd, bool nonblock) { in fd_nonblock()
160 int fd_cloexec(int fd, bool cloexec) { in fd_cloexec()
176 _pure_ static bool fd_in_set(int fd, const int fdset[], size_t n_fdset) { in fd_in_set()
228 for (int fd = 3; fd >= 0; fd = fd < max_fd ? fd + 1 : -1) { in close_all_fds_frugal() local
388 int fd = -1, q; in close_all_fds() local
507 int fd_get_path(int fd, char **ret) { in fd_get_path()
568 int fd_move_above_stdio(int fd) { in fd_move_above_stdio()
607 int fd[3] = { /* Put together an array of fds we work on */ in rearrange_stdio() local
[all …]
Dsocket-util.c325 bool socket_address_matches_fd(const SocketAddress *a, int fd) { in socket_address_matches_fd()
577 int getpeername_pretty(int fd, bool include_port, char **ret) { in getpeername_pretty()
610 int getsockname_pretty(int fd, char **ret) { in getsockname_pretty()
715 int fd_set_sndbuf(int fd, size_t n, bool increase) { in fd_set_sndbuf()
746 int fd_set_rcvbuf(int fd, size_t n, bool increase) { in fd_set_rcvbuf()
869 int getpeercred(int fd, struct ucred *ucred) { in getpeercred()
895 int getpeersec(int fd, char **ret) { in getpeersec()
924 int getpeergroups(int fd, gid_t **ret) { in getpeergroups()
958 int fd, in send_one_fd_iov_sa()
1002 int fd, in send_one_fd_sa()
[all …]
Dsocket-util.h128 static inline int fd_inc_sndbuf(int fd, size_t n) { in fd_inc_sndbuf()
132 static inline int fd_inc_rcvbuf(int fd, size_t n) { in fd_inc_rcvbuf()
166 #define send_one_fd_iov(transport_fd, fd, iov, iovlen, flags) send_one_fd_iov_sa(transport_fd, fd, … argument
167 #define send_one_fd(transport_fd, fd, flags) send_one_fd_iov_sa(transport_fd, fd, NULL, 0, NULL, 0,… argument
260 static inline int setsockopt_int(int fd, int level, int optname, int value) { in setsockopt_int()
267 static inline int getsockopt_int(int fd, int level, int optname, int *ret) { in getsockopt_int()
312 static inline int socket_set_recverr(int fd, int af, bool b) { in socket_set_recverr()
315 static inline int socket_set_recvttl(int fd, int af, bool b) { in socket_set_recvttl()
318 static inline int socket_set_ttl(int fd, int af, int ttl) { in socket_set_ttl()
321 static inline int socket_set_freebind(int fd, int af, bool b) { in socket_set_freebind()
[all …]
Dsync-util.c11 int fsync_directory_of_file(int fd) { in fsync_directory_of_file()
72 int fsync_full(int fd) { in fsync_full()
90 int fd; in fsync_path_at() local
150 _cleanup_close_ int fd = -1; in syncfs_path() local
Dterminal-util.c57 _cleanup_close_ int fd = -1; in chvt() local
84 int r, fd; in read_one_char() local
234 int reset_terminal_fd(int fd, bool switch_to_text) { in reset_terminal_fd()
304 _cleanup_close_ int fd = -1; in reset_terminal() local
318 _cleanup_close_ int fd = -1; in open_terminal() local
359 _cleanup_close_ int notify = -1, fd = -1; in acquire_terminal() local
487 _cleanup_close_ int fd = -1; in release_terminal() local
506 int terminal_vhangup_fd(int fd) { in terminal_vhangup_fd()
512 _cleanup_close_ int fd = -1; in terminal_vhangup() local
534 _cleanup_close_ int fd = -1; in vt_disallocate() local
[all …]
Dtmpfile-util.c25 _cleanup_close_ int fd = -1; in fopen_temporary() local
74 _cleanup_close_ int fd = -1; in fmkostemp_safe() local
215 int fd, r; in open_tmpfile_unlinkable() local
245 int r, fd; in open_tmpfile_linkable() local
281 _cleanup_close_ int fd = -1; in fopen_tmpfile_linkable() local
300 int link_tmpfile(int fd, const char *path, const char *target) { in link_tmpfile()
318 int fd, r; in flink_tmpfile() local
Dstat-util.c54 int is_dir_fd(int fd) { in is_dir_fd()
75 _cleanup_close_ int fd = -1; in dir_is_empty_at() local
162 int null_or_empty_fd(int fd) { in null_or_empty_fd()
215 int fd_is_fs_type(int fd, statfs_f_type_t magic_value) { in fd_is_fs_type()
241 int fd_is_temporary_fs(int fd) { in fd_is_temporary_fs()
250 int fd_is_network_fs(int fd) { in fd_is_network_fs()
295 int fd_verify_regular(int fd) { in fd_verify_regular()
318 int fd_verify_directory(int fd) { in fd_verify_directory()
Dxattr-util.h17 static inline int fgetxattr_malloc(int fd, const char *name, char **ret) { in fgetxattr_malloc()
24 static inline int fd_getcrtime(int fd, usec_t *ret) { in fd_getcrtime()
36 static inline int flistxattr_malloc(int fd, char **ret) { in flistxattr_malloc()
Dxattr-util.c23 int fd, in getxattr_at_malloc()
134 int fd_getcrtime_at( in fd_getcrtime_at()
197 int fd_setcrtime(int fd, usec_t usec) { in fd_setcrtime()
210 int fd, in listxattr_at_malloc()
Dchattr-util.c16 int fd, in chattr_full()
137 int read_attr_fd(int fd, unsigned *ret) { in read_attr_fd()
152 _cleanup_close_ int fd = -1; in read_attr_path() local
/systemd-251/src/nspawn/
Dnspawn-patch-uid.c24 static int get_acl(int fd, const char *name, acl_type_t type, acl_t *ret) { in get_acl()
49 static int set_acl(int fd, const char *name, acl_type_t type, acl_t acl) { in set_acl()
153 static int patch_acls(int fd, const char *name, const struct stat *st, uid_t shift) { in patch_acls()
209 static int patch_acls(int fd, const char *name, const struct stat *st, uid_t shift) { in patch_acls()
215 static int patch_fd(int fd, const char *name, const struct stat *st, uid_t shift) { in patch_fd()
287 static int recurse_fd(int fd, bool donate_fd, const struct stat *st, uid_t shift, bool is_toplevel)… in recurse_fd()
401 static int fd_patch_uid_internal(int fd, bool donate_fd, uid_t shift, uid_t range) { in fd_patch_uid_internal()
468 int fd; in path_patch_uid() local
/systemd-251/src/journal-remote/
Djournal-remote.c170 int fd, char *name, RemoteSource **source) { in get_source_for_fd()
201 static int remove_source(RemoteServer *s, int fd) { in remove_source()
218 int journal_remote_add_source(RemoteServer *s, int fd, char* name, bool own_name) { in journal_remote_add_source()
278 int journal_remote_add_raw_socket(RemoteServer *s, int fd) { in journal_remote_add_raw_socket()
382 int fd, in journal_remote_handle_raw_source()
450 int fd, in dispatch_raw_source_event()
482 int fd, in accept_connection()
530 int fd, in dispatch_raw_connection_event()
/systemd-251/src/libsystemd/sd-daemon/
Dsd-daemon.c79 for (int fd = SD_LISTEN_FDS_START; fd < SD_LISTEN_FDS_START + n; fd ++) { in sd_listen_fds() local
132 _public_ int sd_is_fifo(int fd, const char *path) { in sd_is_fifo()
160 _public_ int sd_is_special(int fd, const char *path) { in sd_is_special()
193 static int sd_is_socket_internal(int fd, int type, int listening) { in sd_is_socket_internal()
236 _public_ int sd_is_socket(int fd, int family, int type, int listening) { in sd_is_socket()
262 _public_ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) { in sd_is_socket_inet()
300 _public_ int sd_is_socket_sockaddr(int fd, int type, const struct sockaddr* addr, unsigned addr_len… in sd_is_socket_sockaddr()
358 _public_ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t length) { in sd_is_socket_unix()
401 _public_ int sd_is_mq(int fd, const char *path) { in sd_is_mq()
451 _cleanup_close_ int fd = -1; in sd_pid_notify_with_fds() local
/systemd-251/src/vconsole/
Dvconsole-setup.c39 static int verify_vc_device(int fd) { in verify_vc_device()
55 static int verify_vc_allocation_byfd(int fd) { in verify_vc_allocation_byfd()
64 static int verify_vc_kbmode(int fd) { in verify_vc_kbmode()
81 static int toggle_utf8_vc(const char *name, int fd, bool utf8) { in toggle_utf8_vc()
354 _cleanup_close_ int fd = -1; in find_source_vc() local
387 _cleanup_close_ int fd = -1; in verify_source_vc() local
420 _cleanup_close_ int fd = -1; in main() local
/systemd-251/src/libsystemd-network/
Darp-util.h24 int fd, in arp_send_probe()
31 int fd, in arp_send_announcement()
/systemd-251/src/resolve/
Dresolved-llmnr.c72 static int on_llmnr_packet(sd_event_source *s, int fd, uint32_t revents, void *userdata) { in on_llmnr_packet()
115 static int set_llmnr_common_socket_options(int fd, int family) { in set_llmnr_common_socket_options()
129 static int set_llmnr_common_udp_socket_options(int fd, int family) { in set_llmnr_common_udp_socket_options()
300 static int on_llmnr_stream(sd_event_source *s, int fd, uint32_t revents, void *userdata) { in on_llmnr_stream()
324 static int set_llmnr_common_tcp_socket_options(int fd, int family) { in set_llmnr_common_tcp_socket_options()

12345678910>>...14