openenvutils/commandshell/shell/inc/rlimits.h
author Peter Fordham <peter.fordham@gmail.com>
Fri, 19 Mar 2010 13:11:12 -0700
branchCompilerCompatibility
changeset 9 44211cf3eedb
parent 0 2e3d3ce01487
child 4 0fdb7f6b0309
permissions -rw-r--r--
start CompilerCompatibility

/** rlimits.h                              **/
/** architecture-customized limits for zsh **/

#define ZSH_NLIMITS 15

static char const *recs[ZSH_NLIMITS] = {
	"cputime",
	"filesize",
	"datasize",
	"stacksize",
	"coredumpsize",
	"memoryuse",
	"maxproc",
	"descriptors",
	"memorylocked",
	"addressspace",
	"maxfilelocks",
	"sigpending",
	"msgqueue",
	"NICE",
	"RTPRIO",
};

static int limtype[ZSH_NLIMITS] = {
	ZLIMTYPE_TIME,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_NUMBER,
	ZLIMTYPE_NUMBER,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_MEMORY,
	ZLIMTYPE_NUMBER,
	ZLIMTYPE_NUMBER,
	ZLIMTYPE_NUMBER,
	ZLIMTYPE_UNKNOWN,
	ZLIMTYPE_UNKNOWN,
};