1*d7847a8dSBrooks Davis# libc-specific portion of the system call interface 2*d7847a8dSBrooks Davis 3*d7847a8dSBrooks Davis.PATH: ${LIBC_SRCTOP}/sys 4*d7847a8dSBrooks Davis 5*d7847a8dSBrooks Davis# Most of the implementation is shared with libsys: 6*d7847a8dSBrooks Davis.include "${LIBSYS_SRCTOP}/Makefile.sys" 7*d7847a8dSBrooks Davis 8*d7847a8dSBrooks Davis# emit empty assembly stubs for syscalls in dynamic libc 9*d7847a8dSBrooks DavisSHARED_CFLAGS+= -D'_SYSCALL_BODY(name)=' 10*d7847a8dSBrooks Davis 11*d7847a8dSBrooks DavisSYM_MAPS+= ${LIBC_SRCTOP}/sys/Symbol.map 12*d7847a8dSBrooks Davis 13*d7847a8dSBrooks Davis# Add the interposer wrappers 14*d7847a8dSBrooks DavisSRCS+= ${INTERPOSED:S/$/.c/} 15*d7847a8dSBrooks Davis 16*d7847a8dSBrooks Davis# Pseudo system calls implemented atop other interfaces. 17*d7847a8dSBrooks DavisSRCS+= \ 18*d7847a8dSBrooks Davis POSIX2x_Fork.c \ 19*d7847a8dSBrooks Davis brk.c \ 20*d7847a8dSBrooks Davis closefrom.c \ 21*d7847a8dSBrooks Davis compat-stub.c \ 22*d7847a8dSBrooks Davis creat.c \ 23*d7847a8dSBrooks Davis getdents.c \ 24*d7847a8dSBrooks Davis lockf.c \ 25*d7847a8dSBrooks Davis lstat.c \ 26*d7847a8dSBrooks Davis mknod.c \ 27*d7847a8dSBrooks Davis pipe.c \ 28*d7847a8dSBrooks Davis recv.c \ 29*d7847a8dSBrooks Davis recvmmsg.c \ 30*d7847a8dSBrooks Davis send.c \ 31*d7847a8dSBrooks Davis sendmmsg.c \ 32*d7847a8dSBrooks Davis shm_open.c \ 33*d7847a8dSBrooks Davis stat.c \ 34*d7847a8dSBrooks Davis vadvise.c \ 35*d7847a8dSBrooks Davis wait.c \ 36*d7847a8dSBrooks Davis wait3.c \ 37*d7847a8dSBrooks Davis waitid.c \ 38*d7847a8dSBrooks Davis waitpid.c 39