aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_self.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-05-23 20:38:51 -0400
committerRich Felker <dalias@aerifal.cx>2013-05-23 20:38:51 -0400
commit5e642b5a2395893873affa2a121a694943b3f4e0 (patch)
tree8b54f0a6648160b91d42a3ad800c070bfaccf5ba /src/thread/pthread_self.c
parentfix overflow behavior of clock() function (diff)
downloadgrovel-5e642b5a2395893873affa2a121a694943b3f4e0.tar.gz
grovel-5e642b5a2395893873affa2a121a694943b3f4e0.tar.xz
change underlying type of clock_t to be uniform and match ABI
previously we were using an unsigned type on 32-bit systems so that subtraction would be well-defined when it wrapped, but since wrapping is non-conforming anyway (when clock() overflows, it has to return -1) the only use of unsigned would be to buy a little bit more time before overflow. this does not seem worth having the type vary per-arch (which leads to more arch-specific bugs) or disagree with the ABI musl (mostly) follows.
Diffstat (limited to 'src/thread/pthread_self.c')
0 files changed, 0 insertions, 0 deletions