include: move disk-utils/mkfs.h -> include/exitcodes.h

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2011-07-22 00:22:14 +02:00
parent 18dad87a27
commit b8f040cdd4
6 changed files with 14 additions and 13 deletions

View File

@ -16,7 +16,7 @@ dist_man_MANS = isosize.8 mkfs.8 mkswap.8 \
sbin_PROGRAMS = mkfs mkswap fsck.minix mkfs.minix mkfs.bfs
fsck_minix_SOURCES = fsck.minix.c minix.h $(top_srcdir)/lib/ismounted.c
mkfs_minix_SOURCES = mkfs.minix.c minix.h mkfs.h $(utils_common) $(top_srcdir)/lib/strutils.c
mkfs_minix_SOURCES = mkfs.minix.c minix.h $(utils_common) $(top_srcdir)/lib/strutils.c
mkfs_bfs_SOURCES = mkfs.bfs.c $(utils_common) $(top_srcdir)/lib/strutils.c
swaplabel_SOURCES = swaplabel.c $(utils_common)
@ -64,7 +64,7 @@ if BUILD_CRAMFS
cramfs_common = $(utils_common) cramfs.h cramfs_common.c
sbin_PROGRAMS += fsck.cramfs mkfs.cramfs
fsck_cramfs_SOURCES = fsck.cramfs.c $(cramfs_common)
mkfs_cramfs_SOURCES = mkfs.cramfs.c mkfs.h $(cramfs_common) $(top_srcdir)/lib/md5.c $(top_srcdir)/lib/strutils.c
mkfs_cramfs_SOURCES = mkfs.cramfs.c $(cramfs_common) $(top_srcdir)/lib/md5.c $(top_srcdir)/lib/strutils.c
fsck_cramfs_LDADD = -lz
mkfs_cramfs_LDADD = -lz
endif

View File

@ -42,7 +42,7 @@
#include "cramfs.h"
#include "md5.h"
#include "nls.h"
#include "mkfs.h"
#include "exitcodes.h"
#include "strutils.h"
#define XALLOC_EXIT_CODE MKFS_ERROR
#include "xalloc.h"

View File

@ -1,9 +0,0 @@
#ifndef __MKFS_H__
#define __MKFS_H__
/* Exit codes used by mkfs-type programs */
#define MKFS_OK 0 /* No errors */
#define MKFS_ERROR 8 /* Operational error */
#define MKFS_USAGE 16 /* Usage or syntax error */
#endif

View File

@ -82,7 +82,7 @@
#include "nls.h"
#include "pathnames.h"
#include "bitops.h"
#include "mkfs.h"
#include "exitcodes.h"
#include "strutils.h"
#define MINIX_ROOT_INO 1

View File

@ -10,6 +10,7 @@ dist_noinst_HEADERS = \
cpuset.h \
crc32.h \
env.h \
exitcodes.h \
fsprobe.h \
ismounted.h \
linux_reboot.h \

9
include/exitcodes.h Normal file
View File

@ -0,0 +1,9 @@
#ifndef UTIL_LINUX_EXITCODES_H
#define UTIL_LINUX_EXITCODES_H
/* Exit codes used by mkfs-type programs */
#define MKFS_OK 0 /* No errors */
#define MKFS_ERROR 8 /* Operational error */
#define MKFS_USAGE 16 /* Usage or syntax error */
#endif /* UTIL_LINUX_EXITCODES_H */