#include <sys/proc_internal.h>
#include <sys/vnode.h>
#include <sys/uio.h>
+#include <sys/sysproto.h>
+
+#include <sys/signalvar.h> /* for psignal() */
+
+
+#ifdef GPROF
+#include <sys/gmon.h>
+#endif
+
/*
* Unsupported device function (e.g. writing to read-only device).
*/
int
-enodev()
+enodev(void)
{
return (ENODEV);
}
* Unsupported strategy function.
*/
void
-enodev_strat()
+enodev_strat(void)
{
return;
}
* Unconfigured device function; driver not configured.
*/
int
-enxio()
+enxio(void)
{
return (ENXIO);
}
* Unsupported ioctl function.
*/
int
-enoioctl()
+enoioctl(void)
{
return (ENOTTY);
}
* that is not supported by the current system binary.
*/
int
-enosys()
+enosys(void)
{
return (ENOSYS);
}
* XXX Name of this routine is wrong.
*/
int
-eopnotsupp()
+eopnotsupp(void)
{
return (ENOTSUP);
}
* Generic null operation, always returns success.
*/
int
-nullop()
+nullop(void)
{
return (0);
}
* in the bdevsw and cdevsw tables.
*/
int
-nulldev()
+nulldev(void)
{
return (0);
}
* Null system calls. Not invalid, just not configured.
*/
int
-errsys()
+errsys(void)
{
return(EINVAL);
}
void
-nullsys()
+nullsys(void)
{
}
*/
/* ARGSUSED */
int
-nosys(p, args, retval)
- struct proc *p;
- void *args;
- register_t *retval;
+nosys(struct proc *p, __unused struct nosys_args *args, __unused int32_t *retval)
{
psignal(p, SIGSYS);
return (ENOSYS);
* Stub routine in case it is ever possible to free space.
*/
void
-cfreemem(cp, size)
- caddr_t cp;
- int size;
+cfreemem(caddr_t cp, int size)
{
- printf("freeing %x, size %d\n", cp, size);
+ printf("freeing %p, size %d\n", cp, size);
}
#endif