XtAppAddSignal, XtRemoveSignal, XtNoticeSignal − register and remove a signal source


XtSignalId XtAppAddSignal(XtAppContext app_context, XtSignalCallbackProc proc, XtPointer client_data);

void XtRemoveSignal(XtSignalId id);

void XtNoticeSignal(XtSignalId id);



Specifies the application context.


Specifies the argument that is to be passed to the specified procedure when a signal has been raised.


Specifies the ID returned from the corresponding XtAppAddSignal call.


Specifies the procedure that is to be called when the signal has been raised.


The XtAppAddSignal function initiates a mechanism for handling signals within the context of the Intrinsics. Prior to establishing an operating system dependent signal handler the application may call XtAppAddSignal and store the returned id in a place accessible to the signal handler.

Upon receipt of a signal from the operating system, the application may call XtNoticeSignal passing the id returned by the call to XtAppAddSignal.

XtNoticeSignal is the only Intrinsics function that can safely be called from a signal handler. If XtNoticeSignal is called multiple times before the Intrinsics are able to invoke the registered callback, the callback is only called once. Logically the Intrinsics maintain ‘‘pending’’ for each registered callback. This flag is initially False and is set to True by XtNoticeSignal; the Intrinsics invoke the callback whenever the flag is True, and the flag is set to False just before the callback is invoked.

The XtRemoveSignal function is called to remove the specified Intrinsics signal handler. The client should disable the source of the signal before calling XtRemoveSignal.


X Toolkit Intrinsics − C Language Interface
Xlib − C Language X Interface

More Linux Commands

busyspheres(1) - particle spheres. - Linux manual page......
Spheres made of dancing particles. Ported to Linux by Tugrul Galatali. OPTIONS --root Draw on the root window. --maxfps number Set maximum frame rate. --vsync n

acl_check(3) - check an ACL for validity - Linux man page...
The acl_check() function checks the ACL referred to by the argument acl for validity. The three required entries ACL_USER_OBJ, ACL_GROUP_OBJ, and ACL_OTHER must

libtasn1_strerror(3) - Returns a string with a description o
This function is similar to strerror(). The only difference is that it accepts an error (number) returned by a libtasn1 function. RETURNS Pointer to static zero

Tk_NameOfColor(3) - maintain database of colors (Man Page)
These procedures manage the colors being used by a Tk application. They allow colors to be shared whenever possible, so that colormap space is preserved, and th

XkbFreeGeomColors(3) - Free geometry colors - Linux man page
XkbFreeGeomColors.3 - Xkb provides a number of functions to allocate and free subcomponents of a keyboard geometry. Use these functions to create or modify keyb

XdbeGetVisualInfo(3) - Get dbe Visual Informations (ManPage)
This function returns information about which visuals support double buffering. The argument num_screens specifies how many elements there are in the screen_spe

XGetSelectedExtensionEvents(3) - select extension events, ge
The XSelectExtensionEvent request causes the X server to report the events associated with the specified list of event classes. Initially, X will not report any

Tcl_UniCharIsUpper(3) - routines for classification of Tcl_U
All of the routines described examine Tcl_UniChars and return a boolean value. A non-zero return value means that the character does belong to the character cla

pam_winbind.conf(5) - Configuration file of PAM module for W
This configuration file is part of the samba(7) suite. pam_winbind.conf is the configuration file for the pam_winbind PAM module. See pam_winbind(8) for further

clnt_control(3) - library routines for remote procedure call
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

aa-enforce(8) set an AppArmor security profile to enforce mo
aa-enforce is used to set one or more profiles to enforce mode. This command is only relevant in conjunction with the aa-complain utility which sets a profile t

isdn_cause.7 (Manual - Linux man page).....................
This document describes the cause messages, used with the ISDN D-channel protocols EDSS1 and 1TR6 and their format, visible to the user. FORMAT Cause messages a

We can't live, work or learn in freedom unless the software we use is free.