2010-05-01 00:47:17 +04:00
|
|
|
/* $NetBSD: sem.h,v 1.7 2010/04/30 20:47:18 pooka Exp $ */
|
1996-03-03 20:21:25 +03:00
|
|
|
|
1996-03-17 09:29:19 +03:00
|
|
|
/*
|
1995-04-28 10:54:58 +04:00
|
|
|
* Copyright (c) 1992, 1993
|
|
|
|
* The Regents of the University of California. All rights reserved.
|
|
|
|
*
|
|
|
|
* This software was developed by the Computer Systems Engineering group
|
|
|
|
* at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and
|
|
|
|
* contributed to Berkeley.
|
|
|
|
*
|
|
|
|
* All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the University of
|
|
|
|
* California, Lawrence Berkeley Laboratories.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
2003-08-07 15:25:11 +04:00
|
|
|
* 3. Neither the name of the University nor the names of its contributors
|
1995-04-28 10:54:58 +04:00
|
|
|
* may be used to endorse or promote products derived from this software
|
|
|
|
* without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*
|
|
|
|
* from: @(#)sem.h 8.1 (Berkeley) 6/6/93
|
|
|
|
*/
|
|
|
|
|
2000-10-02 23:48:34 +04:00
|
|
|
void enddefs(void);
|
1995-04-28 10:54:58 +04:00
|
|
|
|
Introduce versioning to config(1). This will allow us to provide a way to
error out in a bit more friendly way when the user is trying to use
config(1) on a too old or too recent source tree.
To achieve that, introduce the "version NUMBER" statement which can be use
about anywhere in the config files. Also, use two defines, CONFIG_VERSION
(which is the actual version of binary), and CONFIG_MINVERSION, which is
the minimum version the binary supports.
Allowing a range of versions serves several purposes: first it allows me
to introduce the versioning without requiring it to be used right away in
the kernel tree, which means it will be possible to introduce new features
of config(1) rather progressively in the future. E.g., using 'no pci' in
a config file could only require the new version in that config file, so
that the rest remains compatible.
In the end, an actual bump of the main config system (i.e., in conf/files)
will only be required when e.g., ioconf.c semantics change.
(Mostly-)silently accepted on tech-kern. Error messages turned into
correct and meaningful English thanks to Tracy and Perry.
2005-10-12 05:17:43 +04:00
|
|
|
void setversion(int);
|
2000-10-02 23:48:34 +04:00
|
|
|
void setdefmaxusers(int, int, int);
|
|
|
|
void setmaxusers(int);
|
|
|
|
void setident(const char *);
|
2002-10-10 00:17:00 +04:00
|
|
|
int defattr(const char *, struct nvlist *, struct nvlist *, int);
|
2002-06-05 14:56:17 +04:00
|
|
|
void defdev(struct devbase *, struct nvlist *, struct nvlist *, int);
|
2000-10-02 23:48:34 +04:00
|
|
|
void defdevattach(struct deva *, struct devbase *, struct nvlist *,
|
|
|
|
struct nvlist *);
|
2002-06-05 14:56:17 +04:00
|
|
|
struct devbase *getdevbase(const char *);
|
|
|
|
struct deva *getdevattach(const char *);
|
|
|
|
struct attr *getattr(const char *);
|
2002-10-10 00:17:00 +04:00
|
|
|
void expandattr(struct attr *, void (*)(struct attr *));
|
2002-10-11 05:48:25 +04:00
|
|
|
void selectattr(struct attr *);
|
2002-06-05 14:56:17 +04:00
|
|
|
void setmajor(struct devbase *, int);
|
2000-10-02 23:48:34 +04:00
|
|
|
void addconf(struct config *);
|
|
|
|
void setconf(struct nvlist **, const char *, struct nvlist *);
|
2006-02-11 23:15:53 +03:00
|
|
|
void delconf(const char *);
|
2000-10-02 23:48:34 +04:00
|
|
|
void setfstype(const char **, const char *);
|
|
|
|
void adddev(const char *, const char *, struct nvlist *, int);
|
2005-10-01 02:51:46 +04:00
|
|
|
void deldevi(const char *, const char *);
|
|
|
|
void deldeva(const char *);
|
|
|
|
void deldev(const char *);
|
2002-06-05 14:56:17 +04:00
|
|
|
void addpseudo(const char *, int);
|
|
|
|
void delpseudo(const char *);
|
2010-03-08 13:19:14 +03:00
|
|
|
void addpseudoroot(const char *);
|
2010-05-01 00:47:17 +04:00
|
|
|
void adddevm(const char *, int, int,
|
|
|
|
struct nvlist *, struct nvlist *);
|
2005-10-02 03:30:37 +04:00
|
|
|
int fixdevis(void);
|
2002-06-05 14:56:17 +04:00
|
|
|
const char *ref(const char *);
|
|
|
|
const char *starref(const char *);
|
|
|
|
const char *wildref(const char *);
|
2000-10-02 23:48:34 +04:00
|
|
|
int has_attr(struct nvlist *, const char *);
|
1995-04-28 10:54:58 +04:00
|
|
|
|
1997-01-31 06:12:30 +03:00
|
|
|
extern const char *s_qmark;
|
1997-06-14 08:25:55 +04:00
|
|
|
extern const char *s_none;
|
1997-05-25 22:42:54 +04:00
|
|
|
extern const char *s_ifnet;
|