blob: 87c9848cbd6013d205a1bae807094acd0d344b48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* $OpenBSD: sysdef.h,v 1.9 2001/05/24 03:05:26 mickey Exp $ */
/*
* POSIX system header file
*/
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#define KBLOCK 8192 /* Kill grow. */
#define GOOD 0 /* Good exit status. */
#define SYMBLINK 1 /* Handle symbolic links */
#define MAXPATH PATH_MAX /* Maximum length of path for chdir */
typedef int RSIZE; /* Type for file/region sizes */
typedef short KCHAR; /* Type for internal keystrokes */
#define MALLOCROUND(m) (m+=7,m&=~7) /* round up to 8 byte boundry */
#define gettermtype() getenv("TERM") /* determine terminal type */
struct fileinfo {
mode_t fi_mode;
uid_t fi_uid;
gid_t short fi_gid;
};
|