⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 df.h

📁 linux 中df命令的实现c语言源码
💻 H
字号:
/*********************************************************************
Copyright (c)	:	 free software.
*Filename		:	df.h
*Author			:	gxg
*Version		:	1.0
*History		:	
*Data			:	2008.09.22
*Description	:	
*Other			:	
*********************************************************************/
#ifndef __COMMON_H__
#define __COMMON_H__

#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */

#define CONFIG_FEATURE_HUMAN_READABLE
#define EXIT_SUCCESS          	0
#define BB_GETOPT_ERROR 	0x80000000


enum {
	KILOBYTE = 1024,
	MEGABYTE = (KILOBYTE*1024),
	GIGABYTE = (MEGABYTE*1024)
};

typedef struct llist_s {
	char *data;
	struct llist_s *link;
} llist_t;

#define  no_argument   0
const char *bb_opt_complementally;typedef struct {	int opt;	int list_flg;	unsigned long switch_on;	unsigned long switch_off;	unsigned long incongruously;	unsigned long requires;	void **optarg;               /* char **optarg or llist_t **optarg */	int *counter;} t_complementally;
extern char *optarg; /* in unistd.h */
extern int  optind, opterr, optopt; /* in unistd.h */




#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */

#endif  //__COMMON_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -