micro-utils/config.h

52 lines
964 B
C

#ifndef _CONFIG_H
#define _CONFIG_H
/* (cat tee wc xargs rev) */
#define BUF_SIZE 4096
/* Random source (shred) */
#define RAND_SOURCE "/dev/urandom"
/* format for printf (head) */
#define HEAD_FMT "==> %s <==\n"
/* block size (du) */
#define BLK_SIZE 512
/* mount config */
#define MOUNT_CFG "/etc/fstab"
#define MOUNT_DEF_FS "ext4"
/* nologin sleep */
#define NOLOGIN_SLEEP 60
/* colors for ls */
#define LS_DIR_COLOR "\033[1;34m"
#define LS_LINK_COLOR "\033[1;35m"
#define LS_SOCK_COLOR LS_LINK_COLOR
#define LS_FIFO_COLOR LS_LINK_COLOR
#define LS_EXE_COLOR "\033[1;32m"
/* RunComm prompt */
#define RC_PS "> "
/* Max args (xargs) */
#define NARGS 1024
/* Arg size (xargs) */
#define ARG_SIZE 1024
/* Default cmd (xargs) */
#define ECHO_CMD "echo"
/* Options: To disable, comment line */
/* Add escape-char support in echo */
#define ECHO_FANCY
/* getloadavg() unavailable in android os */
#ifndef __ANDROID__
#define UPTIME_LOADAVG
#endif
#endif