NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/43348: driver(9) man page has strange examples



>Number:         43348
>Category:       misc
>Synopsis:       driver(9) man page has strange examples
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 24 13:50:00 +0000 2010
>Originator:     Takeshi Fujiyoshi
>Release:        NetBSD 5.99.29
>Organization:
>Environment:
>Description:
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, .....
    };

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index