File: exitcodes.h

package info (click to toggle)
ascii2binary 2.14-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 484 kB
  • sloc: ansic: 1,411; sh: 818; makefile: 13
file content (26 lines) | stat: -rw-r--r-- 866 bytes parent folder | download | duplicates (3)
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
#define SUCCESS			0

#define INFO			1

/* SYSTEMERROR means that there was a failure in storage allocation or i/o. */
#define SYSTEMERROR		2

/* COMMANDLINEERROR means that the user gave incorrect or inconsistent command line flags */
#define COMMANDLINEERROR	3

/*
 * RANGEERROR means that the input may be well-formed but cannot be represented
 * as the required type. For example, if the input is the string "983" and
 * ascii2binary is requested to convert this into an unsigned byte, ascii2binary
 * will exit with a RANGEERROR because the maximum value representable in an
 * unsigned byte is 255. This error is applicable only to ascii2binary.
*/
#define RANGEERROR		4

/*
 * INPUTERROR means that the input was ill-formed, that is, that it could not
 * be interpreted as a number of the required type.
 */
#define INPUTERROR		5

#define LOCALENOTAVAILABLE	6