2fe8fb192f
There is important information about booting non-ack images in docs/UPDATING. ack/aout-format images can't be built any more, and booting clang/ELF-format ones is a little different. Updating to the new boot monitor is recommended. Changes in this commit: . drop boot monitor -> allowing dropping ack support . facility to copy ELF boot files to /boot so that old boot monitor can still boot fairly easily, see UPDATING . no more ack-format libraries -> single-case libraries . some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases . drop several ack toolchain commands, but not all support commands (e.g. aal is gone but acksize is not yet). . a few libc files moved to netbsd libc dir . new /bin/date as minix date used code in libc/ . test compile fix . harmonize includes . /usr/lib is no longer special: without ack, /usr/lib plays no kind of special bootstrapping role any more and bootstrapping is done exclusively through packages, so releases depend even less on the state of the machine making them now. . rename nbsd_lib* to lib* . reduce mtree
51 lines
939 B
C
51 lines
939 B
C
#ifndef _SYS_RESOURCE_H_
|
|
#define _SYS_RESOURCE_H_
|
|
|
|
#include <sys/featuretest.h>
|
|
#include <sys/time.h>
|
|
|
|
/*
|
|
* Process priority specifications to get/setpriority.
|
|
*/
|
|
#define PRIO_MIN -20
|
|
#define PRIO_MAX 20
|
|
|
|
#define PRIO_PROCESS 0
|
|
#define PRIO_PGRP 1
|
|
#define PRIO_USER 2
|
|
|
|
/*
|
|
* Resource limits
|
|
*/
|
|
#define RLIMIT_CORE 1
|
|
#define RLIMIT_CPU 2
|
|
#define RLIMIT_DATA 3
|
|
#define RLIMIT_FSIZE 4
|
|
#define RLIMIT_NOFILE 5
|
|
#define RLIMIT_STACK 6
|
|
#define RLIMIT_AS 7
|
|
#define RLIMIT_VMEM RLIMIT_AS /* common alias */
|
|
|
|
#if defined(_NETBSD_SOURCE)
|
|
#define RLIM_NLIMITS 8 /* number of resource limits */
|
|
#endif
|
|
|
|
#define RLIM_INFINITY ((rlim_t) -1)
|
|
#define RLIM_SAVED_CUR RLIM_INFINITY
|
|
#define RLIM_SAVED_MAX RLIM_INFINITY
|
|
|
|
struct rlimit
|
|
{
|
|
rlim_t rlim_cur;
|
|
rlim_t rlim_max;
|
|
};
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__BEGIN_DECLS
|
|
int getpriority(int, int);
|
|
int getrlimit(int, struct rlimit *);
|
|
int setpriority(int, int, int);
|
|
__END_DECLS
|
|
|
|
#endif /* !_SYS_RESOURCE_H_ */
|