Changeset 1730
- Timestamp:
- Feb 1, 2007, 7:19:03 PM (16 years ago)
- Location:
- zzuf/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
zzuf/trunk/configure.ac
r1728 r1730 28 28 AC_SUBST(DLL_LDFLAGS) 29 29 30 AC_CHECK_HEADERS(windows.h winsock2.h io.h unistd.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h)30 AC_CHECK_HEADERS(windows.h winsock2.h io.h process.h unistd.h inttypes.h stdint.h getopt.h libc.h malloc.h dlfcn.h regex.h sys/socket.h sys/uio.h aio.h sys/mman.h sys/wait.h sys/resource.h sys/time.h) 31 31 32 32 AC_CHECK_FUNCS(setenv waitpid setrlimit gettimeofday fork kill pipe _pipe) -
zzuf/trunk/msvc/config.h
r1729 r1730 22 22 #define HAVE_WINSOCK2_H 1 23 23 #define HAVE_IO_H 1 24 #define HAVE_PROCESS_H 1 25 26 #define HAVE__PIPE 24 27 25 28 /* Win32-specific, of course. */ … … 34 37 35 38 typedef unsigned long int uintptr_t; 36 typedef long int intptr_t;37 39 typedef int pid_t; 38 40 -
zzuf/trunk/src/debug.c
r1728 r1730 30 30 #if defined HAVE_UNISTD_H 31 31 # include <unistd.h> 32 #endif 33 #if defined HAVE_IO_H 34 # include <io.h> 32 35 #endif 33 36 #include <errno.h> -
zzuf/trunk/src/fd.c
r1719 r1730 51 51 { 52 52 int managed, locked; 53 uint64_t pos;53 int64_t pos; 54 54 /* Public stuff */ 55 55 struct fuzz fuzz; … … 312 312 } 313 313 314 long int _zz_getpos(int fd)314 int64_t _zz_getpos(int fd) 315 315 { 316 316 if(fd < 0 || fd >= maxfd || fds[fd] == -1) … … 320 320 } 321 321 322 void _zz_setpos(int fd, long int pos)322 void _zz_setpos(int fd, int64_t pos) 323 323 { 324 324 if(fd < 0 || fd >= maxfd || fds[fd] == -1) … … 328 328 } 329 329 330 void _zz_addpos(int fd, long int off)330 void _zz_addpos(int fd, int64_t off) 331 331 { 332 332 if(fd < 0 || fd >= maxfd || fds[fd] == -1) -
zzuf/trunk/src/fd.h
r1694 r1730 33 33 extern void _zz_unlock(int); 34 34 extern int _zz_islocked(int); 35 extern long int _zz_getpos(int);36 extern void _zz_setpos(int, long int);37 extern void _zz_addpos(int, long int);35 extern int64_t _zz_getpos(int); 36 extern void _zz_setpos(int, int64_t); 37 extern void _zz_addpos(int, int64_t); 38 38 extern struct fuzz *_zz_getfuzz(int); 39 39 -
zzuf/trunk/src/fuzz.c
r1720 r1730 112 112 void _zz_fuzz(int fd, volatile uint8_t *buf, uint64_t len) 113 113 { 114 uint64_t start, stop; 114 int64_t start, stop; 115 int64_t pos = _zz_getpos(fd); 115 116 struct fuzz *fuzz; 116 117 volatile uint8_t *aligned_buf; 117 unsigned long int pos = _zz_getpos(fd); 118 unsigned int i, j, todo; 118 int i, j, todo; 119 119 120 120 #if 0 121 debug("fuzz(%i, %lli@%l i)", fd, (unsignedlong long int)len,122 ( unsignedlong int)pos);121 debug("fuzz(%i, %lli@%lli)", fd, (long long int)len, 122 (long long int)pos); 123 123 #endif 124 124 … … 160 160 for(j = start; j < stop; j++) 161 161 { 162 unsignedint *r;162 int *r; 163 163 uint8_t byte, fuzzbyte; 164 164 -
zzuf/trunk/src/lib-mem.c
r1728 r1730 101 101 #define DUMMY_BYTES 655360 /* 640 kB ought to be enough for anybody */ 102 102 static uint64_t dummy_buffer[DUMMY_BYTES / 8]; 103 static int dummy_offset = 0;103 static int64_t dummy_offset = 0; 104 104 #define DUMMY_START ((uintptr_t)dummy_buffer) 105 105 #define DUMMY_STOP ((uintptr_t)dummy_buffer + DUMMY_BYTES) -
zzuf/trunk/src/lib-stream.c
r1728 r1730 224 224 size_t NEW(fread)(void *ptr, size_t size, size_t nmemb, FILE *stream) 225 225 { 226 long int pos;227 #if defined HAVE___SREFILL /* Don't fuzz or seek if we have __srefill() */ 228 #else 229 long int newpos;226 int64_t pos; 227 #if defined HAVE___SREFILL /* Don't fuzz or seek if we have __srefill() */ 228 #else 229 int64_t newpos; 230 230 #endif 231 231 size_t ret; -
zzuf/trunk/src/libzzuf.c
r1728 r1730 27 27 #if defined HAVE_WINDOWS_H 28 28 # include <windows.h> 29 #endif 30 #if defined HAVE_PROCESS_H 31 # include <process.h> 29 32 #endif 30 33 #include <stdio.h>
Note: See TracChangeset
for help on using the changeset viewer.