Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/core/sys/posix/sys/ipc.d
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ IPC_RMID
IPC_SET
IPC_STAT

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
*/

version (CRuntime_Glibc)
Expand Down Expand Up @@ -82,7 +82,7 @@ version (CRuntime_Glibc)
enum IPC_SET = 1;
enum IPC_STAT = 2;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
else version (Darwin)
{
Expand Down Expand Up @@ -122,7 +122,7 @@ else version (FreeBSD)
enum IPC_SET = 1;
enum IPC_STAT = 2;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
else version (NetBSD)
{
Expand All @@ -147,7 +147,7 @@ else version (NetBSD)
enum IPC_SET = 1;
enum IPC_STAT = 2;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
else version (OpenBSD)
{
Expand All @@ -172,7 +172,7 @@ else version (OpenBSD)
enum IPC_SET = 1;
enum IPC_STAT = 2;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
else version (DragonFlyBSD)
{
Expand All @@ -197,7 +197,7 @@ else version (DragonFlyBSD)
enum IPC_SET = 1;
enum IPC_STAT = 2;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
else version (CRuntime_Bionic)
{
Expand Down Expand Up @@ -240,7 +240,7 @@ else version (CRuntime_Bionic)
enum IPC_SET = 1;
enum IPC_STAT = 2;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
else version (CRuntime_UClibc)
{
Expand Down Expand Up @@ -270,5 +270,5 @@ else version (CRuntime_UClibc)
enum IPC_STAT = 2;
enum IPC_INFO = 3;

key_t ftok(in char*, int);
key_t ftok(const scope char*, int);
}
84 changes: 42 additions & 42 deletions src/core/sys/posix/sys/mman.d
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ else version (CRuntime_Bionic)
enum MS_ASYNC = 1;
enum MS_INVALIDATE = 2;

int msync(in void*, size_t, int);
int msync(const scope void*, size_t, int);
}
else version (CRuntime_Musl)
{
Expand Down Expand Up @@ -677,57 +677,57 @@ else
// Range Memory Locking (MLR)
//
/*
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
*/

version (CRuntime_Glibc)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (Darwin)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (FreeBSD)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (NetBSD)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (OpenBSD)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (DragonFlyBSD)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (Solaris)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (CRuntime_Bionic)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else version (CRuntime_Musl)
{
}
else version (CRuntime_UClibc)
{
int mlock(in void*, size_t);
int munlock(in void*, size_t);
int mlock(const scope void*, size_t);
int munlock(const scope void*, size_t);
}
else
{
Expand Down Expand Up @@ -771,7 +771,7 @@ else version (Solaris)
}
else version (CRuntime_Bionic)
{
int mprotect(in void*, size_t, int);
int mprotect(const scope void*, size_t, int);
}
else version (CRuntime_Musl)
{
Expand All @@ -790,44 +790,44 @@ else
// Shared Memory Objects (SHM)
//
/*
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
*/

version (CRuntime_Glibc)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (Darwin)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (FreeBSD)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (NetBSD)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (OpenBSD)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (DragonFlyBSD)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (Solaris)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else version (CRuntime_Bionic)
{
Expand All @@ -837,8 +837,8 @@ else version (CRuntime_Musl)
}
else version (CRuntime_UClibc)
{
int shm_open(in char*, int, mode_t);
int shm_unlink(in char*);
int shm_open(const scope char*, int, mode_t);
int shm_unlink(const scope char*);
}
else
{
Expand All @@ -858,7 +858,7 @@ struct posix_typed_mem_info
size_t posix_tmi_length;
}

int posix_mem_offset(in void*, size_t, off_t *, size_t *, int *);
int posix_mem_offset(const scope void*, size_t, off_t *, size_t *, int *);
int posix_typed_mem_get_info(int, struct posix_typed_mem_info *);
int posix_typed_mem_open(in char*, int, int);
int posix_typed_mem_open(const scope char*, int, int);
*/
24 changes: 12 additions & 12 deletions src/core/sys/posix/sys/resource.d
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ else version (CRuntime_Musl)
alias ulong rlim_t;

int getrlimit(int, rlimit*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
alias getrlimit getrlimit64;
alias setrlimit setrlimit64;
enum
Expand Down Expand Up @@ -676,72 +676,72 @@ version (CRuntime_Glibc)
static if (__USE_FILE_OFFSET64)
{
int getrlimit64(int, rlimit*);
int setrlimit64(int, in rlimit*);
int setrlimit64(int, const scope rlimit*);
alias getrlimit = getrlimit64;
alias setrlimit = setrlimit64;
}
else
{
int getrlimit(int, rlimit*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
int getrusage(int, rusage*);
}
else version (CRuntime_Bionic)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (Darwin)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (FreeBSD)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (NetBSD)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (OpenBSD)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (DragonFlyBSD)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (Solaris)
{
int getrlimit(int, rlimit*);
int getrusage(int, rusage*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
else version (CRuntime_UClibc)
{
static if (__USE_FILE_OFFSET64)
{
int getrlimit64(int, rlimit*);
int setrlimit64(int, in rlimit*);
int setrlimit64(int, const scope rlimit*);
alias getrlimit = getrlimit64;
alias setrlimit = setrlimit64;
}
else
{
int getrlimit(int, rlimit*);
int setrlimit(int, in rlimit*);
int setrlimit(int, const scope rlimit*);
}
int getrusage(int, rusage*);
}
Loading