annotate lib/exit.h @ 4201:bd8ff0653fc8

New module 'exit'.
author Bruno Haible <bruno@clisp.org>
date Wed, 22 Jan 2003 12:37:16 +0000
parents
children a48fb0e98c8c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4201
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 /* exit() function.
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2 Copyright (C) 1995, 2001 Free Software Foundation, Inc.
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
3
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4 This program is free software; you can redistribute it and/or modify
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 it under the terms of the GNU General Public License as published by
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
6 the Free Software Foundation; either version 2, or (at your option)
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 any later version.
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 This program is distributed in the hope that it will be useful,
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 GNU General Public License for more details.
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 You should have received a copy of the GNU General Public License
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 along with this program; if not, write to the Free Software Foundation,
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 #ifndef _EXIT_H
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 #define _EXIT_H
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21 /* Get exit() declaration. */
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 #include <stdlib.h>
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
23
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
24 /* Some systems do not define EXIT_*, even with STDC_HEADERS. */
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
25 #ifndef EXIT_SUCCESS
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
26 # define EXIT_SUCCESS 0
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
27 #endif
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
28 #ifndef EXIT_FAILURE
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
29 # define EXIT_FAILURE 1
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
30 #endif
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
31
bd8ff0653fc8 New module 'exit'.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
32 #endif /* _EXIT_H */