Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtaddinput(3) [hpux man page]

XtAddInput()															      XtAddInput()

Name
  XtAddInput - register a procedure to be called when there is activity on a file descriptor.

Synopsis
  XtInputId XtAddInput(source, condition, proc, client_data)
	 int source;
	 XtPointer condition;
	 XtInputCallbackProc proc;
	 XtPointer client_data;

Inputs
  source    Specifies the file descriptor (on a POSIX-based system) to monitor.

  condition Specifies a mask that indicates a read, write, or exception condition or some operating-system-dependent condition.

  proc	    Specifies the procedure that is to be called when condition occurs on source.

  client_data
	    Specifies data to be passed to proc when it is invoked.

Returns
  A handle of type XtInputId that can be passed to XtRemoveInput() to unregister this input procedure.

Availability
  Superseded by XtAppAddInput().

Description
  XtAddInput() registers a file descriptor source to be monitored by XtAppNextEvent() and a procedure proc to be called with data client_data
  when the condition (such as "input ready" or "error") condition arises.

  On a POSIX-based system, the supported values for condition are XtInputReadMask, XtInputWriteMask, or XtInputExceptMask.  These values can-
  not be ORed together.

Usage
  XtAddInput() has been superseded by XtAppAddInput(), which performs the same function on a per-application context basis.  XtAddInput() now
  calls XtAppAddInput() passing the default application context created by XtInitialize().  Very few programs need multiple application  con-
  texts,  and  you  can continue to use XtAddInput() if you initialize your application with XtInitialize().  We recommend, however, that you
  use XtAppInitialize(), XtAppAddInput(), and the other XtApp*() application context specific functions.

  See XtAppAddInput() for more information.

See Also
  XtAppAddInput(1), XtRemoveInput(1),
  XtInputCallbackProc(2).

Xt - Event Handling														      XtAddInput()

Check Out this Related Man Page

XtAddInput(3)						    XT COMPATIBILITY FUNCTIONS						     XtAddInput(3)

NAME
XtAddInput, XtAddTimeOut, XtAddWorkProc - register input, timeout, and workprocs SYNTAX
XtInputId XtAddInput(int source, XtPointer condition, XtInputCallbackProc proc, XtPointer client_data); XtIntervalId XtAddTimeOut(unsigned long interval, XtInputCallbackProc proc, XtPointer client_data); XtWorkProcId XtAddWorkProc(XtWorkProc proc, XtPointer client_data); ARGUMENTS
client_data Specifies the argument that is to be passed to the specified procedure when input is available condition Specifies the mask that indicates a read, write, or exception condition or some operating system dependent condition. proc Specifies the procedure that is to be called when input is available. source Specifies the source file descriptor on a UNIX-based system or other operating system dependent device specification. DESCRIPTION
XtAddInput has been replaced by XtAppAddInput. XtAddTimeOut has been replaced by XtAppAddTimeOut. XtAddWorkProc has been replaced by XtAppAddWorkProc. SEE ALSO
XtAppAddInput(3), XtAppAddTimeOut(3), XtAppAddWorkProc(3) X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtAddInput(3)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Spliting file based on condition

Hi, I have a comma separated file with millions of records in it. I have a requirement to split the file based on the value in a one of the columns. Suppose i have a text file with columns like C1, C2,C3,C4 Column C4 can hold the values either 01 or 02 03 or 04. I nned to extract... (2 Replies)
Discussion started by: Raamc
2 Replies

2. UNIX for Beginners Questions & Answers

Change the field color based on condition in email

Request your help to change the field color based on condition , if it is otherthan 0. using html in unix. Here is my condition for(i=1;i<=NF;i++) { print "<td> "$i"</td> } Please use CODE tags when displaying sample input, output, and code segments. (17 Replies)
Discussion started by: CatchMe
17 Replies

3. Shell Programming and Scripting

If condition on shell not working , not sure what is the mistake I am doing?

I have a requirement to perform specific set of tasks based on server , So I want to have the condition(s) defined based on server. Here is the script I came up with and I have read multiple blogs and couldn`t find any mistake from my script. Can you guide on what I am overlooking here ? ... (2 Replies)
Discussion started by: Varja
2 Replies

4. Shell Programming and Scripting

Trigger script based on condition

Hi Guys, I am having below code which runs based on condition, Is it possible to check condition at the time of trigger code=$1 if ;then nohup sh script.sh $val 1 & fi I need to trigger if the $code = JP then only to trigger nohup sh script.sh $val 1 & My try but wanted... (4 Replies)
Discussion started by: Master_Mind
4 Replies