mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-13 23:36:08 +00:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
--- 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;
|