xref: /openbsd-src/usr.sbin/config/sem.h (revision ce7279d89b71439c96c854f612f4ac93a461fdc4)
1*ce7279d8Sjsg /*	$OpenBSD: sem.h,v 1.14 2024/05/21 05:00:48 jsg Exp $	*/
2fcfeecc2Sbriggs /*	$NetBSD: sem.h,v 1.6 1996/11/11 23:40:10 gwr Exp $	*/
3608f9123Sniklas 
4df930be7Sderaadt /*
5df930be7Sderaadt  * Copyright (c) 1992, 1993
6df930be7Sderaadt  *	The Regents of the University of California.  All rights reserved.
7df930be7Sderaadt  *
8df930be7Sderaadt  * This software was developed by the Computer Systems Engineering group
9df930be7Sderaadt  * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
10df930be7Sderaadt  * contributed to Berkeley.
11df930be7Sderaadt  *
12df930be7Sderaadt  * All advertising materials mentioning features or use of this software
13df930be7Sderaadt  * must display the following acknowledgement:
14df930be7Sderaadt  *	This product includes software developed by the University of
15df930be7Sderaadt  *	California, Lawrence Berkeley Laboratories.
16df930be7Sderaadt  *
17df930be7Sderaadt  * Redistribution and use in source and binary forms, with or without
18df930be7Sderaadt  * modification, are permitted provided that the following conditions
19df930be7Sderaadt  * are met:
20df930be7Sderaadt  * 1. Redistributions of source code must retain the above copyright
21df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer.
22df930be7Sderaadt  * 2. Redistributions in binary form must reproduce the above copyright
23df930be7Sderaadt  *    notice, this list of conditions and the following disclaimer in the
24df930be7Sderaadt  *    documentation and/or other materials provided with the distribution.
2529295d1cSmillert  * 3. Neither the name of the University nor the names of its contributors
26df930be7Sderaadt  *    may be used to endorse or promote products derived from this software
27df930be7Sderaadt  *    without specific prior written permission.
28df930be7Sderaadt  *
29df930be7Sderaadt  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30df930be7Sderaadt  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31df930be7Sderaadt  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32df930be7Sderaadt  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33df930be7Sderaadt  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34df930be7Sderaadt  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35df930be7Sderaadt  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36df930be7Sderaadt  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37df930be7Sderaadt  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38df930be7Sderaadt  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39df930be7Sderaadt  * SUCH DAMAGE.
40df930be7Sderaadt  *
41df930be7Sderaadt  *	from: @(#)sem.h	8.1 (Berkeley) 6/6/93
42df930be7Sderaadt  */
43df930be7Sderaadt 
44c72b5b24Smillert void		enddefs(void);
45df930be7Sderaadt 
46c72b5b24Smillert void		setdefmaxusers(int, int, int);
47c72b5b24Smillert void		setmaxusers(int);
48c72b5b24Smillert int		defattr(const char *, struct nvlist *);
49f3c3a9c6Smillert void		defdev(struct devbase *, int, struct nvlist *, struct nvlist *);
50f3c3a9c6Smillert void		defdevattach(struct deva *, struct devbase *,
51f3c3a9c6Smillert 		    struct nvlist *, struct nvlist *);
52815b5809Sderaadt struct devbase *getdevbase(char *name);
53c72b5b24Smillert struct deva    *getdevattach(const char *name);
54c72b5b24Smillert struct attr    *getattr(const char *name);
55c72b5b24Smillert void		setmajor(struct devbase *d, int n);
56c72b5b24Smillert void		addconf(struct config *);
57c72b5b24Smillert void		setconf(struct nvlist **, const char *, struct nvlist *);
58c72b5b24Smillert void		adddev(const char *, const char *, struct nvlist *, int, int);
59c72b5b24Smillert void		enabledev(const char *, const char *);
601eb41ac0Smaja void		addpseudo(const char *name, int number, int disable);
61c72b5b24Smillert const char     *starref(const char *name);
62c72b5b24Smillert const char     *wildref(const char *name);
63df930be7Sderaadt 
64df930be7Sderaadt extern const char *s_generic;
65df930be7Sderaadt extern const char *s_nfs;
66