|
|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T U s
Length: 1025 (0x401)
Types: TextFile
Notes: UNIX file
Names: »space.c«
└─⟦69f23ffa1⟧ Bits:30004042/kconfig2.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦69f23ffa1⟧ UNIX Filesystem
└─⟦this⟧ »kc/new/etc/atconf/modules/sem/space.c«
/* Copyright (c) 1984 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)space.c 1.1"
#include "sys/types.h"
#include "sys/param.h"
#include "sys/map.h"
#include "sys/ipc.h"
#include "sys/sem.h"
#include "sys/kdef.h"
#define SEMMAP 10
#define SEMMNI 10
#define SEMMNS 60
#define SEMMNU 30
#define SEMMSL 25
#define SEMOPM 10
#define SEMUME 10
#define SEMVMX 32767
#define SEMAEM 16384
#define max(a,b) ((a)>(b)?(a):(b))
#include "config.h" /* for overriding above parameters */
struct semid_ds sema[SEMMNI] ;
struct sem sem[SEMMNS] ;
struct map semmap[SEMMAP] ;
long sem_undo[NPROC] ;
int semu[((16+8*SEMUME)*SEMMNU+NBPW-1)/NBPW] ;
int semtmp[(max(2*SEMMSL,max(0x20,8*SEMOPM))+NBPW-1)/NBPW] ;
struct seminfo seminfo
={SEMMAP,
SEMMNI,
SEMMNS,
SEMMNU,
SEMMSL,
SEMOPM,
SEMUME,
16+8*SEMUME,
SEMVMX,
SEMAEM} ;