Anonymous | Login | 2024-05-03 13:14 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 | ||
0000665 | [1003.1(2008)/Issue 7] System Interfaces | Editorial | Omission | 2013-02-25 21:53 | 2013-02-27 17:03 | ||
Reporter | dalias | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Withdrawn | ||||
Status | Closed | ||||||
Name | Rich Felker | ||||||
Organization | musl libc | ||||||
User Reference | |||||||
Section | pthread_mutex_unlock | ||||||
Page Number | unknown | ||||||
Line Number | unknown | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000665: Errors section for pthread_mutex_unlock is missing an error case mandated in the description | ||||||
Description |
The description reads: "If the mutex type is PTHREAD_MUTEX_RECURSIVE, then the mutex shall maintain the concept of a lock count. When a thread successfully acquires a mutex for the first time, the lock count shall be set to one. Every time a thread relocks this mutex, the lock count shall be incremented by one. Each time the thread unlocks the mutex, the lock count shall be decremented by one. When the lock count reaches zero, the mutex shall become available for other threads to acquire. If a thread attempts to unlock a mutex that it has not locked or a mutex which is unlocked, an error shall be returned." However, the errors section only mandates one ERROR for pthread_mutex_unlock, and only in the case of error-checking or robust mutexes: "The pthread_mutex_unlock() function shall fail if: [EPERM] The mutex type is PTHREAD_MUTEX_ERRORCHECK or the mutex is a robust mutex, and the current thread does not own the mutex." |
||||||
Desired Action |
Change the above quoted text in the errors section to: "The pthread_mutex_unlock() function shall fail if: [EPERM] The mutex type is PTHREAD_MUTEX_RECURSIVE or PTHREAD_MUTEX_ERRORCHECK or the mutex is a robust mutex, and the current thread does not own the mutex." |
||||||
Tags | No tags attached. | ||||||
Attached Files | |||||||
|
Notes | |
(0001478) geoffclare (manager) 2013-02-26 09:59 |
This is already fixed in TC1. See http://austingroupbugs.net/view.php?id=121#c159 [^] Rich, would you like to withdraw this bug? Otherwise it will be resolved as a duplicate of 0000121. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |