Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 54fc8a2

Browse files
authored
Merge pull request #3007 from WalterBright/posix-system
add @System to posix interface
2 parents a7915d6 + d4dbdda commit 54fc8a2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+47
-1
lines changed

src/core/sys/posix/config.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public import core.stdc.config;
1919

2020
version (Posix):
2121
extern (C) nothrow @nogc:
22+
@system:
2223

2324
enum _XOPEN_SOURCE = 600;
2425
enum _POSIX_SOURCE = true;

src/core/sys/posix/dirent.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ version (Posix):
3131
extern (C):
3232
nothrow:
3333
@nogc:
34+
@system:
3435

3536
//
3637
// Required

src/core/sys/posix/dlfcn.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ version (Posix):
4545
extern (C):
4646
nothrow:
4747
@nogc:
48+
@system:
4849

4950
//
5051
// XOpen (XSI)

src/core/sys/posix/fcntl.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ extern (C):
4949

5050
nothrow:
5151
@nogc:
52+
@system:
5253

5354
//
5455
// Required

src/core/sys/posix/grp.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ version (Posix):
3030
extern (C):
3131
nothrow:
3232
@nogc:
33+
@system:
3334

3435
//
3536
// Required

src/core/sys/posix/iconv.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ version (Posix):
3434
extern (C):
3535
nothrow:
3636
@nogc:
37+
@system:
3738

3839

3940
alias void* iconv_t;

src/core/sys/posix/inttypes.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public import core.stdc.inttypes;
1919

2020
version (Posix):
2121
extern (C) nothrow @nogc:
22+
@system:
2223

2324
//
2425
// Required

src/core/sys/posix/libgen.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
module core.sys.posix.libgen;
1616

1717
@nogc nothrow:
18+
@system:
1819
extern (C):
1920
version (Posix):
2021

src/core/sys/posix/mqueue.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ version (Posix):
3030
version (CRuntime_Glibc):
3131
extern (C):
3232
@nogc nothrow:
33+
@system:
3334

3435

3536
/// Message queue descriptor.

src/core/sys/posix/netdb.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ version (Posix):
3333
extern (C):
3434
nothrow:
3535
@nogc:
36+
@system:
3637

3738
//
3839
// Required

src/core/sys/posix/poll.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ version (Posix):
2929
extern (C):
3030
nothrow:
3131
@nogc:
32+
@system:
3233

3334
//
3435
// XOpen (XSI)

src/core/sys/posix/pthread.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ else version (WatchOS)
3333
version (Posix):
3434
extern (C)
3535
nothrow:
36+
@system:
3637

3738
//
3839
// Required

src/core/sys/posix/pwd.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ version (Posix):
3030
extern (C):
3131
nothrow:
3232
@nogc:
33+
@system:
3334

3435
//
3536
// Required

src/core/sys/posix/sched.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ version (Posix):
3232
extern (C):
3333
nothrow:
3434
@nogc:
35+
@system:
3536

3637
//
3738
// Required

src/core/sys/posix/semaphore.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ version (Posix):
3030
extern (C):
3131
nothrow:
3232
@nogc:
33+
@system:
3334

3435
//
3536
// Required

src/core/sys/posix/setjmp.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ private import core.sys.posix.signal; // for sigset_t
1919

2020
version (Posix):
2121
extern (C) nothrow @nogc:
22+
@system:
2223

2324
version (RISCV32) version = RISCV_Any;
2425
version (RISCV64) version = RISCV_Any;

src/core/sys/posix/signal.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ version (X86_64) version = X86_Any;
4343

4444
version (Posix):
4545
extern (C):
46-
//nothrow: // this causes Issue 12738
46+
//nothrow: // this causes http://issues.dlang.org/show_bug.cgi?id=12738 (which has been fixed)
47+
//@system:
4748

4849
//
4950
// Required

src/core/sys/posix/spawn.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public import core.sys.posix.sched : sched_param;
4949
extern(C):
5050
@nogc:
5151
nothrow:
52+
@system:
5253

5354
int posix_spawn_file_actions_addclose(posix_spawn_file_actions_t*, int);
5455
int posix_spawn_file_actions_adddup2(posix_spawn_file_actions_t*, int, int);

src/core/sys/posix/stdio.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ extern (C):
3232

3333
nothrow:
3434
@nogc:
35+
@system:
3536

3637
//
3738
// Required (defined in core.stdc.stdio)

src/core/sys/posix/stdlib.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ version (Posix):
3131
extern (C):
3232
nothrow:
3333
@nogc:
34+
@system:
3435

3536
//
3637
// Required (defined in core.stdc.stdlib)

src/core/sys/posix/string.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ extern(C):
1919
@system:
2020
nothrow:
2121
@nogc:
22+
@system:
2223

2324
/// Exposes `locale_t` as defined in `core.sys.posix.locale` (`<locale.h>`)
2425
public import core.sys.posix.locale : locale_t;

src/core/sys/posix/sys/filio.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ else version (WatchOS)
2020
version (Posix):
2121

2222
nothrow @nogc:
23+
@system:
2324

2425
version (Darwin)
2526
{

src/core/sys/posix/sys/ioccom.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ else version (WatchOS)
1818
version (Posix):
1919

2020
nothrow @nogc:
21+
@system:
2122

2223
version (Darwin)
2324
{

src/core/sys/posix/sys/ioctl.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ else version (WatchOS)
2929
version (Posix):
3030

3131
extern (C) nothrow @nogc:
32+
@system:
3233

3334
version (CRuntime_Glibc)
3435
{

src/core/sys/posix/sys/ipc.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ else version (WatchOS)
2828

2929
version (Posix):
3030
extern (C) nothrow @nogc:
31+
@system:
3132

3233
//
3334
// XOpen (XSI)

src/core/sys/posix/sys/mman.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ version (X86_64) version = X86_Any;
4545

4646
version (Posix):
4747
extern (C) nothrow @nogc:
48+
@system:
4849

4950
//
5051
// Advisory Information (ADV)

src/core/sys/posix/sys/msg.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import core.stdc.config;
1414
version (CRuntime_Glibc):
1515
// Some of these may be from linux kernel headers.
1616
extern (C):
17+
@system:
1718

1819
version (ARM) version = ARM_Any;
1920
version (AArch64) version = ARM_Any;

src/core/sys/posix/sys/resource.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ else version (WatchOS)
2323
version = Darwin;
2424

2525
nothrow @nogc extern(C):
26+
@system:
2627

2728
//
2829
// XOpen (XSI)

src/core/sys/posix/sys/select.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ else version (WatchOS)
2727

2828
version (Posix):
2929
extern (C) nothrow @nogc:
30+
@system:
3031

3132
//
3233
// Required

src/core/sys/posix/sys/shm.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ else version (WatchOS)
2929

3030
version (Posix):
3131
extern (C) nothrow @nogc:
32+
@system:
3233

3334
//
3435
// XOpen (XSI)

src/core/sys/posix/sys/socket.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ version (X86_64) version = X86_Any;
4545

4646
version (Posix):
4747
extern (C) nothrow @nogc:
48+
@system:
4849

4950
//
5051
// Required

src/core/sys/posix/sys/stat.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ version (RISCV64) version = RISCV_Any;
3333

3434
version (Posix):
3535
extern (C) nothrow @nogc:
36+
@system:
3637

3738
//
3839
// Required

src/core/sys/posix/sys/statvfs.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ version (Posix):
1616
extern (C) :
1717
nothrow:
1818
@nogc:
19+
@system:
1920

2021
version (CRuntime_Glibc) {
2122
static if (__WORDSIZE == 32)

src/core/sys/posix/sys/time.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ version (linux) public import core.sys.linux.sys.time;
3131

3232
version (Posix):
3333
extern (C) nothrow @nogc:
34+
@system:
3435

3536
//
3637
// XOpen (XSI)

src/core/sys/posix/sys/ttycom.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ else version (WatchOS)
2222
version (Posix):
2323

2424
nothrow @nogc:
25+
@system:
2526

2627
version (Darwin)
2728
{

src/core/sys/posix/sys/types.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ else version (WatchOS)
3030

3131
version (Posix):
3232
extern (C):
33+
@system:
3334

3435
//
3536
// bits/typesizes.h -- underlying types for *_t.

src/core/sys/posix/sys/uio.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ else version (WatchOS)
2828

2929
version (Posix):
3030
extern (C) nothrow @nogc:
31+
@system:
3132

3233
//
3334
// Required

src/core/sys/posix/sys/un.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ else version (WatchOS)
2525

2626
version (Posix):
2727
extern(C):
28+
@system:
2829

2930
public import core.sys.posix.sys.socket: sa_family_t;
3031

src/core/sys/posix/sys/utsname.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ version (Posix):
1616
extern(C):
1717
nothrow:
1818
@nogc:
19+
@system:
1920

2021
version (CRuntime_Glibc)
2122
{

src/core/sys/posix/sys/wait.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ else version (WatchOS)
3030

3131
version (Posix):
3232
extern (C) nothrow @nogc:
33+
@system:
3334

3435
//
3536
// Required

src/core/sys/posix/syslog.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ else version (WatchOS)
2727
version (Posix):
2828

2929
extern (C) nothrow @nogc:
30+
@system:
3031

3132
version (CRuntime_Glibc)
3233
{

src/core/sys/posix/termios.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ extern (C):
3131

3232
nothrow:
3333
@nogc:
34+
@system:
3435

3536
//
3637
// Required

src/core/sys/posix/time.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ version (Posix):
3333
extern (C):
3434
nothrow:
3535
@nogc:
36+
@system:
3637

3738
//
3839
// Required (defined in core.stdc.time)

src/core/sys/posix/ucontext.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ version (Posix):
2222
extern (C):
2323
nothrow:
2424
@nogc:
25+
@system:
2526

2627
version (MIPS32) version = MIPS_Any;
2728
version (MIPS64) version = MIPS_Any;

src/core/sys/posix/unistd.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ version (Posix):
3232
extern (C):
3333
nothrow:
3434
@nogc:
35+
@system:
3536

3637
enum STDIN_FILENO = 0;
3738
enum STDOUT_FILENO = 1;

src/core/sys/posix/utime.d

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ version (Posix):
3030
extern (C):
3131
nothrow:
3232
@nogc:
33+
@system:
3334

3435
//
3536
// Required

0 commit comments

Comments
 (0)