File: Cns_seterrbuf.man

package info (click to toggle)
lfc-postgres 1.7.4.7-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 13,676 kB
  • ctags: 10,779
  • sloc: ansic: 146,136; sh: 13,176; perl: 11,142; python: 5,529; cpp: 5,113; sql: 1,790; makefile: 861; fortran: 113
file content (28 lines) | stat: -rw-r--r-- 954 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.\" @(#)$RCSfile: Cns_seterrbuf.man,v $ $Revision: 1.2 $ $Date: 2007/05/14 05:53:52 $ CERN IT-PDP/DM Jean-Philippe Baud
.\" Copyright (C) 1999-2007 by CERN/IT/PDP/DM
.\" All rights reserved
.\"
.TH CNS_SETERRBUF 3 "$Date: 2007/05/14 05:53:52 $" CASTOR "Cns Library Functions"
.SH NAME
Cns_seterrbuf \- set receiving buffer for error messages
.SH SYNOPSIS
.BI "int Cns_seterrbuf (char *" buffer ,
.BI "int " buflen )
.SH DESCRIPTION
.B Cns_seterrbuf
tells the name server client API the address and the size of the buffer
to be used for error messages. If this routine is not called or if
.I buffer
is NULL, the messages are printed on
.BR stderr .
.SH RETURN VALUE
This routine returns 0 if the operation was successful or -1 if the operation
failed. In the latter case,
.B serrno
is set appropriately.
.SH ERRORS
.TP 1.3i
.B ENOMEM
memory could not be allocated for the thread specific information.
.SH AUTHOR
\fBCASTOR\fP Team <castor.support@cern.ch>