Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

io_timeout(3) [debian man page]

io_timeout(3)						     Library Functions Manual						     io_timeout(3)

NAME
io_timeout - set time limit on descriptor SYNTAX
#include <io.h> void io_timeout(int64 fd,tai6464 deadline); DESCRIPTION
The io library keeps track of an optional ``timeout'' for each descriptor. The timeout is a specific moment in time, stored in a tai6464 variable. io_timeout(d,t) sets the timeout for descriptor d to t. io_timeout has no return value; it always succeeds. (Space to store the timeout was already allocated as part of the descriptor.) It has no effect if d is not the number of a descriptor. Note that you have to call io_timeouted to be notified of timeouts, just like you are calling io_canread or io_canwrite for read and write notification. SEE ALSO
io_waituntil(3), io_timeouted(3) io_timeout(3)

Check Out this Related Man Page

iopause(3)						     Library Functions Manual							iopause(3)

NAME
iopause - check for file descriptor readability or writability SYNTAX
#include <iopause.h> int iopause(iopause_fd** x,unsigned int len, struct taia deadline,struct taia stamp); DESCRIPTION
iopause checks for file descriptor readability or writability as specified by x[0].fd, x[0].events, x[1].fd, x[1].events, ..., x[len-1].fd, x[len-1].events. If x[i].events includes the bit IOPAUSE_READ, iopause checks for readability of the descriptor x[i].fd; if x[i].events includes the bit IOPAUSE_WRITE, iopause checks for writability of the descriptor x[i].fd; other bits in x[i].events have undefined effects. iopause sets the IOPAUSE_READ bit in x[i].revents if it finds that x[i].fd is readable, and it sets the IOPAUSE_WRITE bit in x[i].revents if it finds that x[i].fd is writable. Beware that readability and writability may be destroyed at any moment by other processes with access to the same ofile that x[i].fd refers to. If there is no readability or writability to report, iopause waits until deadline for something to happen. iopause will return before dead- line if a descriptor becomes readable or writable, or an interrupting signal arrives, or some system-defined amount of time passes. iopause sets revents in any case. You must put a current timestamp into stamp before calling iopause. IMPLEMENTATION NOTES
The current implementation of iopause uses the poll function if that is available. On some systems, poll needs to dynamically allocate ker- nel memory; when not much memory is available, iopause will return immediately, and will report (often incorrectly) that no descriptors are readable or writable. This is a kernel bug, and I encourage vendors to fix it. If poll is not available, iopause uses the select function. This function cannot see descriptor numbers past a system-defined limit, typi- cally 256 or 1024; iopause will artificially pretend that those descriptors are never readable or writable. Future implementations of iopause may work around these problems on some systems, at the expense of chewing up all available CPU time. Both poll and select use relative timeouts rather than absolute deadlines. Some kernels round the timeout down to a multiple of 10 mil- liseconds; this can burn quite a bit of CPU time as the deadline approaches. iopause compensates for this by adding 20 milliseconds to the timeout. SEE ALSO
select(2), poll(3), taia_now(3) iopause(3)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Replacing lines matching a multi-line pattern (sed/perl/awk)

Dear Unix Forums, I am hoping you can help me with a pattern matching problem. What am I trying to do? I want to replace multiple lines of a text file (that match a multi-line pattern) with a single line of text. These patterns can span several lines and do not always have the same number of... (10 Replies)
Discussion started by: thefang
10 Replies

2. Shell Programming and Scripting

Modify xml using sed or awk

Hi All, I want to modify(changing the status from "on" to "off" status of Stage-element value from the below xml file using sed or awk: File Name: global.xml <?xml version="1.0" encoding="UTF-8"?> <config> <widget> <name>HTTP-POOL</name> <attributes> ... (5 Replies)
Discussion started by: wamqemail2
5 Replies

3. Shell Programming and Scripting

UNIX Shell script to work with .xml file

Hi Team, Could you please help me on below query: I want to retrieve XML elements from one .xml file. This .xml file has commented tags as well. so i am planning to write Unix command/script which 1.will chekc for this .xml file 2. it will ignore the commented XML lines. i.e. XML tags between... (3 Replies)
Discussion started by: waiting4u
3 Replies

4. HP-UX

Bypass stale PE ?

Hello, I have an ancient HP-UX 11.11 system where I have a logical volume marked stale and I can't get it sync'd. I have tried lvsync and lvreduce/lvextend to no avail. It is just one 4Mb PE on the disk that I can't get current. # lvdisplay -v /dev/vg00/lvol5 | grep stale LV Status ... (17 Replies)
Discussion started by: port43
17 Replies

5. Shell Programming and Scripting

Output in table

Hi, I have a script which gives output as below: We want to extract the output which will contain only PoolManager and Total number of connections, and if possible in a table with two columns having PoolManager and Total number of connections ... (2 Replies)
Discussion started by: saurau
2 Replies

6. HP-UX

PVS command in HP-UX

Dear Engineer, Is there any command in HP-UX work similiar to PVS command in Linux? With Best Regards, Md. Abdullah-Al Kauser (4 Replies)
Discussion started by: makauser
4 Replies

7. Shell Programming and Scripting

How to add line breaks to perl command with large text in single quotes?

Below code extracts multiple field values from XML into array and prints all in one line. perl -nle '@r=/(?: jndiName| authDataAlias| value| minConnections| maxConnections| connectionTimeout| name)="(+)/g and print join ",",$ENV{tIPnSCOPE},$ENV{pr ovider},$ENV{impClassName},@r' server.xml ... (4 Replies)
Discussion started by: kchinnam
4 Replies

8. Shell Programming and Scripting

Check specific content from log file

Hi all, i have a logfile which is continuously being updated. I have built a script to check for a specific content and if it is found, it sends a string into a file. Here's the current script: #!/bin/bash logfile=/opt/jboss-eap-6.3/standalone/log/server.log tail -fn0 $logfile | \... (7 Replies)
Discussion started by: nms
7 Replies

9. AIX

Samba 3.6 on AIX 7.1 - Windows 10 Access to AIX file shares using Active Directory authentication

I am running AIX 7.1 and currently we have samba 3.6.25 installed on the server. As it stands some AIX folders are shared that can be accessed by certain Windows users. The problem is that since Windows 10 the guest feature no longer works so users have to manually type in their Windows login/pwd... (14 Replies)
Discussion started by: linuxsnake
14 Replies