diff options
Diffstat (limited to 'winsup/mingw/mingwex')
-rw-r--r-- | winsup/mingw/mingwex/Makefile.in | 6 | ||||
-rwxr-xr-x | winsup/mingw/mingwex/ftruncate.c | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/winsup/mingw/mingwex/Makefile.in b/winsup/mingw/mingwex/Makefile.in index 6853ca32d..1369de60d 100644 --- a/winsup/mingw/mingwex/Makefile.in +++ b/winsup/mingw/mingwex/Makefile.in @@ -29,8 +29,8 @@ DISTFILES = Makefile.in configure configure.in \ _Exit.c atoll.c dirent.c feclearexcept.c fegetenv.c \ fegetexceptflag.c fegetround.c feholdexcept.c feraiseexcept.c \ fesetenv.c fesetexceptflag.c fesetround.c fetestexcept.c \ - feupdateenv.c fwide.c getopt.c imaxabs.c imaxdiv.c ldtoa.c \ - lltoa.c lltow.c mbsinit.c mingw-fseek.c sitest.c strtof.c \ + feupdateenv.c ftruncate.c fwide.c getopt.c imaxabs.c imaxdiv.c \ + ldtoa.c lltoa.c lltow.c mbsinit.c mingw-fseek.c sitest.c strtof.c \ strtoimax.c strtold.c strtoumax.c testwmem.c ulltoa.c ulltow.c \ wcstof.c wcstoimax.c wcstold.c wcstoumax.c wdirent.c wmemchr.c \ wmemcmp.c wmemcpy.c wmemmove.c wmemset.c wtoll.c @@ -147,7 +147,7 @@ FENV_OBJS = fesetround.o fegetround.o \ feclearexcept.o feholdexcept.o fegetexceptflag.o \ feraiseexcept.o fetestexcept.o fesetexceptflag.o POSIX_OBJS = \ - dirent.o wdirent.o getopt.o + dirent.o wdirent.o getopt.o ftruncate.o REPLACE_OBJS = \ mingw-fseek.o COMPLEX_OBJS = \ diff --git a/winsup/mingw/mingwex/ftruncate.c b/winsup/mingw/mingwex/ftruncate.c new file mode 100755 index 000000000..fdb62951a --- /dev/null +++ b/winsup/mingw/mingwex/ftruncate.c @@ -0,0 +1,5 @@ +#include <unistd.h> +int ftruncate(int __fd, off_t __length) +{ + return _chsize (__fd, __length); +} |