Skip to contentSkip to conversation

man page bug report hcreate(3) and hcreate_r(3)

DISCUSSION Michael Kerrisk 1 participant 1 message Dec 5, 2009 2 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

2009/11/30 爱尔兰咖啡 <[email protected]>:

Quoted 7 lines

I find two errors in the EXAMPLE section:

e.data = (void *) i;
       //should be
      e.data = (void *) &i;

printf("%9.9s -> %9.9s:%d\n", e.key,

Quoted 8 lines
                      ep ? ep->key : "NULL", ep ? (int)(ep->data) : 0);
     //should be
    printf("%9.9s -> %9.9s:%d\n", e.key,
                      ep ? ep->key : "NULL", ep ? *(int*)(ep->data) : 0);

They are also in the online man pages
http://www.kernel.org/doc/man-pages/online/pages/man3/hcreate.3.html
http://www.kernel.org/doc/man-pages/online/pages/man3/hcreate_r.3.html

As far as I can see, these changes are not correct. If, after reviewing, you disagree, could you please explain further.

Thanks,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html