Blame bootstrap_ver/libipq/ipq_errstr.3

Packit Service 2cd632
.TH IPQ_ERRSTR 3 "16 October 2001" "Linux iptables 1.2" "Linux Programmer's Manual" 
Packit Service 2cd632
.\"
Packit Service 2cd632
.\"     Copyright (c) 2000 Netfilter Core Team
Packit Service 2cd632
.\"
Packit Service 2cd632
.\"     This program is free software; you can redistribute it and/or modify
Packit Service 2cd632
.\"     it under the terms of the GNU General Public License as published by
Packit Service 2cd632
.\"     the Free Software Foundation; either version 2 of the License, or
Packit Service 2cd632
.\"     (at your option) any later version.
Packit Service 2cd632
.\"
Packit Service 2cd632
.\"     This program is distributed in the hope that it will be useful,
Packit Service 2cd632
.\"     but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 2cd632
.\"     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Service 2cd632
.\"     GNU General Public License for more details.
Packit Service 2cd632
.\"
Packit Service 2cd632
.\"     You should have received a copy of the GNU General Public License
Packit Service 2cd632
.\"     along with this program; if not, write to the Free Software
Packit Service 2cd632
.\"     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Packit Service 2cd632
.\"
Packit Service 2cd632
.\"
Packit Service 2cd632
.SH NAME
Packit Service 2cd632
ipq_errstr, ipq_perror \(em libipq error handling routines
Packit Service 2cd632
.SH SYNOPSIS
Packit Service 2cd632
.B #include <linux/netfilter.h>
Packit Service 2cd632
.br
Packit Service 2cd632
.B #include <libipq.h>
Packit Service 2cd632
.sp
Packit Service 2cd632
.BI "char *ipq_errstr(" void );
Packit Service 2cd632
.br
Packit Service 2cd632
.BI "void ipq_perror(const char *" s );
Packit Service 2cd632
.SH DESCRIPTION
Packit Service 2cd632
The
Packit Service 2cd632
.B ipq_errstr
Packit Service 2cd632
function returns a descriptive error message based on the current
Packit Service 2cd632
value of the internal
Packit Service 2cd632
.B ipq_errno
Packit Service 2cd632
variable.  All libipq API functions set this internal variable
Packit Service 2cd632
upon failure.
Packit Service 2cd632
.PP
Packit Service 2cd632
The
Packit Service 2cd632
.B ipq_perror
Packit Service 2cd632
function prints an error message to stderr corresponding to the
Packit Service 2cd632
current value of the internal
Packit Service 2cd632
.B ipq_error
Packit Service 2cd632
variable, and the global
Packit Service 2cd632
.B errno
Packit Service 2cd632
variable (if set).  The error message is prefixed with the string
Packit Service 2cd632
.I s
Packit Service 2cd632
as supplied by the application. If
Packit Service 2cd632
.I s
Packit Service 2cd632
is NULL, the error message is prefixed with the string "ERROR".
Packit Service 2cd632
.SH RETURN VALUE
Packit Service 2cd632
.B ipq_errstr
Packit Service 2cd632
returns an error message as outlined above.
Packit Service 2cd632
.SH BUGS
Packit Service 2cd632
None known.
Packit Service 2cd632
.SH AUTHOR
Packit Service 2cd632
James Morris <jmorris@intercode.com.au>
Packit Service 2cd632
.SH COPYRIGHT
Packit Service 2cd632
Copyright (c) 2000-2001 Netfilter Core Team.
Packit Service 2cd632
.PP
Packit Service 2cd632
Distributed under the GNU General Public License.
Packit Service 2cd632
.SH SEE ALSO
Packit Service 2cd632
.BR iptables (8),
Packit Service 2cd632
.BR libipq (3).