[BACK]Return to sysdef.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / mg

File: [local] / src / usr.bin / mg / Attic / sysdef.h (download)

Revision 1.18, Sun Nov 16 01:01:28 2014 UTC (9 years, 6 months ago) by guenther
Branch: MAIN
Changes since 1.17: +2 -1 lines

pull in <time.h> for struct timespec

diff from Kamil Rytarowski (n54 (at) gmx.com)

/*	$OpenBSD: sysdef.h,v 1.18 2014/11/16 01:01:28 guenther Exp $	*/

/* This file is in the public domain. */

/*
 *		POSIX system header file
 */
#include <sys/param.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 */
};