dev.c (1f629966d683ca2e79adbc6c39e7ec5f1a87832f) dev.c (dc472f67021320309ced970d3d26d30a04da0ef2)
1/* $NetBSD: dev.c,v 1.4 1994/10/30 21:48:23 cgd Exp $ */
2
3/*-
4 * Copyright (c) 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 42 unchanged lines hidden (view full) ---

51}
52
53/* ARGSUSED */
54int
55noioctl(struct open_file *f __unused, u_long cmd __unused, void *data __unused)
56{
57 return (EINVAL);
58}
1/* $NetBSD: dev.c,v 1.4 1994/10/30 21:48:23 cgd Exp $ */
2
3/*-
4 * Copyright (c) 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 42 unchanged lines hidden (view full) ---

51}
52
53/* ARGSUSED */
54int
55noioctl(struct open_file *f __unused, u_long cmd __unused, void *data __unused)
56{
57 return (EINVAL);
58}
59
60char *
61devformat(struct devdesc *d)
62{
63 static char name[DEV_DEVLEN];
64
65 if (d->d_dev->dv_fmtdev != NULL)
66 return (d->d_dev->dv_fmtdev(d));
67 snprintf(name, sizeof(name), "%s%d:", d->d_dev->dv_name, d->d_unit);
68 return (name);
69}