mirror of
https://github.com/opnsense/src.git
synced 2026-02-14 16:23:25 -05:00
An execute-only fd (opened with O_EXEC) allows neither read() nor write() and is therefore incompatible with all stdio modes. Therefore, the [EINVAL] error applies. Also adjust the similar check in freopen() with a NULL path, even though this checks an fd which is already from a FILE.
24 lines
384 B
Makefile
24 lines
384 B
Makefile
# $FreeBSD$
|
|
|
|
TESTS= test-fdopen \
|
|
test-fmemopen \
|
|
test-fopen \
|
|
test-freopen \
|
|
test-getdelim \
|
|
test-mkostemp \
|
|
test-open_memstream \
|
|
test-open_wmemstream \
|
|
test-perror \
|
|
test-print-positional \
|
|
test-printbasic \
|
|
test-printfloat \
|
|
test-scanfloat
|
|
CFLAGS+= -lm
|
|
|
|
.PHONY: tests
|
|
tests: ${TESTS}
|
|
for p in ${TESTS}; do ${.OBJDIR}/$$p; done
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f ${TESTS}
|