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

Side by Side Diff: sysdeps/nacl/clock_getres.c

Issue 9389024: plumb glibc clock_get interfaces to irt (Closed) Base URL: http://git.chromium.org/native_client/nacl-glibc.git@master
Patch Set: enable fallbacks Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 #include <errno.h>
2 #include <time.h>
3
4 #include <irt_syscalls.h>
5
6 #define SYSDEP_GETRES \
7 case CLOCK_REALTIME: \
8 case CLOCK_MONOTONIC: \
9 { \
10 int result = __nacl_irt_clock_getres (clock_id, res); \
Roland McGrath 2012/02/15 18:45:26 GNU style says this should be indented only two sp
bsy 2012/02/15 19:33:29 Done. (well, i indented the brace further.)
11 if (result != 0) \
12 { \
Roland McGrath 2012/02/15 18:45:26 GNU style says this whole block is indented two sp
bsy 2012/02/15 19:33:29 Done.
13 __set_errno (result); \
14 retval = -1; \
15 } \
16 else \
17 { \
Roland McGrath 2012/02/15 18:45:26 GNU style avoids superfluous braces for single-lin
bsy 2012/02/15 19:33:29 Done.
18 retval = 0; \
19 } \
20 } \
21 break;
22
23 #define HANDLED_REALTIME
24
25 #include <sysdeps/posix/clock_getres.c>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698