46c46
< * $FreeBSD: head/sys/dev/ofw/openfirmio.c 111815 2003-03-03 12:15:54Z phk $
---
> * $FreeBSD: head/sys/dev/ofw/openfirmio.c 116210 2003-06-11 18:33:03Z tmm $
65d64
< #define CDEV_MAJOR 177
73d71
< .d_maj = CDEV_MAJOR,
126a125,127
> if ((flags & FREAD) == 0)
> return (EBADF);
>
137a139
> case OFIOCGETPROPLEN:
145c147
< return (ENOTTY);
---
> return (ENOIOCTL);
161,162c163
< if ((flags & FREAD) == 0)
< return (EBADF);
---
> case OFIOCGETPROPLEN:
168a170,173
> if (cmd == OFIOCGETPROPLEN) {
> of->of_buflen = len;
> break;
> }
205,206d209
< if ((flags & FREAD) == 0)
< return (EBADF);
233,234d235
< if ((flags & FREAD) == 0)
< return (EBADF);
240,241d240
< if ((flags & FREAD) == 0)
< return (EBADF);
249,250d247
< if ((flags & FREAD) == 0)
< return (EBADF);
< * $FreeBSD: head/sys/dev/ofw/openfirmio.c 111815 2003-03-03 12:15:54Z phk $
---
> * $FreeBSD: head/sys/dev/ofw/openfirmio.c 116210 2003-06-11 18:33:03Z tmm $
65d64
< #define CDEV_MAJOR 177
73d71
< .d_maj = CDEV_MAJOR,
126a125,127
> if ((flags & FREAD) == 0)
> return (EBADF);
>
137a139
> case OFIOCGETPROPLEN:
145c147
< return (ENOTTY);
---
> return (ENOIOCTL);
161,162c163
< if ((flags & FREAD) == 0)
< return (EBADF);
---
> case OFIOCGETPROPLEN:
168a170,173
> if (cmd == OFIOCGETPROPLEN) {
> of->of_buflen = len;
> break;
> }
205,206d209
< if ((flags & FREAD) == 0)
< return (EBADF);
233,234d235
< if ((flags & FREAD) == 0)
< return (EBADF);
240,241d240
< if ((flags & FREAD) == 0)
< return (EBADF);
249,250d247
< if ((flags & FREAD) == 0)
< return (EBADF);