Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xtappwarnia(3) [hpux man page]

XtAppWarning()															    XtAppWarning()

Name
  XtAppWarning - call the low-level warning handler.

Synopsis
  void XtAppWarning(app_context, message)
	 XtAppContext app_context;
	 String message;

Inputs
  app_context
	    Specifies the application context.

  message   Specifies the warning message that is to be reported.

Description
  XtAppWarning()  passes  its arguments to the installed low-level warning handler.  On POSIX systems, the default handler is _XtDefaultWarn-
  ing().  It prints the message to the stderr stream and returns.

Usage
  To report fatal error messages and exit, use XtAppError() or XtAppErrorMsg().  To change the low-level warning handler,  use	XtAppSetWarn-
  ingHandler().

  XtAppWarning()  calls the "low-level" warning handler.  It is better to use XtAppWarningMsg() which calls the "high-level" warning handler.
  The high-level handler looks up the warning message in a resource database and so allows  for  customization	and  internationalization  of
  warning messages.

  Although  the  Intrinsics interface allows separate error and warning handlers for each application context, most implementations will sup-
  port only a single set of handlers.  When a new handler is installed, it will be used in all application contexts.

See Also
  XtAppError(1), XtAppErrorMsg(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningHandler(1), XtAppSetWarningMsgHan-
  dler(1), XtAppWarningMsg(1),
  XtErrorHandler(2), XtErrorMsgHandler(2).

Xt - Error Handling														    XtAppWarning()

Check Out this Related Man Page

XtAppSetErrorHandler()													    XtAppSetErrorHandler()

Name
  XtAppSetErrorHandler - set the low-level error handler procedure.

Synopsis
  XtErrorHandler XtAppSetErrorHandler(app_context, handler)
	 XtAppContext app_context;
	 XtErrorHandler handler;

Inputs
  app_context
	    Specifies the application context.

  handler   Specifies the new fatal error procedure, which should not return.

Returns
  A pointer to the previously installed low-level error handler.

Description
  XtAppSetErrorHandler() registers the procedure handler in app_context as the procedure to be invoked by XtAppError().  It returns a pointer
  to the previously installed low-level fatal error handler.  handler must terminate the application; if it returns the  subsequent  behavior
  of the Intrinsics is undefined.

  The  default	low-level  error  handler  provided by the Intrinsics is _XtDefaultError().  On POSIX-based systems, it prints the message to
  standard error and terminates the application.

Usage
  Note that application-context-specific error handling is not implemented on many systems.  Most implementations will have just one  set  of
  error handlers.  If they are set for different application contexts, the one performed last will prevail.

See Also
  XtAppError(1), XtAppErrorMsg(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarning(1),
  XtAppWarningMsg(1),
  XtErrorHandler(2).

Xt - Error Handling													    XtAppSetErrorHandler()
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

strintercept dropping message on unixware

i have unixware 2.1. A warning message Strintercept dropping message start scrolling on screen. does anyone have any idea what it means? :confused: and some times system hangs with all terminals.? (2 Replies)
Discussion started by: kapilverma_udr
2 Replies

2. Programming

warning from gcc

I get this error warning. test.c: In function 'main': test.c:5: warning: incompatible implicit declaration of built-in function 'memset' After compiling this code #include <stdio.h> int main() { char pBuffer; memset(pBuffer, 0, 32); return 0; } What seems... (2 Replies)
Discussion started by: sledge76
2 Replies

3. HP-UX

HP-UX 11.11 warning error

I have screen erron with HP-UX warning:select failed error code 9 :confused: (3 Replies)
Discussion started by: dcporras
3 Replies

4. Solaris

[ID 882636 kern.warning] WARNING: interrupt level 11 not serviced

Can anybody tell what this kernel warning is, it's critical (9 Replies)
Discussion started by: voxure
9 Replies

5. What is on Your Mind?

BT Internet con - a warning

A warning... I used to be a BT Broadband customer, but changed to Sky in February. BT withdrew the service with the cutover and that was that. But I've just checked my credit card statements, and they've billed me for the service again for the past two months! (2 Replies)
Discussion started by: prowla
2 Replies

6. Programming

Compile time warning

Hi, I wish to know if we can generate customised compile time warning. say i have a code Obj * i = 0; while (true ) { if( ! i ) // some code that raise a warning while compilation .Not error i->somefunction(); } (2 Replies)
Discussion started by: wojtyla
2 Replies

7. AIX

AIX warning message: 651-812: System shutdown due to

Hi Gurus, One of my old server running AIX 4.3.2. One member of admin group account keeps getting warning message for days as below. From errpt log I couldn't find any clue related to this warning message. What I can say is this message shows up a few days after we did a disk change. My... (6 Replies)
Discussion started by: linux.cao.ca
6 Replies

8. Programming

gethostname warning

Hi, does anyone knows how to get rid of this annoying warning? Thank you! #include <netdb.h> main() { gethostbyname("test"); } $ gcc -static test.c /tmp/ccW9HG18.o: In function `main': test.c:(.text+0x19): warning: Using 'gethostbyname' in statically linked applications requires at... (3 Replies)
Discussion started by: paulquater
3 Replies

9. UNIX for Dummies Questions & Answers

UNIX command to skip any warning messages and continue job execution

Hello All, Good day! This is my first UNIX post. :D Anyways, I would like to seek help from you guys if you know of any UNIX command that will skip a warning message once it is encountered but continue to run the execution. Ok here's the situation in general: An encypted file is sent to... (2 Replies)
Discussion started by: jennah_rekka
2 Replies

10. Shell Programming and Scripting

How do display a warning message?

Hello, I am teaching myself shell scripting and I was wondering if there was a way to rename a file and display a warning or prompt message? And if you had a file like /home/me/blah/ for example, what are the ways to use the CD to get to /me? Would it be ../home/me? Are there other ways to... (4 Replies)
Discussion started by: kris2010
4 Replies

11. Programming

conversion to 'char' from 'int' warning

Hi, I wrote a simple code in C++ converting from UpperToLower case characters. However, my compiler gives me a warning: "warning: conversion to 'char' from 'int' may alter its value". Any tips? I would like to stress, I don't want to load my string into char array. int ToLower(string... (4 Replies)
Discussion started by: kajolo
4 Replies

12. Shell Programming and Scripting

sed to conditionally delete multiple lines

Hello I'd like to remove any line in an output file that is preceded by one or more warning messages (each warning is on a separate line). Example : WARNING: Estimation of lower confidence limit of \rho failed; setting it to 0. 822 28447 ... (4 Replies)
Discussion started by: jossojjos
4 Replies

13. BSD

Mount root warning message

I see the following warning message during the boot sequence of any FreeBSD machine on stock hardware: acd0: FAILURE: READ_BIG ILLEGAL REQUEST asc=0x64 ascq=0x00 Trying to mount root from ufs:/dev/ad6s1 What does this mean and is it really a warning or something that should be fixed? ... (2 Replies)
Discussion started by: figaro
2 Replies

14. Programming

Why is C/C++ considered low-level languages???

Hi friends, I hope everyone is doing well and fine. I have always been hearing that C/C++ are relatively low-level as compared to Java/C# etc. Could you please tell me some low-level qualities of C/C++? And I think disk deframenters are written in C/C++, please correct me if I am wrong. And please... (5 Replies)
Discussion started by: gabam
5 Replies

15. Emergency UNIX and Linux Support

How to ignore Netout Error.?

Hi All , Am using unix KSH . I would like to clarify two doubts. Whenever am transfering the zero size file am getting the warning message netout. files will be transferred to target server or not? I have used the code as if then VAR="ftp.sh -c put ${FILE} ${FILE}... (2 Replies)
Discussion started by: Venkatesh1
2 Replies