xref: /csrg-svn/sys/kern/subr_xxx.c (revision 68312)
123383Smckusick /*
263176Sbostic  * Copyright (c) 1982, 1986, 1991, 1993
363176Sbostic  *	The Regents of the University of California.  All rights reserved.
423383Smckusick  *
547543Skarels  * %sccs.include.redist.c%
647543Skarels  *
7*68312Scgd  *	@(#)subr_xxx.c	8.2 (Berkeley) 02/14/95
823383Smckusick  */
934Sbill 
1047543Skarels /*
1147543Skarels  * Miscellaneous trivial functions, including many
1247543Skarels  * that are often inline-expanded or done in assembler.
1347543Skarels  */
1456517Sbostic #include <sys/param.h>
1556517Sbostic #include <sys/systm.h>
169758Ssam 
1756517Sbostic #include <machine/cpu.h>
1856517Sbostic 
1934Sbill /*
2047543Skarels  * Unsupported device function (e.g. writing to read-only device).
2134Sbill  */
22*68312Scgd int
2347543Skarels enodev()
2434Sbill {
2534Sbill 
268555Sroot 	return (ENODEV);
2734Sbill }
2834Sbill 
2934Sbill /*
3047543Skarels  * Unconfigured device function; driver not configured.
3134Sbill  */
32*68312Scgd int
3347543Skarels enxio()
3434Sbill {
3534Sbill 
3647543Skarels 	return (ENXIO);
3747543Skarels }
3847543Skarels 
3947543Skarels /*
4048434Skarels  * Unsupported ioctl function.
4147543Skarels  */
42*68312Scgd int
4348434Skarels enoioctl()
4448434Skarels {
4548434Skarels 
4648434Skarels 	return (ENOTTY);
4748434Skarels }
4848434Skarels 
4948434Skarels /*
5048434Skarels  * Unsupported system function.
5148434Skarels  * This is used for an otherwise-reasonable operation
5248434Skarels  * that is not supported by the current system binary.
5348434Skarels  */
54*68312Scgd int
5548434Skarels enosys()
5648434Skarels {
5748434Skarels 
5848434Skarels 	return (ENOSYS);
5948434Skarels }
6048434Skarels 
6148434Skarels /*
6248434Skarels  * Return error for operation not supported
6348434Skarels  * on a specific object or file type.
6448434Skarels  */
65*68312Scgd int
6647543Skarels eopnotsupp()
6747543Skarels {
6847543Skarels 
6947543Skarels 	return (EOPNOTSUPP);
7047543Skarels }
7147543Skarels 
7247543Skarels /*
7347543Skarels  * Generic null operation, always returns success.
7447543Skarels  */
75*68312Scgd int
7647543Skarels nullop()
7747543Skarels {
7847543Skarels 
798555Sroot 	return (0);
8034Sbill }
81