From a0dd1ebaf7613657a39ca22882ac6eaafa4a932e Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 9 Feb 2019 15:42:20 -0500 Subject: merge XOPEN identifiers --- src/unistd/ftruncate.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/unistd/ftruncate.c (limited to 'src/unistd/ftruncate.c') diff --git a/src/unistd/ftruncate.c b/src/unistd/ftruncate.c new file mode 100644 index 00000000..8e6cf27f --- /dev/null +++ b/src/unistd/ftruncate.c @@ -0,0 +1,15 @@ +#include +#include "__nonstd.h" + +int ftruncate(int fildes, off_t length) +{ + __POSIX_MIN(199309L); + __POSIX_OPTION_OR(_MAPPED_FILES, _SHARED_MEMORY); + __XOPEN_MIN(450); + __SC(int, fildes, length); +} + +/* +XOPEN(400) +POSIX(199309) +*/ -- cgit v1.2.1