summaryrefslogtreecommitdiff
path: root/devel/ups-debug/files/patch-04
blob: 4fcb59509d606e4010e33d3ec250242616698205 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- ups/xc_builtins.c.orig	Fri Feb 19 07:14:51 1999
+++ ups/xc_builtins.c	Sun May  9 10:45:18 1999
@@ -61,7 +61,7 @@
 static int builtin_read PROTO((int fd, void *buf, size_t nbytes));
 static int builtin_write PROTO((int fd, const void *buf, size_t nbytes));
 static int builtin_pipe PROTO((int *fds));
-static int builtin_lseek PROTO((int fd, off_t offset, int whence));
+static off_t builtin_lseek PROTO((int fd, off_t offset, int whence));
 static int builtin_fcntl PROTO((int fd, int cmd, char *arg));
 static int builtin_dup2 PROTO((int fd, int newfd));
 static int builtin_dup PROTO((int fd));
@@ -71,7 +71,7 @@
 #if HAVE_FLOCK
 static int builtin_flock PROTO((int fd, int op));
 #endif
-static int builtin_ftruncate PROTO((int fd, long length));
+static int builtin_ftruncate PROTO((int fd, off_t length));
 static int builtin_ioctl PROTO((int fd, unsigned cmd, caddr_t arg));
 static int builtin_fstat PROTO((int fd, struct stat *stbuf));
 #if HAVE_X_WINDOWS
@@ -306,7 +306,7 @@
 static int
 builtin_ftruncate(fd, length)
 int fd;
-long length;
+off_t length;
 {
        return fd_ok(fd) ? ftruncate(fd, (off_t)length) : -1;
 }
@@ -329,7 +329,7 @@
 	return res;
 }
 
-static int
+static off_t
 builtin_lseek(fd, offset, whence)
 int fd;
 off_t offset;