Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Issue 1234673002: Clean up error returns for unsupported pthread mutex/cond attr values (Closed)

Created:
5 years, 5 months ago by Roland McGrath
Modified:
5 years, 5 months ago
Reviewers:
Petr Hosek, Sam Clegg
CC:
native-client-reviews_googlegroups.com, Mark Seaborn
Base URL:
https://chromium.googlesource.com/native_client/nacl-glibc.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Clean up error returns for unsupported pthread mutex/cond attr values NaCl does not support process-shared pthread mutexes or cond variables. glibc's libpthread functions should report proper errors for that. Likewise NaCl does not support pthread_condattr_setclock for any clock value other than CLOCK_REALTIME, but the proper error code for CLOCK_MONOTONIC is ENOTSUP rather than EINVAL (because CLOCK_MONOTONIC is a "known clock" for other purposes, just not supported for this one). Returning ENOTSUP for these cases is consistent with what the new (upstream) glibc does. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4142 TEST= toolchain trybots R=phosek@chromium.org, sbc@chromium.org Committed: https://git.chromium.org/gitweb?p=native_client/nacl-glibc.git;a=commit;h=11835d88570805fc9db4436a4299efd3b1b1e825

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -56 lines) Patch
M nptl/pthread_condattr_setclock.c View 1 chunk +14 lines, -37 lines 0 comments Download
M nptl/pthread_condattr_setpshared.c View 1 chunk +10 lines, -7 lines 0 comments Download
M nptl/pthread_mutexattr_setpshared.c View 1 chunk +9 lines, -12 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Roland McGrath
5 years, 5 months ago (2015-07-10 21:27:30 UTC) #1
Petr Hosek
lgtm
5 years, 5 months ago (2015-07-10 21:41:10 UTC) #2
Roland McGrath
5 years, 5 months ago (2015-07-10 22:03:33 UTC) #3
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
11835d88570805fc9db4436a4299efd3b1b1e825 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698