Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tt_error(3) [hpux man page]

tt_error(library call)													    tt_error(library call)

NAME
tt_error -- capture ToolTalk function errors SYNOPSIS
#include <Tt/tt_c.h> void tt_error( const char *funcname, Tt_status status); DESCRIPTION
The tt_error function is a publicly-known null function. It is called by the ToolTalk library just before it returns from any ToolTalk API call that has a status other than TT_OK. The caller passes the name of the function that is about to return and the function's status code. You can use this function to set a dbx breakpoint to quickly catch and trace back any ToolTalk errors. You can also interpose this func- tion, for example, to log ToolTalk errors to stderr. ARGUMENTS
funcname Specifies the name of the function. status Specifies the function's return status value. RETURN VALUE
None. APPLICATION USAGE
The following code example shows how an application might interpose this function to log ToolTalk errors to stderr: void tt_error(const char *funcname, Tt_status status) { fprintf(stderr, "ToolTalk function %s returned %s.0, funcname, tt_status_message(status)); } SEE ALSO
Tt/tt_c.h - Tttt_c(5) tt_error(library call)

Check Out this Related Man Page

tt_spec_type(library call)												tt_spec_type(library call)

NAME
tt_spec_type -- return the name of the object type SYNOPSIS
#include <Tt/tt_c.h> char *tt_spec_type( const char *objid); DESCRIPTION
The tt_spec_type function returns the name of the object type. The objid argument is the identifier of the object involved in this operation. RETURN VALUE
Upon successful completion, the tt_spec_type function returns the type of this object. The application can use tt_ptr_error(3) to extract one of the following Tt_status values from the returned pointer: TT_OK The operation completed successfully. TT_ERR_DBAVAIL The ToolTalk service could not access the ToolTalk database needed for this operation. TT_ERR_DBEXIST The ToolTalk service could not access the specified ToolTalk database in the expected place. TT_ERR_NOMP The ttsession(1) process is not running and the ToolTalk service cannot restart it. TT_ERR_OBJID The objid passed to the ToolTalk service does not reference an existing object spec. APPLICATION USAGE
The application should use tt_free(3) to free any data stored in the address returned by the ToolTalk API. SEE ALSO
Tt/tt_c.h - Tttt_c(5), tt_ptr_error(3), tt_free(3). tt_spec_type(library call)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

login error after sys-unconfig, errno = 13

Hi, I have a SPARCstation 10 with SunOS 5.6 This erlier was in a network and now I have it at home to make a webserver. At fist there was NIS and things left from erlier. So the "Console login:" newer appered only the white window with sun logo topleft and some text info. I made... (14 Replies)
Discussion started by: roing
14 Replies

2. Solaris

Gcc for OpenSolaris

Hi All, can anyone please tell the site from where I can download gcc compiler for openSolaris..I tried to find it but unable to do it. Please help me.. (7 Replies)
Discussion started by: smartgupta
7 Replies

3. Programming

Python Request Persistent

I noticed that when attempting to download videos from the url, I receive a 403 forbidden when I get through to a certain point in my downloads. I can download a third of the videos but will error: Retrieving file 'blah-video.f4v'... Traceback (most recent call last): ... (0 Replies)
Discussion started by: metallica1973
0 Replies

4. Shell Programming and Scripting

Uncompress several tar.gz files inside several folders

Hi, I need to uncompress sevral tar.gz files that are located insides sevral folders using a shell script. Folder tree looks like this : /folder/001 /folder/002 /folder/003 Inside each folder dossier (001,002,003) we can find 1 or several tar.gz files. I've scripted something... (9 Replies)
Discussion started by: shellX
9 Replies

5. Web Development

Node.js and mysql - ER_ACCESS_DENIED_ERROR

This problem has been killing me all day, and I cannot solve it. Basically, I am using node.js with the mysql module and it will not connect to the database. Here is the JS code snippet in node.js: app.get("/test", function(req, res) { var mysql = require("mysql"); var con =... (4 Replies)
Discussion started by: Neo
4 Replies

6. Shell Programming and Scripting

Can someone convert this python script to perl

There is a python script that I would like converted to a perl script. If someone has the time to convert the script I would appreciate it. You can find the script below: reboot-mb8600/reboot-mb8600.py at master . j4m3z0r/reboot-mb8600 . GitHub #!/usr/bin/python ''' A hacky script to... (1 Reply)
Discussion started by: azdps
1 Replies