/* * Copyright (c) 1982, 1986, 1991, 1993 * The Regents of the University of California. All rights reserved. * * %sccs.include.redist.c% * * @(#)subr_xxx.c 8.1 (Berkeley) 06/10/93 */ /* * Miscellaneous trivial functions, including many * that are often inline-expanded or done in assembler. */ #include #include #include /* * Unsupported device function (e.g. writing to read-only device). */ enodev() { return (ENODEV); } /* * Unconfigured device function; driver not configured. */ enxio() { return (ENXIO); } /* * Unsupported ioctl function. */ enoioctl() { return (ENOTTY); } /* * Unsupported system function. * This is used for an otherwise-reasonable operation * that is not supported by the current system binary. */ enosys() { return (ENOSYS); } /* * Return error for operation not supported * on a specific object or file type. */ eopnotsupp() { return (EOPNOTSUPP); } /* * Generic null operation, always returns success. */ nullop() { return (0); }