Next: , Previous: , Up: autogen Invocation   [Contents][Index]


5.9 autogen exit status

One of the following exit values will be returned:

‘0 (EXIT_SUCCESS)’

Successful program execution.

‘1 (EXIT_OPTION_ERROR)’

The command options were misconfigured.

‘2 (EXIT_BAD_TEMPLATE)’

An error was encountered processing the template.

‘3 (EXIT_BAD_DEFINITIONS)’

The definitions could not be deciphered.

‘4 (EXIT_LOAD_ERROR)’

An error was encountered during the load phase.

‘5 (EXIT_FS_ERROR)’

a file system error stopped the program.

‘6 (EXIT_NO_MEM)’

Insufficient memory to operate.

‘64 (EXIT_SYSEXIT_USAGE)’

command line usage error

‘65 (EXIT_SYSEXIT_DATAERR)’

data format error

‘66 (EXIT_SYSEXIT_NOINPUT)’

cannot open input

‘67 (EXIT_SYSEXIT_NOUSER)’

addressee unknown

‘68 (EXIT_SYSEXIT_NOHOST)’

host name unknown

‘69 (EXIT_SYSEXIT_UNAVAILABLE)’

service unavailable

‘70 (EXIT_SYSEXIT_SOFTWARE)’

internal software error

‘71 (EXIT_SYSEXIT_OSERR)’

system error (e.g., cannot fork)

‘72 (EXIT_SYSEXIT_OSFILE)’

critical OS file missing

‘73 (EXIT_SYSEXIT_CANTCREAT)’

cannot create (user) output file

‘74 (EXIT_SYSEXIT_IOERR)’

input/output error

‘75 (EXIT_SYSEXIT_TEMPFAIL)’

temp failure; user is invited to retry

‘76 (EXIT_SYSEXIT_PROTOCOL)’

remote error in protocol

‘77 (EXIT_SYSEXIT_NOPERM)’

permission denied

‘78 (EXIT_SYSEXIT_CONFIG)’

configuration error

‘128 (EXIT_SIGNAL)’

autogen exited due to catching a signal. If your template includes string formatting, a number argument to a "%s" formatting element will trigger a segmentation fault. Autogen will catch the seg fault signal and exit with AUTOGEN_EXIT_SIGNAL(5). Alternatively, AutoGen may have been interrupted with a kill(2) signal.

Subtract 128 from the actual exit code to detect the signal number.