mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 09:48:29 +00:00
Add OpenMP support
This commit is contained in:
parent
c1e18e7903
commit
5f8e9f14c1
742 changed files with 94643 additions and 1279 deletions
14
third_party/musl/catclose.c
vendored
Normal file
14
third_party/musl/catclose.c
vendored
Normal file
|
@ -0,0 +1,14 @@
|
|||
#define _BSD_SOURCE
|
||||
#include <nl_types.h>
|
||||
#include <stdint.h>
|
||||
#include <endian.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#define V(p) be32toh(*(uint32_t *)(p))
|
||||
|
||||
int catclose (nl_catd catd)
|
||||
{
|
||||
char *map = (char *)catd;
|
||||
munmap(map, V(map+8)+20);
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue