diff options
| author | christos <christos@NetBSD.org> | 1998-11-15 17:21:49 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1998-11-15 17:21:49 +0000 |
| commit | 8cc3f31582bebc97a110ee04eeef0c218edde9d6 (patch) | |
| tree | f859fff4f9c1c8e2492196dc646ad2d6e6182adf /lib/libc/sys | |
| parent | f8dfd806d0341d320cb25c1e7e8ee09088d745af (diff) | |
delint
Diffstat (limited to 'lib/libc/sys')
| -rw-r--r-- | lib/libc/sys/ftruncate.c | 10 | ||||
| -rw-r--r-- | lib/libc/sys/getdirentries.c | 6 | ||||
| -rw-r--r-- | lib/libc/sys/mmap.c | 10 | ||||
| -rw-r--r-- | lib/libc/sys/pread.c | 10 | ||||
| -rw-r--r-- | lib/libc/sys/preadv.c | 10 | ||||
| -rw-r--r-- | lib/libc/sys/pwrite.c | 10 | ||||
| -rw-r--r-- | lib/libc/sys/pwritev.c | 10 | ||||
| -rw-r--r-- | lib/libc/sys/timer_create.c | 3 | ||||
| -rw-r--r-- | lib/libc/sys/timer_delete.c | 3 | ||||
| -rw-r--r-- | lib/libc/sys/timer_getoverrun.c | 3 | ||||
| -rw-r--r-- | lib/libc/sys/timer_gettime.c | 3 | ||||
| -rw-r--r-- | lib/libc/sys/timer_settime.c | 3 | ||||
| -rw-r--r-- | lib/libc/sys/truncate.c | 10 |
13 files changed, 48 insertions, 43 deletions
diff --git a/lib/libc/sys/ftruncate.c b/lib/libc/sys/ftruncate.c index 76c7cbc05c5..7339d10fbd3 100644 --- a/lib/libc/sys/ftruncate.c +++ b/lib/libc/sys/ftruncate.c @@ -1,4 +1,4 @@ -/* $NetBSD: ftruncate.c,v 1.8 1998/10/14 11:25:19 kleink Exp $ */ +/* $NetBSD: ftruncate.c,v 1.9 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)ftruncate.c 8.1 (Berkeley) 6/17/93"; #else -__RCSID("$NetBSD: ftruncate.c,v 1.8 1998/10/14 11:25:19 kleink Exp $"); +__RCSID("$NetBSD: ftruncate.c,v 1.9 1998/11/15 17:23:00 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -64,10 +64,10 @@ ftruncate(fd, length) int rv; q = __syscall((quad_t)SYS_ftruncate, fd, 0, length); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; else - rv = (int)(q >> 32); + rv = (int)((u_quad_t)q >> 32); return rv; } diff --git a/lib/libc/sys/getdirentries.c b/lib/libc/sys/getdirentries.c index 349539c7811..ea9c1970b9e 100644 --- a/lib/libc/sys/getdirentries.c +++ b/lib/libc/sys/getdirentries.c @@ -1,4 +1,4 @@ -/* $NetBSD: getdirentries.c,v 1.2 1998/10/14 11:56:29 kleink Exp $ */ +/* $NetBSD: getdirentries.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1997 Frank van der Linden @@ -43,6 +43,6 @@ getdirentries(fd, buf, nbytes, basep) char *buf; long *basep; { - *basep = lseek(fd, 0, SEEK_CUR); - return getdents(fd, buf, nbytes); + *basep = (long)lseek(fd, (off_t)0, SEEK_CUR); + return getdents(fd, buf, (size_t)nbytes); } diff --git a/lib/libc/sys/mmap.c b/lib/libc/sys/mmap.c index 4ab15cb7047..0bcfb13da84 100644 --- a/lib/libc/sys/mmap.c +++ b/lib/libc/sys/mmap.c @@ -1,4 +1,4 @@ -/* $NetBSD: mmap.c,v 1.9 1998/10/14 11:25:19 kleink Exp $ */ +/* $NetBSD: mmap.c,v 1.10 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)mmap.c 8.1 (Berkeley) 6/17/93"; #else -__RCSID("$NetBSD: mmap.c,v 1.9 1998/10/14 11:25:19 kleink Exp $"); +__RCSID("$NetBSD: mmap.c,v 1.10 1998/11/15 17:23:00 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -69,10 +69,10 @@ mmap(addr, len, prot, flags, fd, offset) caddr_t rv; q = __syscall((quad_t)SYS_mmap, addr, len, prot, flags, fd, 0, offset); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (caddr_t)(long)q; else - rv = (caddr_t)(long)(q >> 32); + rv = (caddr_t)(long)((u_quad_t)q >> 32); return rv; } diff --git a/lib/libc/sys/pread.c b/lib/libc/sys/pread.c index 3cc70954ce0..fef46d923fb 100644 --- a/lib/libc/sys/pread.c +++ b/lib/libc/sys/pread.c @@ -1,4 +1,4 @@ -/* $NetBSD: pread.c,v 1.3 1998/10/14 11:25:19 kleink Exp $ */ +/* $NetBSD: pread.c,v 1.4 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: pread.c,v 1.3 1998/10/14 11:25:19 kleink Exp $"); +__RCSID("$NetBSD: pread.c,v 1.4 1998/11/15 17:23:00 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -62,10 +62,10 @@ pread(fd, buf, nbyte, offset) int rv; q = __syscall((quad_t)SYS_pread, fd, buf, nbyte, 0, offset); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; else - rv = (int)(q >> 32); + rv = (int)((u_quad_t)q >> 32); return rv; } diff --git a/lib/libc/sys/preadv.c b/lib/libc/sys/preadv.c index 087a6e34fa5..63fd3cebd2e 100644 --- a/lib/libc/sys/preadv.c +++ b/lib/libc/sys/preadv.c @@ -1,4 +1,4 @@ -/* $NetBSD: preadv.c,v 1.2 1998/07/02 01:42:28 thorpej Exp $ */ +/* $NetBSD: preadv.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: preadv.c,v 1.2 1998/07/02 01:42:28 thorpej Exp $"); +__RCSID("$NetBSD: preadv.c,v 1.3 1998/11/15 17:23:00 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -58,10 +58,10 @@ preadv(fd, iovp, iovcnt, offset) int rv; q = __syscall((quad_t)SYS_preadv, fd, iovp, iovcnt, 0, offset); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; else - rv = (int)(q >> 32); + rv = (int)((u_quad_t)q >> 32); return rv; } diff --git a/lib/libc/sys/pwrite.c b/lib/libc/sys/pwrite.c index 87763a6e24a..cbdff563f2a 100644 --- a/lib/libc/sys/pwrite.c +++ b/lib/libc/sys/pwrite.c @@ -1,4 +1,4 @@ -/* $NetBSD: pwrite.c,v 1.3 1998/10/14 11:25:19 kleink Exp $ */ +/* $NetBSD: pwrite.c,v 1.4 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: pwrite.c,v 1.3 1998/10/14 11:25:19 kleink Exp $"); +__RCSID("$NetBSD: pwrite.c,v 1.4 1998/11/15 17:23:00 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include "namespace.h" @@ -62,10 +62,10 @@ pwrite(fd, buf, nbyte, offset) int rv; q = __syscall((quad_t)SYS_pwrite, fd, buf, nbyte, 0, offset); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; else - rv = (int)(q >> 32); + rv = (int)((u_quad_t)q >> 32); return rv; } diff --git a/lib/libc/sys/pwritev.c b/lib/libc/sys/pwritev.c index e4f40742a74..185ea6e93b0 100644 --- a/lib/libc/sys/pwritev.c +++ b/lib/libc/sys/pwritev.c @@ -1,4 +1,4 @@ -/* $NetBSD: pwritev.c,v 1.2 1998/07/02 01:42:28 thorpej Exp $ */ +/* $NetBSD: pwritev.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: pwritev.c,v 1.2 1998/07/02 01:42:28 thorpej Exp $"); +__RCSID("$NetBSD: pwritev.c,v 1.3 1998/11/15 17:23:00 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -58,10 +58,10 @@ pwritev(fd, iovp, iovcnt, offset) int rv; q = __syscall((quad_t)SYS_pwritev, fd, iovp, iovcnt, 0, offset); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; else - rv = (int)(q >> 32); + rv = (int)((u_quad_t)q >> 32); return rv; } diff --git a/lib/libc/sys/timer_create.c b/lib/libc/sys/timer_create.c index ff7483496aa..220991c9767 100644 --- a/lib/libc/sys/timer_create.c +++ b/lib/libc/sys/timer_create.c @@ -1,9 +1,10 @@ -/* $NetBSD: timer_create.c,v 1.2 1998/01/09 03:15:42 perry Exp $ */ +/* $NetBSD: timer_create.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ #include <signal.h> #include <time.h> #include <errno.h> +/* ARGSUSED */ int timer_create(clock_id, evp, timerid) clockid_t clock_id; diff --git a/lib/libc/sys/timer_delete.c b/lib/libc/sys/timer_delete.c index b58db896890..02fff83ccca 100644 --- a/lib/libc/sys/timer_delete.c +++ b/lib/libc/sys/timer_delete.c @@ -1,9 +1,10 @@ -/* $NetBSD: timer_delete.c,v 1.2 1998/01/09 03:15:43 perry Exp $ */ +/* $NetBSD: timer_delete.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ #include <signal.h> #include <time.h> #include <errno.h> +/* ARGSUSED */ int timer_delete(timerid) timer_t timerid; diff --git a/lib/libc/sys/timer_getoverrun.c b/lib/libc/sys/timer_getoverrun.c index eed5a168868..2848e521440 100644 --- a/lib/libc/sys/timer_getoverrun.c +++ b/lib/libc/sys/timer_getoverrun.c @@ -1,9 +1,10 @@ -/* $NetBSD: timer_getoverrun.c,v 1.2 1998/01/09 03:15:43 perry Exp $ */ +/* $NetBSD: timer_getoverrun.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ #include <signal.h> #include <time.h> #include <errno.h> +/* ARGSUSED */ int timer_getoverrun(timerid) timer_t timerid; diff --git a/lib/libc/sys/timer_gettime.c b/lib/libc/sys/timer_gettime.c index 7f097be63c5..693cc184636 100644 --- a/lib/libc/sys/timer_gettime.c +++ b/lib/libc/sys/timer_gettime.c @@ -1,9 +1,10 @@ -/* $NetBSD: timer_gettime.c,v 1.2 1998/01/09 03:15:44 perry Exp $ */ +/* $NetBSD: timer_gettime.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ #include <signal.h> #include <time.h> #include <errno.h> +/* ARGSUSED */ int timer_gettime(timerid, value) timer_t timerid; diff --git a/lib/libc/sys/timer_settime.c b/lib/libc/sys/timer_settime.c index 9b43eee1446..d01181901c7 100644 --- a/lib/libc/sys/timer_settime.c +++ b/lib/libc/sys/timer_settime.c @@ -1,9 +1,10 @@ -/* $NetBSD: timer_settime.c,v 1.2 1998/01/09 03:15:45 perry Exp $ */ +/* $NetBSD: timer_settime.c,v 1.3 1998/11/15 17:23:00 christos Exp $ */ #include <signal.h> #include <time.h> #include <errno.h> +/* ARGSUSED */ int timer_settime(timerid, flags, value, ovalue) timer_t timerid; diff --git a/lib/libc/sys/truncate.c b/lib/libc/sys/truncate.c index c102922f085..683fa547ade 100644 --- a/lib/libc/sys/truncate.c +++ b/lib/libc/sys/truncate.c @@ -1,4 +1,4 @@ -/* $NetBSD: truncate.c,v 1.8 1997/07/13 20:25:34 christos Exp $ */ +/* $NetBSD: truncate.c,v 1.9 1998/11/15 17:23:00 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)truncate.c 8.1 (Berkeley) 6/17/93"; #else -__RCSID("$NetBSD: truncate.c,v 1.8 1997/07/13 20:25:34 christos Exp $"); +__RCSID("$NetBSD: truncate.c,v 1.9 1998/11/15 17:23:00 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -59,10 +59,10 @@ truncate(path, length) int rv; q = __syscall((quad_t)SYS_truncate, path, 0, length); - if (sizeof (quad_t) == sizeof (register_t) || - BYTE_ORDER == LITTLE_ENDIAN) + if (/* LINTED constant */ sizeof (quad_t) == sizeof (register_t) || + /* LINTED constant */ BYTE_ORDER == LITTLE_ENDIAN) rv = (int)q; else - rv = (int)(q >> 32); + rv = (int)((u_quad_t)q >> 32); return rv; } |
