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