Anonymous | Login | 2024-12-02 08:23 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001059 | [1003.1(2008)/Issue 7] Base Definitions and Headers | Editorial | Error | 2016-06-23 00:10 | 2024-06-11 08:52 | ||
Reporter | sebor | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Martin Sebor | ||||||
Organization | |||||||
User Reference | |||||||
Section | pthread_key_create | ||||||
Page Number | 1636 | ||||||
Line Number | 53039 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | See Desired Action | ||||||
Summary | 0001059: bad example in pthread_key_create rationale | ||||||
Description |
The RATIONALE section for the pthread_key_create function contains the following code snippet: pthread_getspecific(key, &old); new = allocate(); destructor(old); In the snippet, the call "pthread_getspecific(key, &old)" is incorrect because the pthread_getspecific function takes just one argument of type pthread_key_t. What's likely intended instead is old = pthread_getspecific(key); |
||||||
Desired Action |
Replace the line: pthread_getspecific(key, &old); with old = pthread_getspecific(key); |
||||||
Tags | tc3-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |