mailing list of musl libc
 help / color / mirror / code / Atom feed
0a6b8f7165cd1225060e2850b98e5f01e2706ffe blob 1204 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
 
#ifndef _SYS_SHM_H
#define _SYS_SHM_H

#ifdef __cplusplus
extern "C" {
#endif

#include <features.h>

#define __NEED_time_t
#define __NEED_size_t
#define __NEED_pid_t

#include <bits/alltypes.h>

#include <sys/ipc.h>
#include <bits/shm.h>

#define SHM_R 0400
#define SHM_W 0200

#define SHM_RDONLY 010000
#define SHM_RND    020000
#define SHM_REMAP  040000
#define SHM_EXEC   0100000

#define SHM_LOCK 11
#define SHM_UNLOCK 12
#define SHM_STAT 13
#define SHM_INFO 14
#define SHM_DEST 01000
#define SHM_LOCKED 02000
#define SHM_HUGETLB 04000
#define SHM_NORESERVE 010000

#ifdef __ILP32__ /* x32 */
#define __syscall_long long long
#else
#define __syscall_long long
#endif

struct shminfo {
	unsigned __syscall_long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4];
};

struct shm_info {
	int used_ids;
	unsigned __syscall_long shm_tot, shm_rss, shm_swp;
#ifdef _GNU_SOURCE
	unsigned __syscall_long swap_attempts, swap_successes;
#else
	unsigned __syscall_long __reserved[2];
#endif
};

typedef unsigned __syscall_long shmatt_t;

void *shmat(int, const void *, int);
int shmctl(int, int, struct shmid_ds *);
int shmdt(const void *);
int shmget(key_t, size_t, int);

#ifdef __cplusplus
}
#endif

#endif
debug log:

solving 0a6b8f7 ...
found 0a6b8f7 in https://inbox.vuxu.org/musl/52BE165C.4040700@barfooze.de/
found c20f033 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 c20f0334861e986ce50a39437e047f704505e4b3	include/sys/shm.h

applying [1/1] https://inbox.vuxu.org/musl/52BE165C.4040700@barfooze.de/
diff --git a/include/sys/shm.h b/include/sys/shm.h
index c20f033..0a6b8f7 100644

Checking patch include/sys/shm.h...
Applied patch include/sys/shm.h cleanly.

index at:
100644 0a6b8f7165cd1225060e2850b98e5f01e2706ffe	include/sys/shm.h

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).