Searched refs:fd (Results 1 - 25 of 342) sorted by relevance

1234567891011>>

/dovecot/src/lib/
H A Dfd-util.h4 /* Change close-on-exec flag of fd. */
5 void fd_close_on_exec(int fd, bool set);
11 void fd_set_nonblock(int fd, bool nonblock);
14 same fd, in which case they're closed only once. If they point to stdin
18 /* Close the fd and set it to -1. This assert-crashes if fd == 0, and is a
19 no-op if fd == -1. Normally fd == 0 would happen only if an uninitialized
20 fd is attempted to be closed, which is a bug. */
21 void i_close_fd_path(int *fd, cons
[all...]
H A Dfile-set-size.h7 int file_set_size(int fd, off_t size);
11 int file_preallocate(int fd, off_t size);
H A Dfdatasync-path.c11 int fd, ret = 0; local
15 fd = open(path, O_RDONLY);
16 if (fd == -1)
18 if (fdatasync(fd) < 0) {
29 i_close_fd(&fd);
H A Dostream-unix.h4 struct ostream *o_stream_create_unix(int fd, size_t max_buffer_size);
5 /* Write fd to UNIX socket along with the next outgoing data block.
6 Returns TRUE if fd is accepted, and FALSE if a previous fd still
8 bool o_stream_unix_write_fd(struct ostream *output, int fd);
H A Dread-full.h6 int read_full(int fd, void *data, size_t size);
7 int pread_full(int fd, void *data, size_t size, off_t offset);
H A Dwrite-full.h7 int write_full(int fd, const void *data, size_t size);
8 int pwrite_full(int fd, const void *data, size_t size, off_t offset);
H A Dtest-istream-unix.c15 static void write_one(int fd) argument
17 if (write(fd, "1", 1) < 0)
21 static void read_one(int fd) argument
25 if (read(fd, &buf, 1) < 0)
59 static void test_istream_unix_server(int fd) argument
65 input = i_stream_create_unix(fd, 1024);
68 write_one(fd);
70 /* 2) fd was sent but we won't get it */
72 /* we still shouldn't have the fd */
78 write_one(fd);
115 test_istream_unix_client(int fd) argument
163 int fd[2]; local
[all...]
H A Dioloop-notify-fd.h4 /* common notify code for fd-based notifications (dnotify, inotify) */
12 int fd; member in struct:io_notify
20 io_notify_fd_add(struct ioloop_notify_fd_context *ctx, int fd,
26 io_notify_fd_find(struct ioloop_notify_fd_context *ctx, int fd);
H A Dfd-util.c11 void fd_close_on_exec(int fd, bool set) argument
15 flags = fcntl(fd, F_GETFD, 0);
17 i_fatal("fcntl(F_GETFD, %d) failed: %m", fd);
20 if (fcntl(fd, F_SETFD, flags) < 0)
21 i_fatal("fcntl(F_SETFD, %d) failed: %m", fd);
32 for (int fd = first_fd; fd <= last_fd; ++fd) {
33 if (fcntl(fd, F_GETFD, 0) == -1 && errno == EBADF)
38 if (net_getsockname(fd,
98 fd_set_nonblock(int fd, bool nonblock) argument
135 i_close_fd_path(int *fd, const char *path, const char *arg, const char *func, const char *file, int line) argument
[all...]
H A Dunix-socket-create.c14 int fd; local
17 fd = net_listen_unix_unlink_stale(path, backlog);
20 if (fd < 0) {
30 i_close_fd(&fd);
34 return fd;
/dovecot/src/log/
H A Ddoveadm-connection.h4 void doveadm_connection_create(struct log_error_buffer *errorbuf, int fd);
/dovecot/src/auth/
H A Dauth-postfix-connection.h5 auth_postfix_connection_create(struct auth *auth, int fd);
/dovecot/src/imap/
H A Dimap-master-client.h4 void imap_master_client_create(int fd);
/dovecot/src/imap-hibernate/
H A Dimap-hibernate-client.h4 void imap_hibernate_client_create(int fd, bool debug);
/dovecot/src/lib-index/
H A Dmail-index-lock.c26 int mail_index_lock_fd(struct mail_index *index, const char *path, int fd, argument
30 if (fd == -1) {
35 return file_wait_lock(fd, path, lock_type, index->lock_method,
40 int fd, bool locked)
50 nfs_flush_read_cache_locked(path, fd);
52 nfs_flush_read_cache_unlocked(path, fd);
39 mail_index_flush_read_cache(struct mail_index *index, const char *path, int fd, bool locked) argument
/dovecot/src/master/
H A Dservice-process-notify.h5 service_process_notify_callback_t(int fd, struct service_process *process);
8 service_process_notify_init(int fd,
/dovecot/src/old-stats/
H A Dfifo-input-connection.h4 struct fifo_input_connection *fifo_input_connection_create(int fd);
/dovecot/src/config/
H A Dconfig-connection.h4 struct config_connection *config_connection_create(int fd);
/dovecot/src/director/
H A Dnotify-connection.h6 void notify_connection_init(struct director *dir, int fd, bool fifo);
/dovecot/src/indexer/
H A Dmaster-connection.h5 master_connection_create(int fd, struct mail_storage_service_ctx *storage_service);
/dovecot/src/ipc/
H A Dclient.h4 struct client *client_create(int fd);
/dovecot/src/replication/aggregator/
H A Dnotify-connection.h4 void notify_connection_create(int fd, bool fifo);
/dovecot/src/replication/replicator/
H A Ddoveadm-connection.h6 void doveadm_connection_create(struct replicator_brain *brain, int fd);
/dovecot/src/stats/
H A Dclient-reader.h6 void client_reader_create(int fd, struct stats_metrics *metrics);
H A Dclient-writer.h6 void client_writer_create(int fd, struct stats_metrics *metrics);

Completed in 45 milliseconds

1234567891011>>