From 8583c24ea42cca7ef09ff8ace1169b92b6f1a8ec Mon Sep 17 00:00:00 2001 From: "Andrew V. Samoilov" Date: Fri, 21 Jun 2002 16:31:20 +0000 Subject: [PATCH] * samba/lib/system.c (sys_ftruncate): Commented out. * samba/lib/util.c (set_filelen): Likewise. (setbuffer): Likewise. * Makefile.am (SAMBA_DIST): Remove tests/ftruncate.c * samba/tests/ftruncate.c: Removed. * samba/configure.in: Don't check if ftruncate() can extend a file. --- vfs/samba/tests/ftruncate.c | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 vfs/samba/tests/ftruncate.c diff --git a/vfs/samba/tests/ftruncate.c b/vfs/samba/tests/ftruncate.c deleted file mode 100644 index 93282782e..000000000 --- a/vfs/samba/tests/ftruncate.c +++ /dev/null @@ -1,27 +0,0 @@ -/* test whether ftruncte() can extend a file */ - -#if defined(HAVE_UNISTD_H) -#include -#endif - -#include -#include -#include - -#define DATA "conftest.trunc" -#define LEN 7663 - -main() -{ - int *buf; - int fd = open(DATA,O_RDWR|O_CREAT|O_TRUNC,0666); - - ftruncate(fd, LEN); - - unlink(DATA); - - if (lseek(fd, 0, SEEK_END) == LEN) { - exit(0); - } - exit(1); -}