1 /* 2 * Copyright (c) 1982, 1986, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 * 7 * @(#)subr_xxx.c 8.1 (Berkeley) 06/10/93 8 */ 9 10 /* 11 * Miscellaneous trivial functions, including many 12 * that are often inline-expanded or done in assembler. 13 */ 14 #include <sys/param.h> 15 #include <sys/systm.h> 16 17 #include <machine/cpu.h> 18 19 /* 20 * Unsupported device function (e.g. writing to read-only device). 21 */ 22 enodev() 23 { 24 25 return (ENODEV); 26 } 27 28 /* 29 * Unconfigured device function; driver not configured. 30 */ 31 enxio() 32 { 33 34 return (ENXIO); 35 } 36 37 /* 38 * Unsupported ioctl function. 39 */ 40 enoioctl() 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 */ 51 enosys() 52 { 53 54 return (ENOSYS); 55 } 56 57 /* 58 * Return error for operation not supported 59 * on a specific object or file type. 60 */ 61 eopnotsupp() 62 { 63 64 return (EOPNOTSUPP); 65 } 66 67 /* 68 * Generic null operation, always returns success. 69 */ 70 nullop() 71 { 72 73 return (0); 74 } 75