/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_cond_signal/ |
H A D | 2-2.c | 39 struct timespec timeout; local 54 timeout.tv_sec = curtime.tv_sec + TIMEOUT; 55 timeout.tv_nsec = curtime.tv_usec * 1000; 59 rc = pthread_cond_timedwait(&td.cond, &td.mutex, &timeout);
|
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/pthread_rwlock_timedrdlock/ |
H A D | 1-1.c | 12 * shall be terminated when the specified timeout expires. 55 struct timespec timeout; local 61 timeout.tv_sec = currsec1.tv_sec + TIMEOUT; 62 timeout.tv_nsec = currsec1.tv_usec * 1000; 65 rc = pthread_rwlock_timedrdlock(&rwlock, &timeout); 168 /* we expect rd_thread2 to block and timeout. */ 187 printf("Test FAILED: the timer expired and thread terminated, but the timeout is not correct: start time %ld.%06ld, end time %ld.%06ld\n", (long) currsec1.tv_sec, (long) currsec1.tv_usec, (long) currsec2.tv_sec, (long) currsec2.tv_usec);
|
/haiku-fatelf/src/add-ons/kernel/network/protocols/unix/ |
H A D | UnixEndpoint.cpp | 32 absolute_timeout(bigtime_t timeout) argument 34 if (timeout == 0 || timeout == B_INFINITE_TIMEOUT) 35 return timeout; 38 return timeout + system_time(); 391 bigtime_t timeout = absolute_timeout(socket->receive.timeout); local 393 timeout = gStackModule->restore_syscall_restart_timeout(); 395 gStackModule->store_syscall_restart_timeout(timeout); 404 B_ABSOLUTE_TIMEOUT | B_CAN_INTERRUPT, timeout); 428 bigtime_t timeout = absolute_timeout(socket->send.timeout); local 519 bigtime_t timeout = absolute_timeout(socket->receive.timeout); local [all...] |
H A D | UnixFifo.cpp | 309 ancillary_data_container** _ancillaryData, bigtime_t timeout) 312 this, vecs, vecCount, timeout); 321 status_t error = _Read(request, timeout); 354 ancillary_data_container* ancillaryData, bigtime_t timeout) 357 this, vecs, vecCount, ancillaryData, timeout); 369 status_t error = _Write(request, timeout); 441 UnixFifo::_Read(UnixRequest& request, bigtime_t timeout) argument 444 if (fReaders.Head() != &request && timeout == 0) 454 timeout); 468 if (timeout 308 Read(const iovec* vecs, size_t vecCount, ancillary_data_container** _ancillaryData, bigtime_t timeout) argument 353 Write(const iovec* vecs, size_t vecCount, ancillary_data_container* ancillaryData, bigtime_t timeout) argument 500 _Write(UnixRequest& request, bigtime_t timeout) argument [all...] |
/haiku-fatelf/src/add-ons/kernel/network/protocols/l2cap/ |
H A D | L2capEndpoint.cpp | 25 absolute_timeout(bigtime_t timeout) argument 27 if (timeout == 0 || timeout == B_INFINITE_TIMEOUT) 28 return timeout; 31 return timeout + system_time(); 116 bigtime_t timeout = absolute_timeout(300 * 1000 * 1000); local 124 B_ABSOLUTE_TIMEOUT | B_CAN_INTERRUPT, timeout); 267 bigtime_t timeout = absolute_timeout(300 * 1000 * 1000); local 270 B_ABSOLUTE_TIMEOUT | B_CAN_INTERRUPT, timeout); 289 bigtime_t timeout local [all...] |
/haiku-fatelf/headers/os/media/ |
H A D | BufferGroup.h | 34 bigtime_t timeout = B_INFINITE_TIMEOUT); 36 bigtime_t timeout = B_INFINITE_TIMEOUT);
|
/haiku-fatelf/headers/private/kernel/ |
H A D | lock.h | 146 uint32 timeoutFlags, bigtime_t timeout); 154 bigtime_t timeout); 173 bigtime_t timeout) 176 return mutex_lock_with_timeout(lock, timeoutFlags, timeout); 180 return _rw_lock_read_lock_with_timeout(lock, timeoutFlags, timeout); 246 mutex_lock_with_timeout(mutex* lock, uint32 timeoutFlags, bigtime_t timeout) argument 249 return _mutex_lock_with_timeout(lock, timeoutFlags, timeout); 252 return _mutex_lock_with_timeout(lock, timeoutFlags, timeout); 172 rw_lock_read_lock_with_timeout(rw_lock* lock, uint32 timeoutFlags, bigtime_t timeout) argument
|
H A D | sem.h | 41 status_t _user_acquire_sem_etc(sem_id id, int32 count, uint32 flags, bigtime_t timeout); 43 status_t _user_switch_sem_etc(sem_id releaseSem, sem_id id, int32 count, uint32 flags, bigtime_t timeout);
|
/haiku-fatelf/headers/private/libroot/ |
H A D | libroot_lock.h | 43 benaphore_lock_etc(benaphore *ben, uint32 flags, bigtime_t timeout) argument 48 return acquire_sem_etc(ben->sem, 1, flags, timeout);
|
/haiku-fatelf/src/bin/gdb/readline/ |
H A D | input.c | 169 struct timeval timeout; local 179 timeout.tv_sec = 0; 180 timeout.tv_usec = _keyboard_input_timeout; 181 result = select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout); 253 Uses the value of _keyboard_input_timeout as the timeout; if another 254 readline function wants to specify a timeout and not leave it up to 262 struct timeval timeout; local 276 timeout.tv_sec = 0; 277 timeout.tv_usec = _keyboard_input_timeout; 278 return (select (tty + 1, &readfds, (fd_set *)NULL, &exceptfds, &timeout) > [all...] |
/haiku-fatelf/src/servers/net/ |
H A D | DHCPClient.h | 55 void _ResetTimeout(int socket, time_t& timeout, 57 bool _TimeoutShift(int socket, time_t& timeout,
|
/haiku-fatelf/headers/posix/sys/ |
H A D | select.h | 62 struct fd_set *errorBits, const struct timespec *timeout, const sigset_t *sigMask); 64 struct fd_set *errorBits, struct timeval *timeout);
|
/haiku-fatelf/src/system/kernel/ |
H A D | port.cpp | 537 get_port_message(int32 code, size_t bufferSize, uint32 flags, bigtime_t timeout, argument 554 if ((flags & B_RELATIVE_TIMEOUT) != 0 && timeout <= 0) 566 status_t status = entry.Wait(flags, timeout); 1116 port_buffer_size_etc(port_id id, uint32 flags, bigtime_t timeout) argument 1119 status_t error = get_port_message_info_etc(id, &info, flags, timeout); 1126 size_t infoSize, uint32 flags, bigtime_t timeout) 1150 if ((flags & B_RELATIVE_TIMEOUT) != 0 && timeout <= 0) 1158 // block if no message, or, if B_TIMEOUT flag set, block with timeout 1159 status_t status = entry.Wait(flags, timeout); 1231 uint32 flags, bigtime_t timeout) 1125 _get_port_message_info_etc(port_id id, port_message_info* info, size_t infoSize, uint32 flags, bigtime_t timeout) argument 1230 read_port_etc(port_id id, int32* _code, void* buffer, size_t bufferSize, uint32 flags, bigtime_t timeout) argument 1341 write_port_etc(port_id id, int32 msgCode, const void* buffer, size_t bufferSize, uint32 flags, bigtime_t timeout) argument 1351 writev_port_etc(port_id id, int32 msgCode, const iovec* msgVecs, size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout) argument 1617 _user_port_buffer_size_etc(port_id port, uint32 flags, bigtime_t timeout) argument 1643 _user_read_port_etc(port_id port, int32 *userCode, void *userBuffer, size_t bufferSize, uint32 flags, bigtime_t timeout) argument 1669 _user_write_port_etc(port_id port, int32 messageCode, const void *userBuffer, size_t bufferSize, uint32 flags, bigtime_t timeout) argument 1689 _user_writev_port_etc(port_id port, int32 messageCode, const iovec *userVecs, size_t vecCount, size_t bufferSize, uint32 flags, bigtime_t timeout) argument 1721 _user_get_port_message_info_etc(port_id port, port_message_info *userInfo, size_t infoSize, uint32 flags, bigtime_t timeout) argument [all...] |
/haiku-fatelf/src/bin/coreutils/src/ |
H A D | timeout.c | 0 /* timeout -- run a command with bounded time 18 /* timeout - Start a command, and kill it if the specified timeout expires 29 If user specifies the KILL (9) signal is to be sent on timeout, 33 and so is immediately sent SIGTTIN to stop, then the timeout 34 process will ignore this so it can timeout the command as expected. 35 This can be seen with `timeout 10 dd&` for example. 39 because the timeout process (group leader) is already running. 72 #define PROGRAM_NAME "timeout" 143 specify the signal to be sent on timeout 217 unsigned long timeout; local [all...] |
/haiku-fatelf/src/libs/compat/freebsd_network/ |
H A D | callout.cpp | 42 bigtime_t timeout = B_INFINITE_TIMEOUT; local 45 // scan timers for new timeout and/or execute a timer 78 // calculate new timeout 79 if (c->due < timeout) 80 timeout = c->due; 84 sTimeout = timeout; 88 status = acquire_sem_etc(sWaitSem, 1, B_ABSOLUTE_TIMEOUT, timeout);
|
/haiku-fatelf/src/add-ons/kernel/network/stack/ |
H A D | utility.cpp | 43 status_t Wait(mutex* lock, bigtime_t timeout); 285 Fifo::Wait(mutex* lock, bigtime_t timeout) argument 290 B_CAN_INTERRUPT | B_ABSOLUTE_TIMEOUT, timeout); 365 will wait depending on the \a flags and \a timeout. 367 MSG_DONTWAIT - ignores the timeout and never wait for a buffer; if your 368 socket is O_NONBLOCK, you should specify this flag. A \a timeout of 374 fifo_dequeue_buffer(net_fifo* fifo, uint32 flags, bigtime_t timeout, argument 378 bool dontWait = (flags & MSG_DONTWAIT) != 0 || timeout == 0; 412 B_CAN_INTERRUPT | B_RELATIVE_TIMEOUT, timeout); 465 bigtime_t timeout local 715 store_syscall_restart_timeout(bigtime_t timeout) argument [all...] |
/haiku-fatelf/src/servers/registrar/ |
H A D | MessageDeliverer.cpp | 164 Message(void *data, int32 dataSize, bigtime_t timeout) argument 171 if (B_INFINITE_TIMEOUT - fCreationTime <= timeout) 173 else if (timeout <= 0) 176 fTimeoutTime = fCreationTime + timeout; 275 timeout time (primary) and by TargetMessage pointer (secondary). 314 bigtime_t timeout = fMessage->GetMessage()->TimeoutTime(); local 316 if (timeout < otherTimeout) 318 if (timeout > otherTimeout) 333 TargetMessages that can timeout (in ascending order of timeout tim 579 DeliverMessage(BMessage *message, BMessenger target, bigtime_t timeout) argument 603 DeliverMessage(BMessage *message, MessagingTargetSet &targets, bigtime_t timeout) argument 638 DeliverMessage(const void *messageData, int32 messageSize, MessagingTargetSet &targets, bigtime_t timeout) argument [all...] |
/haiku-fatelf/src/bin/gdb/gdb/ |
H A D | ser-e7kpc.c | 38 static int e7000pc_readchar (struct serial *scb, int timeout); 225 dosasync_read (int fd, char *buf, int len, int timeout) argument 233 then = now + timeout; 254 if (timeout == 0) 256 if (now >= then && timeout > 0) 323 e7000pc_readchar (struct serial *scb, int timeout) argument 329 if (dosasync_read (scb->fd, &buf, 1, timeout))
|
H A D | remote-st.c | 60 static int timeout = 24; variable 86 /* Read a character from the remote system, doing all the fancy timeout 90 readchar (int timeout) argument 94 c = serial_readchar (st2000_desc, timeout); 105 if (timeout == 0) 106 return c; /* Polls shouldn't generate timeout errors */ 126 c = readchar (timeout); 181 ch = readchar (timeout); 372 int old_timeout = timeout; 377 timeout [all...] |
/haiku-fatelf/src/add-ons/kernel/bus_managers/ide/ |
H A D | atapi.c | 98 uint32 timeout = qrequest->request->timeout > 0 ? local 99 qrequest->request->timeout : IDE_STD_TIMEOUT; 119 start_waiting_nolock(device->bus, timeout, ide_state_async_waiting); 223 start_waiting_nolock(device->bus, timeout, ide_state_async_waiting); 358 // timeout and stuff is already set by send_command 414 uint32 timeout = qrequest->request->timeout > 0 ? local 415 qrequest->request->timeout : IDE_STD_TIMEOUT; 417 start_waiting(bus, timeout, ide_state_async_waitin [all...] |
/haiku-fatelf/src/add-ons/kernel/drivers/network/ipro1000/ |
H A D | if_em_osdep.c | 67 timeout(timer_function func, void *cookie, bigtime_t timeout) argument 70 handle.timer = create_timer(func, cookie, timeout, B_ONE_SHOT_RELATIVE_TIMER);
|
/haiku-fatelf/src/add-ons/kernel/generic/scsi_periph/ |
H A D | scsi_periph.cpp | 37 ccb->timeout = device->std_timeout; 81 backup_timeout = request->timeout; 95 request->timeout = backup_timeout;
|
/haiku-fatelf/src/apps/cortex/NodeManager/ |
H A D | NodeSyncThread.cpp | 121 bigtime_t timeout) { 128 _sync_op op = {perfTime, position, timeout}; 194 op.timeout); 118 sync( bigtime_t perfTime, bigtime_t position, bigtime_t timeout) argument
|
/haiku-fatelf/src/servers/mail/ |
H A D | Notifier.cpp | 130 int timeout = 0; // Default timeout local 132 timeout = 1; // We're done, make the window go away faster 138 fNotification.Send(timeout);
|
/haiku-fatelf/data/common/boot/post_install/ |
H A D | mime_update.sh | 5 --timeout ${3:-30} \
|