Browse Source

* 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.

Andrew V. Samoilov 23 years ago
parent
commit
8583c24ea4
1 changed files with 0 additions and 27 deletions
  1. 0 27
      vfs/samba/tests/ftruncate.c

+ 0 - 27
vfs/samba/tests/ftruncate.c

@@ -1,27 +0,0 @@
-/* test whether ftruncte() can extend a file */
-
-#if defined(HAVE_UNISTD_H)
-#include <unistd.h>
-#endif
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-
-#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);
-}