make kernel includes standard
[unix-history] / usr / src / sys / kern / subr_xxx.c
CommitLineData
da7c5cc6 1/*
d7db4999
MK
2 * Copyright (c) 1982, 1986, 1991 Regents of the University of California.
3 * All rights reserved.
da7c5cc6 4 *
d7db4999
MK
5 * %sccs.include.redist.c%
6 *
38a01dbe 7 * @(#)subr_xxx.c 7.14 (Berkeley) %G%
da7c5cc6 8 */
961945a8 9
d7db4999
MK
10/*
11 * Miscellaneous trivial functions, including many
12 * that are often inline-expanded or done in assembler.
13 */
38a01dbe
KB
14#include <sys/param.h>
15#include <sys/systm.h>
16
17#include <machine/cpu.h>
ae9e2121 18
ae9e2121 19/*
d7db4999 20 * Unsupported device function (e.g. writing to read-only device).
ae9e2121 21 */
d7db4999 22enodev()
ae9e2121
BJ
23{
24
50a84b40 25 return (ENODEV);
ae9e2121
BJ
26}
27
28/*
d7db4999
MK
29 * Unconfigured device function; driver not configured.
30 */
31enxio()
32{
33
34 return (ENXIO);
35}
36
37/*
e64c6da2
MK
38 * Unsupported ioctl function.
39 */
40enoioctl()
41{
42
43 return (ENOTTY);
44}
45
46/*
47 * Unsupported system function.
48 * This is used for an otherwise-reasonable operation
49 * that is not supported by the current system binary.
50 */
51enosys()
52{
53
54 return (ENOSYS);
55}
56
57/*
58 * Return error for operation not supported
59 * on a specific object or file type.
ae9e2121 60 */
d7db4999
MK
61eopnotsupp()
62{
63
64 return (EOPNOTSUPP);
65}
66
67/*
68 * Generic null operation, always returns success.
69 */
70nullop()
ae9e2121
BJ
71{
72
50a84b40 73 return (0);
ae9e2121 74}