diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-04-21 16:04:01 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-04-21 16:09:41 +0300 |
commit | eb0b1eef83ca77da145264c81631299ffc4cc574 (patch) | |
tree | 60d62365877e47a6d80e15ef4b42430171b34e62 /src/stat.c | |
parent | dbc2333c048514d0bbdade8a680c3933c7dc79a4 (diff) | |
download | tagr-eb0b1eef83ca77da145264c81631299ffc4cc574.tar.gz tagr-eb0b1eef83ca77da145264c81631299ffc4cc574.tar.bz2 |
Use "grecs" submodule for configuration parsing.
* Makefile.am (ACLOCAL_AMFLAGS): Add -I grecs/am.
(SUBDIRS): grecs
(ChangeLog): New rule.
* ChangeLog: Rename to ChangeLog.svn
* doc: Rename to etc.
* etc/upgrade.awk: New file.
* bootstrap.conf: Initialize "grecs".
* configure.ac: Call GRECS_SETUP.
(AC_CONFIG_FILES): Add grecs/Makefile and grecs/src/Makefile.
* gnulib.modules: Add gitlog-to-changelog and sysexits.
* src/Makefile.am (LDADD, INCLUDES): Add grecs.
(AM_CPPFLAGS): Define additional variables.
* src/log.c (use_stderr): Remove. Use log_to_stderr instead.
(grecs_print_diag): New function.
* src/main.c: Redo command-line support.
(listen_sockaddr): New global.
* src/readconfig.c: Rewrite.
* src/tagr.h: Include sysexits.h and grecs.h
(listen_sockaddr, log_to_stderr, pidfile): New externs.
* src/main.c, src/stat.c, src/report.c: Use sysexits codes.
Diffstat (limited to 'src/stat.c')
-rw-r--r-- | src/stat.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,3 +1,3 @@ /* This file is part of tagr. - Copyright (C) 2005, Sergey Poznyakoff + Copyright (C) 2005, 2009 Sergey Poznyakoff @@ -372,3 +372,3 @@ import (const char *dirname) if (stat (dirname, &st)) - die (3, "cannot stat file `%s': %s", dirname, strerror (errno)); + die (EX_OSERR, "cannot stat file `%s': %s", dirname, strerror (errno)); else if (S_ISREG (st.st_mode)) @@ -403,6 +403,6 @@ import (const char *dirname) case GLOB_NOSPACE: - die (3, "cannot scan directory: %s", strerror (ENOMEM)); + die (EX_UNAVAILABLE, "cannot scan directory: %s", strerror (ENOMEM)); case GLOB_ABORTED: - die (3, "scanning aborted"); + die (EX_UNAVAILABLE, "scanning aborted"); @@ -412,3 +412,3 @@ import (const char *dirname) default: - die (3, "cannot scan directory `%s'", dirname); + die (EX_UNAVAILABLE, "cannot scan directory `%s'", dirname); } |