/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* bos720 src/bos/kernel/sys/param.h 1.40.1.7 */ /* */ /* Licensed Materials - Property of IBM */ /* */ /* COPYRIGHT International Business Machines Corp. 1988,1995 */ /* All Rights Reserved */ /* */ /* US Government Users Restricted Rights - Use, duplication or */ /* disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ /* */ /* IBM_PROLOG_END_TAG */ /* @(#)45 1.40.1.7 src/bos/kernel/sys/param.h, sysproc, bos720 6/14/06 03:08:04 */ #ifndef _H_PARAM #define _H_PARAM /* * COMPONENT_NAME: (SYSPROC) process management * * FUNCTIONS: none * * ORIGINS: 26, 9, 27 * * (C) COPYRIGHT International Business Machines Corp. 1988, 1995 * All Rights Reserved * Licensed Materials - Property of IBM * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. * */ #ifdef __cplusplus extern "C" { #endif #include #include #include #include #include #define MAXUPRC CHILD_MAX #define NOFILE OPEN_MAX /* * fundamental variables * don't change too often */ #define MAXPID PID_MAX /* max process id */ #define MAXUID UID_MAX /* max user id */ #define MAXLINK LINK_MAX /* max links */ #define MAXBLK 500 /* max blocks possible for phys IO */ #define CANBSIZ MAX_CANON /* max size of typewriter line */ #define NCARGS_SHIFT 22 /* log2 of NCARGS_MAX */ /* ARG_MAX and NCARGS values are user configurable. The definition given in this file is just the default one and doesn't necessarily match the running system. The application should query the supported size using sysconf(_SC_ARG_MAX) and dynamically allocate size. Static allocation of ARG_MAX & NCARGS values should be avoided. */ #define NCARGS ARG_MAX /* # characters in exec arglist, minimum*/ #define NCARGS_MAX (1ul<(b))?(a):(b)) #endif /* MAX */ /* * Macros for counting and rounding. */ #ifndef howmany #define howmany(x, y) (((x)+((y)-1))/(y)) #endif #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* * Maximum size of hostname recognized and stored in the kernel. */ #ifndef MAXHOSTNAMELEN #define MAXHOSTNAMELEN 256 #endif /* MAXHOSTNAMELEN */ /* for AIX sockets */ /* MBUF CLUSTER defines, totally unlike the vax */ #define NBPG PAGESIZE /* This used to be CLSIZE, changed to avoid name collision, see sys/tty.h */ #define CLUSTERSIZE 1 /* one cluster per page */ #define CLBYTES (CLUSTERSIZE*PAGESIZE) /* PAGESIZE from AIX */ #define CLOFSET (CLUSTERSIZE*PAGESIZE-1)/* for clusters, like PGOFSET */ #define claligned(x) ((((int)(x))&CLOFSET)==0) #define CLOFF CLOFSET #define CLSIZELOG2 0 /* CLUSTERSIZE == PAGESIZE */ #define CLSHIFT (BPCSHIFT+CLSIZELOG2) /* Bytes per Click shift AIX */ #if CLUSTERSIZE==1 #define clbase(i) (i) #define clrnd(i) (i) #else /* give the base virtual address (first of CLUSTERSIZE) */ #define clbase(i) ((i) &~ (CLUSTERSIZE-1)) /* round a number of clicks up to a whole cluster */ #define clrnd(i) (((i) + (CLUSTERSIZE-1)) &~ (CLUSTERSIZE-1)) #endif /* BSD param.h also includes signal.h */ #ifdef _BSD #ifndef _KERNEL #include #endif /* _KERNEL */ #endif /* _BSD */ #define CPUP_WLM_CLASSES 0 #define CPUP_PROC_RSETS 1 #define CPUP_BOUND_PROCS 2 #include "sys/sysmacros.h" #ifdef __cplusplus } #endif #endif /* _H_PARAM */