fa54b985ff
Per local/docs/PATCH-PRESERVATION-AUDIT-2026-07-12.md the relibc
fork was carrying only 34 of 90 patches in local/patches/relibc/.
The other 56 patches' content was silently missing from the fork.
This commit re-applies 27 patches that genuinely still apply
cleanly. Recovery covers:
- eventfd implementation (sys/eventfd.h + eventfd.rs)
- signalfd implementation (sys/signalfd.h + signalfd.rs)
- timerfd implementation (sys/timerfd.h + timerfd.rs)
- bits/eventfd.h header
- spawn() function: cbindgen + stdint fix
- P3-timerfd-cbindgen-fix
- cbindgen language=C fixes for sys/{timerfd,semaphore}
- stdint include chain fixes
- strtold implementation
- dns aaaa getaddrinfo ipv6
- various stack/threading/header threading fixes
- dup3 syscalls
- waitid implementation
- bits/timespec reverse_from
- open_memstream integration
24 files changed.
16 lines
352 B
C
16 lines
352 B
C
#include <assert.h>
|
|
#include <stdio.h>
|
|
#include <sys/ipc.h>
|
|
#include <sys/shm.h>
|
|
|
|
int main(void) {
|
|
int id = shmget(IPC_PRIVATE, 4096, IPC_CREAT | 0600);
|
|
assert(id >= 0);
|
|
void *ptr = shmat(id, 0, 0);
|
|
assert(ptr != (void *)-1);
|
|
assert(shmdt(ptr) == 0);
|
|
assert(shmctl(id, IPC_RMID, 0) == 0);
|
|
puts("shmget ok");
|
|
return 0;
|
|
}
|