glibc/errno.h

46 lines
1.4 KiB
C
Raw Normal View History

1994-05-11 17:45:40 +00:00
/* Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
1991-01-30 10:25:34 +00:00
This file is part of the GNU C Library.
1991-06-12 21:59:33 +00:00
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
1991-01-30 10:25:34 +00:00
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
1991-06-12 21:59:33 +00:00
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
1991-01-30 10:25:34 +00:00
1991-06-12 21:59:33 +00:00
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
1992-05-22 07:52:13 +00:00
not, write to the, 1992 Free Software Foundation, Inc., 675 Mass Ave,
1991-06-12 21:59:33 +00:00
Cambridge, MA 02139, USA. */
1991-01-30 10:25:34 +00:00
1992-05-22 07:52:13 +00:00
/*
1991-01-30 10:25:34 +00:00
* ANSI Standard: 4.1.3 Errors <errno.h>
*/
#ifndef _ERRNO_H
#define _ERRNO_H 1
#include <features.h>
1992-05-22 07:52:13 +00:00
__BEGIN_DECLS
1991-01-30 10:25:34 +00:00
/* Get the error number constants. */
#include <errnos.h>
/* Declare the `errno' variable. */
1994-05-11 17:45:40 +00:00
extern int errno;
1991-01-30 10:25:34 +00:00
1993-11-18 08:25:24 +00:00
#ifdef __USE_GNU
/* The full and simple forms of the name with which the program was
invoked. These variables are set up automatically at startup based on
the value of ARGV[0] (this works only if you use GNU ld). */
extern char *program_invocation_name, *program_invocation_short_name;
#endif
1992-05-22 07:52:13 +00:00
__END_DECLS
1991-01-30 10:25:34 +00:00
1992-05-22 07:52:13 +00:00
#endif /* errno.h */