|
|
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 f
Length: 1352 (0x548)
Types: TextFile
Notes: UNIX file
Names: »flock.h«
└─⟦a6ab2eb36⟧ Bits:30004042/kconfig3.imd SW95705I 386/ix Multi-user Release 1.2
└─⟦a6ab2eb36⟧ UNIX Filesystem
└─⟦this⟧ »kc/new/usr/include/sys/flock.h«
/* 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 "@(#)flock.h 1.3"
#define INOFLCK 1 /* Inode is locked when reclock() is called. */
#define SETFLCK 2 /* Set a file lock. */
#define SLPFLCK 4 /* Wait if blocked. */
#define USE_PID 1 /* use epid when cleaning locks */
#define IGN_PID 2 /* ignore epid when cleaning locks */
/* file locking structure (connected to inode) */
#define l_end l_len
#define MAXEND 017777777777
struct filock {
struct flock set; /* contains type, start, and end */
union {
int wakeflg; /* for locks sleeping on this one */
struct {
short sysid;
short pid;
} blk; /* for sleeping locks only */
} stat;
#ifdef u3b
sema_t wakesem;
#endif
struct filock *prev;
struct filock *next;
};
/* file and record locking configuration structure */
/* record use total may overflow */
struct flckinfo {
long recs; /* number of records configured on system */
long reccnt; /* number of records currently in use */
long recovf; /* number of times system ran out of record locks. */
long rectot; /* number of records used since system boot */
};
extern struct flckinfo flckinfo;
extern struct filock flox[];