Return to sysdef.h CVS log | Up to [local] / src / usr.bin / mg |
File: [local] / src / usr.bin / mg / Attic / sysdef.h (download)
Revision 1.19, Sun Nov 16 04:16:41 2014 UTC (9 years, 6 months ago) by guenther
Stop using <sys/param.h>; replace MAXPATHLEN with PATH_MAX, stop using MAX(), and pull in <limits.h> for *_MAX constants. inspired on a diff from Kamil Rytarowski (n54 (at) gmx.com) ok bcallah@ |
/* $OpenBSD: sysdef.h,v 1.19 2014/11/16 04:16:41 guenther Exp $ */ /* This file is in the public domain. */ /* * POSIX system header file */ #include <sys/types.h> #include <sys/queue.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <signal.h> #include <time.h> /* for struct timespec */ #define KBLOCK 8192 /* Kill grow. */ typedef int RSIZE; /* Type for file/region sizes */ typedef short KCHAR; /* Type for internal keystrokes */ struct fileinfo { uid_t fi_uid; gid_t fi_gid; mode_t fi_mode; struct timespec fi_mtime; /* Last modified time */ };