2 sysdep_routines
+= errno-loc
5 ifeq ($(subdir
),assert
)
6 CFLAGS-assert.c
+= -DFATAL_PREPARE_INCLUDE
='<fatal-prepare.h>'
7 CFLAGS-assert-perr.c
+= -DFATAL_PREPARE_INCLUDE
='<fatal-prepare.h>'
10 ifeq ($(subdir
),malloc
)
11 CFLAGS-malloc.c
+= -DMORECORE_CLEARS
=2
15 include $(firstword $(wildcard $(sysdirs
:=/sysctl.mk
)))
17 sysdep_routines
+= clone umount umount2 readahead \
18 setfsuid setfsgid epoll_pwait signalfd \
19 eventfd eventfd_read eventfd_write prlimit \
20 personality epoll_wait tee vmsplice splice \
23 CFLAGS-gethostid.c
= -fexceptions
24 CFLAGS-tee.c
= -fexceptions
-fasynchronous-unwind-tables
25 CFLAGS-vmsplice.c
= -fexceptions
-fasynchronous-unwind-tables
26 CFLAGS-splice.c
= -fexceptions
-fasynchronous-unwind-tables
27 CFLAGS-open_by_handle_at.c
= -fexceptions
-fasynchronous-unwind-tables
28 CFLAGS-sync_file_range.c
= -fexceptions
-fasynchronous-unwind-tables
29 CFLAGS-tst-writev.c
+= "-DARTIFICIAL_LIMIT=(0x80000000-sysconf(_SC_PAGESIZE))"
31 sysdep_headers
+= sys
/mount.h sys
/acct.h sys
/sysctl.h \
33 sys
/user.h sys
/prctl.h \
34 sys
/kd.h sys
/soundcard.h sys
/vt.h \
35 sys
/quota.h sys
/fsuid.h \
36 scsi
/sg.h scsi
/scsi.h scsi
/scsi_ioctl.h sys
/pci.h \
37 sys
/raw.h sys
/personality.h sys
/epoll.h \
38 bits
/a.out.h sys
/inotify.h sys
/signalfd.h sys
/eventfd.h \
39 sys
/timerfd.h sys
/fanotify.h bits
/eventfd.h bits
/inotify.h \
40 bits
/signalfd.h bits
/timerfd.h bits
/epoll.h \
41 bits
/socket_type.h bits
/syscall.h bits
/sysctl.h \
43 bits
/siginfo-arch.h bits
/siginfo-consts-arch.h
45 tests
+= tst-clone tst-clone2 tst-clone3 tst-fanotify tst-personality \
46 tst-quota tst-sync_file_range test-errno-linux tst-sysconf-iov_max
48 # Generate the list of SYS_* macros for the system calls (__NR_*
49 # macros). The file syscall-names.list contains all possible system
50 # call names, and the generated header file produces SYS_* macros for
51 # the __NR_* macros which are actually defined.
53 generated
+= bits
/syscall.h
54 $(objpfx
)bits
/syscall.h
: \
55 ..
/sysdeps
/unix
/sysv
/linux
/gen-syscall-h.awk \
56 ..
/sysdeps
/unix
/sysv
/linux
/syscall-names.list
57 $(make-target-directory
)
58 LC_ALL
=C
$(AWK
) -f
$^
> $@
-tmp
59 $(move-if-change
) $@
-tmp
$@
60 before-compile
+= $(objpfx
)bits
/syscall.h
62 # All macros defined by <sys/syscall.h>. Include <bits/syscall.h>
63 # explicitly because <sys/sycall.h> skips it if _LIBC is defined.
64 $(objpfx
)tst-syscall-list-macros.list
: \
65 $(objpfx
)bits
/syscall.h ..
/sysdeps
/unix
/sysv
/linux
/sys
/syscall.h
66 printf
'#include <linux/version.h>\n\
67 #include <sys/syscall.h>\n#include <bits/syscall.h>\n' | \
68 $(CC
) -E
-o
$@
-tmp
$(CFLAGS
) $(CPPFLAGS
) -x c
- -dM
69 $(move-if-change
) $@
-tmp
$@
71 # __NR_* system call names. Used by the test below.
72 $(objpfx
)tst-syscall-list-nr.list
: \
73 ..
/sysdeps
/unix
/sysv
/linux
/filter-nr-syscalls.awk \
74 $(objpfx
)tst-syscall-list-macros.list
75 LC_ALL
=C
$(AWK
) -f
$^
> $@
-tmp
76 $(move-if-change
) $@
-tmp
$@
78 # SYS_* system call names. Used by the test below.
79 $(objpfx
)tst-syscall-list-sys.list
: $(objpfx
)tst-syscall-list-macros.list
80 LC_ALL
=C
$(AWK
) '/^#define SYS_/ { print substr($$2, 5) }' $< > $@
-tmp
81 $(move-if-change
) $@
-tmp
$@
83 tests-special
+= $(objpfx
)tst-syscall-list.out
84 $(objpfx
)tst-syscall-list.out
: \
85 ..
/sysdeps
/unix
/sysv
/linux
/tst-syscall-list.sh \
86 $(objpfx
)tst-syscall-list-macros.list \
87 $(objpfx
)tst-syscall-list-nr.list \
88 $(objpfx
)tst-syscall-list-sys.list
89 $(BASH
) $^
$(AWK
) > $@
; $(evaluate-test
)
91 # Separate object file for access to the constant from the UAPI header.
92 $(objpfx
)tst-sysconf-iov_max
: $(objpfx
)tst-sysconf-iov_max-uapi.o
94 endif # $(subdir) == misc
97 sysdep_headers
+= sys
/timex.h bits
/timex.h
99 sysdep_routines
+= ntp_gettime ntp_gettimex
102 ifeq ($(subdir
),signal
)
103 tests-special
+= $(objpfx
)tst-signal-numbers.out
104 # Depending on signal.o* is a hack. What we actually want is a dependency
105 # on signal.h and everything it includes. That's impractical to write
106 # in this context, but signal.c includes signal.h and not much else so it'll
107 # be conservatively correct.
108 $(objpfx
)tst-signal-numbers.out
: \
109 ..
/sysdeps
/unix
/sysv
/linux
/tst-signal-numbers.sh \
111 AWK
=$(AWK
) $(SHELL
) ..
/sysdeps
/unix
/sysv
/linux
/tst-signal-numbers.sh \
112 $(CC
) $(patsubst -DMODULE_NAME
=%,-DMODULE_NAME
=testsuite
,$(CPPFLAGS
)) \
113 < /dev
/null
> $@
; $(evaluate-test
)
116 ifeq ($(subdir
),socket
)
117 sysdep_headers
+= net
/if_ppp.h net
/ppp-comp.h \
118 net
/ppp_defs.h net
/if_arp.h net
/route.h net
/ethernet.h \
119 net
/if_slip.h net
/if_packet.h net
/if_shaper.h
120 sysdep_routines
+= cmsg_nxthdr
121 CFLAGS-recvmmsg.c
= -fexceptions
-fasynchronous-unwind-tables
122 CFLAGS-sendmmsg.c
= -fexceptions
-fasynchronous-unwind-tables
125 ifeq ($(subdir
),sunrpc
)
126 sysdep_headers
+= nfs
/nfs.h
129 ifeq ($(subdir
),termios
)
130 sysdep_headers
+= termio.h
133 ifeq ($(subdir
),posix
)
134 sysdep_headers
+= bits
/initspin.h
136 sysdep_routines
+= sched_getcpu oldglob
138 tests
+= tst-affinity tst-affinity-pid
140 CFLAGS-fork.c
= $(libio-mtsafe
)
141 CFLAGS-getpid.o
= -fomit-frame-pointer
142 CFLAGS-getpid.os
= -fomit-frame-pointer
145 ifeq ($(subdir
),inet
)
146 sysdep_headers
+= netinet
/if_fddi.h netinet
/if_tr.h \
147 netipx
/ipx.h netash
/ash.h netax25
/ax25.h netatalk
/at.h \
148 netrom
/netrom.h netpacket
/packet.h netrose
/rose.h \
149 neteconet
/ec.h netiucv
/iucv.h
150 sysdep_routines
+= netlink_assert_response
153 # Don't compile the ctype glue code, since there is no old non-GNU C library.
156 ifeq ($(subdir
),dirent
)
157 sysdep_routines
+= getdirentries getdirentries64
161 CFLAGS-ypclnt.c
= -DUSE_BINDINGDIR
=1
165 sysdep_routines
+= xstatconv internal_statvfs internal_statvfs64 \
166 sync_file_range fallocate fallocate64
167 sysdep_headers
+= bits
/fcntl-linux.h
169 tests
+= tst-fallocate tst-fallocate64
173 sysdep-rtld-routines
+= dl-brk dl-sbrk dl-getcwd dl-openat64 dl-opendir \
176 libof-lddlibc4
= lddlibc4
180 $(objpfx
)pldd
: $(objpfx
)xmalloc.o
184 CFLAGS-mq_send.c
+= -fexceptions
185 CFLAGS-mq_receive.c
+= -fexceptions
188 ifeq ($(subdir
),nscd
)
189 sysdep-CFLAGS
+= -DHAVE_EPOLL
-DHAVE_SENDFILE
-DHAVE_INOTIFY
-DHAVE_NETLINK
190 CFLAGS-gai.c
+= -DNEED_NETLINK
193 ifeq ($(subdir
),nptl
)
194 tests
+= tst-align-clone tst-getpid1 \
195 tst-thread-affinity-pthread tst-thread-affinity-pthread2 \
196 tst-thread-affinity-sched
197 tests-internal
+= tst-setgetname