mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-13 14:40:22 +00:00
implement OSF_GET_MAX_UPROCS portion of osf1_getsysinfo() for AT&T ksh
This commit is contained in:
parent
b5227c64c4
commit
081fb9623d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55492
@ -44,12 +44,15 @@ extern int bsd_to_osf1_errno[];
|
||||
#define OSF1_IOC_DIRMASK 0xe0000000 /* mask for IN/OUT/VOID */
|
||||
#define OSF1_IOCCMD(x) ((x) & 0xff)
|
||||
|
||||
/* for get/set sysinfo */
|
||||
#define OSF_SET_IEEE_FP_CONTROL 14
|
||||
/* for get sysinfo */
|
||||
#define OSF_GET_MAX_UPROCS 2
|
||||
#define OSF_GET_IEEE_FP_CONTROL 45
|
||||
#define OSF_GET_PROC_TYPE 60
|
||||
#define OSF_GET_HWRPB 101
|
||||
|
||||
/* for set sysinfo */
|
||||
#define OSF_SET_IEEE_FP_CONTROL 14
|
||||
|
||||
/* for rlimit */
|
||||
#define OSF1_RLIMIT_LASTCOMMON 5 /* last one that's common */
|
||||
#define OSF1_RLIMIT_NOFILE 6 /* OSF1's RLIMIT_NOFILE */
|
||||
|
@ -272,6 +272,11 @@ osf1_getsysinfo(p, uap)
|
||||
error = retval = 0;
|
||||
|
||||
switch(uap->op) {
|
||||
case OSF_GET_MAX_UPROCS:
|
||||
error = copyout(&maxprocperuid, uap->buffer,
|
||||
sizeof(maxprocperuid));
|
||||
retval = 1;
|
||||
break;
|
||||
case OSF_GET_IEEE_FP_CONTROL:
|
||||
error = copyout(&p->p_addr->u_pcb.pcb_fp_control,uap->buffer,
|
||||
sizeof(p->p_addr->u_pcb.pcb_fp_control));
|
||||
|
Loading…
Reference in New Issue
Block a user