Home
last modified time | relevance | path

Searched refs:time_limit (Results 1 – 9 of 9) sorted by relevance

/netbsd-src/external/ibm-public/postfix/dist/src/util/
H A Dpoll_fd.c150 int poll_fd_bsd(int fd, int request, int time_limit, in poll_fd_bsd() argument
189 if (time_limit >= 0) { in poll_fd_bsd()
191 tv.tv_sec = time_limit; in poll_fd_bsd()
222 #define HANDLE_SYSV_POLL_ERROR(fd, req, time_limit, true_res, false_res) \ argument
223 return (poll_fd_bsd((fd), (req), (time_limit), (true_res), (false_res)))
225 #define HANDLE_SYSV_POLL_ERROR(fd, req, time_limit, true_res, false_res) \ argument
231 int poll_fd_sysv(int fd, int request, int time_limit, in poll_fd_sysv() argument
251 switch (poll(&pollfd, 1, time_limit < 0 ? in poll_fd_sysv()
252 WAIT_FOR_EVENT : time_limit * 1000)) { in poll_fd_sysv()
255 HANDLE_SYSV_POLL_ERROR(fd, request, time_limit, in poll_fd_sysv()
[all …]
H A Dtimed_wait.c83 int time_limit) in timed_waitpid() argument
94 if (time_limit <= 0) in timed_waitpid()
95 msg_panic("%s: bad time limit: %d", myname, time_limit); in timed_waitpid()
106 time_left = alarm(time_limit); in timed_waitpid()
H A Dvstream.c800 timeout = stream->time_limit.tv_sec + (stream->time_limit.tv_usec > 0); in vstream_fflush_some()
816 stream->time_limit.tv_sec = stream->time_limit.tv_usec = 0; in vstream_fflush_some()
824 VSTREAM_SUB_TIME(stream->time_limit, stream->time_limit, elapsed); in vstream_fflush_some()
829 VSTREAM_ADD_TIME(stream->time_limit, stream->time_limit, in vstream_fflush_some()
831 if (stream->time_limit.tv_sec >= stream->timeout) { in vstream_fflush_some()
832 stream->time_limit.tv_sec = stream->timeout; in vstream_fflush_some()
833 stream->time_limit.tv_usec = 0; in vstream_fflush_some()
976 timeout = stream->time_limit.tv_sec + (stream->time_limit.tv_usec > 0); in vstream_buf_get_ready()
990 stream->time_limit.tv_sec = stream->time_limit.tv_usec = 0; in vstream_buf_get_ready()
1001 VSTREAM_SUB_TIME(stream->time_limit, stream->time_limit, elapsed); in vstream_buf_get_ready()
[all …]
H A Dspawn_command.c117 int time_limit; /* command time limit */ member
140 args->time_limit = 0; in get_spawn_args()
179 args->time_limit = va_arg(ap, int); in get_spawn_args()
304 if ((err = timed_waitpid(pid, &wait_status, 0, args.time_limit)) < 0 in spawn_command()
H A Dvstream.h63 struct timeval time_limit; /* read/write time limit */ member
H A Devents.c659 void event_drain(int time_limit) in event_drain() argument
673 max_time = event_present + time_limit; in event_drain()
/netbsd-src/external/ibm-public/postfix/dist/src/master/
H A Dmaster_monitor.c60 int master_monitor(int time_limit) in master_monitor() argument
69 if (time_limit <= 0) in master_monitor()
70 msg_panic("master_monitor: bad time limit: %d", time_limit); in master_monitor()
94 switch (timed_read(pipes[0], buf, 1, time_limit, (void *) 0)) { in master_monitor()
/netbsd-src/external/ibm-public/postfix/dist/src/spawn/
H A Dspawn.c187 int time_limit; /* per-service time limit */ member
210 attr->time_limit = in get_service_attr()
279 myname, (long) attr->uid, (long) attr->gid, attr->time_limit); in get_service_attr()
316 CA_SPAWN_CMD_TIME_LIMIT(attr.time_limit), in spawn_service()
/netbsd-src/external/ibm-public/postfix/dist/src/pipe/
H A Dpipe.c595 int time_limit; /* per-service time limit */ member
847 config->time_limit = in get_service_params()
854 msg_info("%s: time_limit %d", myname, config->time_limit); in get_service_params()
1301 CA_PIPE_CMD_TIME_LIMIT(conf.time_limit), in deliver_message()