mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-26 20:51:11 +00:00
ab355d9aa5
* sysdeps/unix/sysv/linux/structsem.sym: Add SEM_VALUE_MAX. * sysdeps/unix/sysv/linux/sem_post.c: Don't overflow value field. * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Likewise. * sysdeps/unix/sysv/linux/x86_64/sem_post.S: Likewise.
13 lines
279 B
Plaintext
13 lines
279 B
Plaintext
#include <limits.h>
|
|
#include <stddef.h>
|
|
#include <sched.h>
|
|
#include <bits/pthreadtypes.h>
|
|
#include "internaltypes.h"
|
|
|
|
--
|
|
|
|
VALUE offsetof (struct new_sem, value)
|
|
PRIVATE offsetof (struct new_sem, private)
|
|
NWAITERS offsetof (struct new_sem, nwaiters)
|
|
SEM_VALUE_MAX SEM_VALUE_MAX
|