busybox/e2fsprogs/e2fsbb.h

41 lines
1012 B
C
Raw Normal View History

2005-04-24 10:37:59 +05:30
/*
* File: e2fsbb.h
*
* Redefine a bunch of e2fsprogs stuff to use busybox routines
* instead. This makes upgrade between e2fsprogs versions easy.
*/
#ifndef __E2FSBB_H__
#define __E2FSBB_H__ 1
#include "libbb.h"
/* version we've last synced against */
#define E2FSPROGS_VERSION "1.37"
#define E2FSPROGS_DATE "21-Mar-2005"
/* make sure com_err.h isnt included before us */
#ifdef __COM_ERR_H__
#error You should not have included com_err.h !
#endif
#define __COM_ERR_H__
/* com_err crap */
#define com_err(w, c, fmt, args...) bb_error_msg(fmt, ## args)
typedef long errcode_t;
#define ERRCODE_RANGE 8
#define error_message(code) strerror((int) (code & ((1<<ERRCODE_RANGE)-1)))
#define initialize_ext2_error_table(x)
2005-04-24 10:37:59 +05:30
/* NLS crap */
#define _(x) x
#define N_(x) x
2005-05-10 03:23:25 +05:30
#define P_(singular, plural, n) ((n) == 1 ? (singular) : (plural))
2005-04-24 10:37:59 +05:30
/* misc crap */
#define fatal_error(msg, err) bb_error_msg_and_die(msg)
#define usage() bb_show_usage()
#define perror(msg) bb_perror_msg(msg)
#endif /* __E2FSBB_H__ */