search for: lseek64

Displaying 20 results from an estimated 67 matches for "lseek64".

2003 Nov 14
3
problems using large file systems
...I/O but I hit a snag doing the seek. int main(void) { int fd; int result; fd = open("/home/amitm/storage/cam_n2_q1/atvdatacam_n2_q1.dat",O_RDONLY); if (fd < 0) { printf("error opening file errno = %d\n",errno); exit(-1); } result = lseek64(fd,2147483650,SEEK_SET); if (result < 0) { printf("error seeking file errno = %d\n",errno); exit(-1); } return 0; } I build the code like this: gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -c -o seektest.o seektest.c seektest.c: I...
2002 Nov 29
6
Version 2.2.6 and above are not able to store big files over 2GB
...tore a file biger than 2GB to a samba server version 2.2.5 everythink works fine. But when I do that with a server version 2.2.6 or 2.2.7 the saving fails on the 2GB limit. The problem can be seen with windowsclients or with smbclient (any version > 2.2.5). I did some debuging and find that the lseek64 fails. But I didn't find the reason. Regards Klaus Ethgen
2002 Feb 22
0
Trouble with Samba 2.2.2 under HPUX (high cpu utilization)
................................. = 0 setresgid(-1, 1010, -1) .................................. = 0 getgid() ................................................. = 0 (1010) setresuid(-1, 104, -1) ................................... = 0 getuid() ................................................. = 0 (104) lseek64(40, 207011840, SEEK_SET) ......................... = 207011840 write(40, "010117\0' \0\0\0\r\0g \ace065 06".., 2048) .... = 2048 send(12, "\0\0\0/ ffS M B / \0\0\0\08801\0".., 51, 0) .... = 51 select(21, 0x68ff07c8, NULL, NULL, 0x68ff08cc) ........... = 1 read(12, "\0\0...
2005 Aug 17
0
[Bug 3009] New: build error on sinix: off64_t unknown
...d to build version 2.6.6 on one of my Sinix machines which resulted in the following compile error: syscall.c:247: identifier "off64_t" is undefined <snip file="syscall.c" line-start="244"> OFF_T do_lseek(int fd, OFF_T offset, int whence) { #ifdef HAVE_LSEEK64 off64_t lseek64(); return lseek64(fd, offset, whence); #else return lseek(fd, offset, whence); #endif } </snip> <snip file="config.log"> This file contains any messages produced by compilers while running configure, to aid debugging if configure m...
2002 Jan 07
0
rsync-2.5.1 / updated syscall.c "const" patch
...7 +161,7 @@ int do_fstat(int fd, STRUCT_STAT *st) { -#if HAVE_OFF64_T +#ifdef HAVE_OFF64_T return fstat64(fd, st); #else return fstat(fd, st); @@ -167,7 +170,7 @@ OFF_T do_lseek(int fd, OFF_T offset, int whence) { -#if HAVE_OFF64_T +#ifdef HAVE_OFF64_T off64_t lseek64(); return lseek64(fd, offset, whence); #else @@ -178,7 +181,7 @@ #ifdef USE_MMAP void *do_mmap(void *start, int len, int prot, int flags, int fd, OFF_T offset) { -#if HAVE_OFF64_T +#ifdef HAVE_OFF64_T return mmap64(start, len, prot, flags, fd, offset); #else re...
2018 Mar 17
0
Terrible share access performance (v.4.8 and current master branch)
...11 12 kill 0.00 0.000117 15 8 open 0.00 0.000019 19 1 brk ------ ----------- ----------- --------- --------- ---------------- 100.00 30.976862 186959 4220 total backtrace 0x00007fe85731114d in lseek64 () from /usr/lib/libpthread.so.0 Thread 1 (Thread 0x7fe8576fd840 (LWP 2894)): #0 0x00007fe85731114d in lseek64 () from /usr/lib/libpthread.so.0 #1 0x00007fe856a0abdc in vfswrap_lseek () from /usr/lib/samba/libsmbd-base-samba4.so #2 0x00007fe856ad656f in smb2_ioctl_filesys () from /usr/lib/samba/...
2013 Jul 21
9
build for pv-grub stubdom
...warning: implicit declaration of function ‘_fstat64’ [-Wimplicit-function-declaration] * ../../../../../newlib-1.16.0/newlib/libc/reent/open64r.c:62:3: warning: implicit declaration of function ‘_open64’ [-Wimplicit-function-declaration] * ../../../../../newlib-1.16.0/newlib/libc/reent/lseek64r.c:61:3: warning: implicit declaration of function ‘lseek64’ [-Wimplicit-function-declaration] * ../../../../newlib-1.16.0/libgloss/i386/cygmon-gmon.c:355:7: warning: implicit declaration of function ‘profil’ [-Wimplicit-function-declaration] * ../grub-upstream/stage2/builtins.c:1728:...
2005 Feb 25
1
ext3 +2TB fs
I've got a 3.3TB ext3 on a FC3 64-bit system, running kernel 2.6.10-1.766FC3smp. I create the partition with parted 1.6.21, and I make the fs via: mkfs.ext3 -m1 -b 4096 -T largefile4 /dev/sda1 Works fine. bonnie++ running on it multiple times for days on end, no problems. However, I do the exact same setup on a RHEL4-AS i686 system, 32-bit, and the fs is totally hosed, get all kinds of
2018 May 14
1
Unable to build 'lld' on Mac OS 10.9
...it -- Looking for setrlimit - found -- Looking for isatty -- Looking for isatty - found -- Looking for futimens -- Looking for futimens - not found -- Looking for futimes -- Looking for futimes - found -- Looking for posix_fallocate -- Looking for posix_fallocate -not found -- Looking for lseek64 -- Looking for lseek64 - not found -- Looking for mallctl -- Looking for mallctl - not found -- Looking for mallinfo -- Looking for mallinfo - not found -- Looking formalloc_zone_statistics -- Looking formalloc_zone_statistics - found -- Looking for getrlimit -- Looking for getrlimit - fou...
2013 Apr 19
8
[PATCH 0 of 8] blktap3/libvhd: Introduce VHD library.
This patch series introduces the VHD library. It is based on the blktap2 one, with changes coming from the blktap2.5 one. Signed-off-by: Thanos Makatos <thanos.makatos@citrix.com>
2003 Jan 06
0
smbd using alot of cpu
...282 select 0.00 87 gettimeofday 0.00 105 sysconf 0.00 14 send 0.00 87 getdents 0.75 1727 fstat64 0.00 31 lseek64 0.00 8 lstat64 0.48 11809 stat64 0.09 170 93 statvfs64 0.00 7 acl 0.00 8 8 ----- ----- -...
2002 Nov 29
3
Version 2.2.6 and above are not able to store big fil es over 2GB
...tore a file biger than 2GB to a samba server version 2.2.5 everythink works fine. But when I do that with a server version 2.2.6 or 2.2.7 the saving fails on the 2GB limit. The problem can be seen with windowsclients or with smbclient (any version > 2.2.5). I did some debuging and find that the lseek64 fails. But I didn't find the reason. Regards Klaus Ethgen -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
2012 Oct 25
0
Compiling Samba4 RC3 on AIX 6.1 with IBM vac
...ine 472 of "/usr/include/stdio.h". "/usr/include/stdio.h", line 533.16: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long". "/usr/include/unistd.h", line 171.17: 1506-343 (S) Redeclaration of lseek64 differs from previous declaration on line 169 of "/usr/include/unistd.h". "/usr/include/unistd.h", line 171.17: 1506-050 (I) Return type "long long" in redeclaration is not compatible with the previous return type "long". "/usr/include/unistd.h", li...
2017 Mar 25
5
Modules Maintaining or Removing
Hallo all, I was trying to Build LLVM with the cmake option LLVM_ENABLE_MODULES just out of curiosity. I used the RELEASE_400/final tag. It didn't work as I almost expected. So I'm wondering if the modulemaps aren't maintained anymore? If they aren't maintained anymore, why aren't they removed and that cmake option also removed?
2017 Mar 05
3
Error in Windows build from release_40 branch
Hi, I'm trying to do a build and install on Windows 10 with Visual Studio 2015 Community Edition for the X86 and ARM targets, from the current release_40 branch. While compilation completes without error, the INSTALL target fails with the following error: 54> CMake Error at projects/compiler-rt/lib/builtins/cmake_install.cmake:34 (file): 54> file INSTALL cannot find 54>
2019 Sep 17
2
Building LLVM with LLVM with no dependence on GCC
...g for isatty -- Looking for isatty - found -- Looking for futimens -- Looking for futimens - found -- Looking for futimes -- Looking for futimes - found -- Looking for posix_fallocate -- Looking for posix_fallocate - found -- Looking for sigaltstack -- Looking for sigaltstack - found -- Looking for lseek64 -- Looking for lseek64 - found -- Looking for mallctl -- Looking for mallctl - not found -- Looking for mallinfo -- Looking for mallinfo - found -- Looking for malloc_zone_statistics -- Looking for malloc_zone_statistics - not found -- Looking for getrlimit -- Looking for getrlimit - found -- Looki...
2000 Mar 07
4
Error compiling R on RS6000 (PR#475)
...-1.0.0 fails with the following error messages: make Target "R" is up to date. gcc -I. -I../include -I../../src/include -I../../src/include/R_ext -DHAVE_CONFIG_H -mno-fp-in-toc -g -O2 -c Rsock.c -o Rsock.o In file included from Rsock.c:34: /usr/include/unistd.h:162: parse error before `lseek64' /usr/include/unistd.h:162: parse error before `off64_t' /usr/include/unistd.h:162: warning: data definition has no type or storage class In file included from /usr/include/sys/lockf.h:41, from /usr/include/unistd.h:382, from Rsock.c:34: /usr/include/sys/st...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...ev->mem; + u32 irq, reply_num, *lenp; + int len; + struct iovec reply[LGUEST_MAX_DMA_SECTIONS]; + off64_t device_len, off = (off64_t)p->sector * 512; + + device_len = *(off64_t *)dev->priv; + + if (off >= device_len) + err(1, "Bad offset %llu vs %llu", off, device_len); + if (lseek64(dev->fd, off, SEEK_SET) != off) + err(1, "Bad seek to sector %i", p->sector); + + verbose("Block: %s at offset %llu\n", p->type ? "WRITE" : "READ", off); + + lenp = get_dma_buffer(fd, dev->mem, reply, &reply_num, &irq); + if (!lenp) + er...
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 07/13] lguest64 loader
...ev->mem; + u32 irq, reply_num, *lenp; + int len; + struct iovec reply[LGUEST_MAX_DMA_SECTIONS]; + off64_t device_len, off = (off64_t)p->sector * 512; + + device_len = *(off64_t *)dev->priv; + + if (off >= device_len) + err(1, "Bad offset %llu vs %llu", off, device_len); + if (lseek64(dev->fd, off, SEEK_SET) != off) + err(1, "Bad seek to sector %i", p->sector); + + verbose("Block: %s at offset %llu\n", p->type ? "WRITE" : "READ", off); + + lenp = get_dma_buffer(fd, dev->mem, reply, &reply_num, &irq); + if (!lenp) + er...
2008 Feb 15
4
Revised flags patch
...3.0.0pre9-flags/configure.in Fri Feb 15 19:33:09 2008 @@ -551,7 +551,7 @@ AC_CHECK_FUNCS(waitpid wait4 getcwd strd memmove lchown vsnprintf snprintf vasprintf asprintf setsid glob strpbrk \ strlcat strlcpy strtol mallinfo getgroups setgroups geteuid getegid \ setlocale setmode open64 lseek64 mkstemp64 mtrace va_copy __va_copy \ - strerror putenv iconv_open locale_charset nl_langinfo getxattr \ + chflags strerror putenv iconv_open locale_charset nl_langinfo getxattr \ extattr_get_link sigaction sigprocmask setattrlist) dnl cygwin iconv.h defines iconv_open as libiconv_open...