NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: misc/43348: driver(9) man page has strange examples
The following reply was made to PR misc/43348; it has been noted by GNATS.
From: Matthew Mondor <mm_lists%pulsar-zone.net@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: misc/43348: driver(9) man page has strange examples
Date: Mon, 24 May 2010 12:57:51 -0400
On Mon, 24 May 2010 13:50:00 +0000 (UTC)
fujiyosi.ncl%gmail.com@localhost wrote:
> driver(9) man page has strange examples of foo_cdevsw and foo_bdevsw.
>
> const struct cdevsw foo_cdevsw {
> int (*d_open)(dev_t, int, int, struct lwp *);
> int (*d_close)(dev_t, int, int, struct lwp *);
> ...
> };
>
> They should be like
>
> const struct cdevsw foo_cdevsw {
> fooopen, fooclose, .....
> };
Although I agree that the above wouldn't work as a litteral code
example, I think that those were deliberate to make the required
function types obvious. That said, possibly the manual page could both
describe the C structure including those prototypes, as well as provide
an actual example, perhaps.
--
Matt
Home |
Main Index |
Thread Index |
Old Index