view modules/perror @ 17724:8526f2f0b117

maint.mk: give projects more flexibilty in set_prog_name arguments * top/maint.mk (sc_program_name): Allow arguments other than argv[0] to be passed to set_program_name(). This is needed by the multicall coreutils program for example.
author Pádraig Brady <P@draigBrady.com>
date Sat, 12 Jul 2014 15:21:12 +0100
parents eaa30c92de91
children
line wrap: on
line source

Description:
perror() function: print a message describing error code.

Files:
lib/perror.c
m4/perror.m4

Depends-on:
stdio
errno            [test $REPLACE_PERROR = 1]
strerror-override [test $REPLACE_PERROR = 1]
strerror_r-posix [test $REPLACE_PERROR = 1]

configure.ac:
gl_FUNC_PERROR
if test $REPLACE_PERROR = 1; then
  AC_LIBOBJ([perror])
fi
gl_STRING_MODULE_INDICATOR([perror])

Makefile.am:

Include:
<stdio.h>

License:
LGPLv2+

Maintainer:
all