Project

General

Profile

Actions

Bug #4829

closed

sema_init(3C) botches the arguments in an example

Added by Rich Lowe about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
manpage - manual pages
Start date:
2014-04-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

sema_init(3C) contains a synopsis of sema_init that says:

     int sema_init(sema_t *sp, unsigned int count, int type,
          void * arg);

That's correct, however the examples of its use say:

       sema_init(&sp, count, NULL, NULL);

NULL is not an integer. Presumably the first NULL should be '0'

Actions #1

Updated by Electric Monk almost 8 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit 3fabe5138cfcd4ff6438a18be90e712cd6cbb7ff

commit  3fabe5138cfcd4ff6438a18be90e712cd6cbb7ff
Author: William Dowling <wmdowling@gmail.com>
Date:   2014-05-29T18:46:34.000Z

    4829 sema_init(3C) botches the arguments in an example
    Reviewed by: Richard Lowe <richlowe@richlowe.net>
    Approved by: Robert Mustacchi <rm@joyent.com>

Actions

Also available in: Atom PDF