aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/go/_std_1.21/src/internal/syscall/unix/ya.make
blob: cffec636f404373ce638638020ef8e1755259169 (plain) (blame)
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
GO_LIBRARY()

BUILD_ONLY_IF(WARNING OS_DARWIN OR OS_LINUX)

IF (OS_DARWIN)
    CGO_LDFLAGS(
        -lresolv
    )

    SRCS(
        asm_darwin.s
        at_libc2.go
        at_sysnum_darwin.go
        constants.go
        eaccess_other.go
        fcntl_unix.go
        getentropy_darwin.go
        kernel_version_other.go
        net.go
        net_darwin.go
        nonblocking_unix.go
        pty_darwin.go
        user_darwin.go
    )
ENDIF()

IF (OS_LINUX)
    SRCS(
        at.go
        at_fstatat.go
        at_sysnum_linux.go
        constants.go
        copy_file_range_linux.go
        eaccess_linux.go
        fcntl_unix.go
        getrandom.go
        getrandom_linux.go
        kernel_version_linux.go
        net.go
        nonblocking_unix.go
    )

    IF (ARCH_ARM64)
        SRCS(
            at_sysnum_fstatat_linux.go
            sysnum_linux_generic.go
        )
    ENDIF()

    IF (ARCH_X86_64)
        SRCS(
            at_sysnum_newfstatat_linux.go
            sysnum_linux_amd64.go
        )
    ENDIF()
ENDIF()

IF (OS_WINDOWS)
    SRCS(
        kernel_version_other.go
    )
ENDIF()

END()