micro-utils/config.h

50 lines
957 B
C
Raw Normal View History

2023-11-14 20:13:31 +00:00
#ifndef _CONFIG_H
#define _CONFIG_H
2023-12-02 12:48:28 +00:00
/* (cat tee wc xargs rev) */
2023-11-14 20:13:31 +00:00
#define BUF_SIZE 4096
2023-11-22 12:02:09 +00:00
/* Random source (shred) */
2023-11-14 20:13:31 +00:00
#define RAND_SOURCE "/dev/urandom"
2023-11-17 12:29:29 +00:00
/* format for printf (head) */
#define HEAD_FMT "==> %s <==\n"
2023-12-06 15:26:26 +00:00
/* block size (du) */
2023-11-22 10:58:43 +00:00
#define BLK_SIZE 512
2023-11-22 18:36:45 +00:00
/* mount config */
#define MOUNT_CFG "/etc/fstab"
2023-12-17 18:55:46 +00:00
#define MOUNT_DEF_FS "ext4"
#define MOUNT_LIST "/proc/mounts"
2023-11-22 18:36:45 +00:00
2023-12-02 12:48:28 +00:00
/* nologin sleep */
#define NOLOGIN_SLEEP 60
2023-11-28 19:38:37 +00:00
/* colors for ls */
#define LS_DIR_COLOR "\033[1;34m"
#define LS_LINK_COLOR "\033[1;35m"
2023-11-29 06:07:21 +00:00
#define LS_SOCK_COLOR LS_LINK_COLOR
#define LS_FIFO_COLOR LS_LINK_COLOR
2023-11-28 19:38:37 +00:00
#define LS_EXE_COLOR "\033[1;32m"
2023-12-06 15:26:26 +00:00
/* Max args (xargs) */
#define NARGS 1024
/* Arg size (xargs) */
2023-12-06 15:26:26 +00:00
#define ARG_SIZE 1024
/* Default cmd (xargs) */
2023-11-29 11:05:59 +00:00
#define ECHO_CMD "echo"
2023-11-14 20:25:45 +00:00
/* Options: To disable, comment line */
2023-11-14 20:13:31 +00:00
/* Add escape-char support in echo */
#define ECHO_FANCY
2023-11-14 20:25:45 +00:00
/* getloadavg() unavailable in android os */
#ifndef __ANDROID__
#define UPTIME_LOADAVG
#endif
2023-11-14 20:13:31 +00:00
#endif