summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1998-11-15 17:21:49 +0000
committerchristos <christos@NetBSD.org>1998-11-15 17:21:49 +0000
commit8cc3f31582bebc97a110ee04eeef0c218edde9d6 (patch)
treef859fff4f9c1c8e2492196dc646ad2d6e6182adf /lib/libc
parentf8dfd806d0341d320cb25c1e7e8ee09088d745af (diff)
delint
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/string/__strerror.c10
-rw-r--r--lib/libc/string/__strsignal.c11
-rw-r--r--lib/libc/string/strerror.c5
-rw-r--r--lib/libc/string/strpbrk.c5
-rw-r--r--lib/libc/string/strsignal.c5
-rw-r--r--lib/libc/string/strstr.c5
-rw-r--r--lib/libc/string/strtok.c10
-rw-r--r--lib/libc/string/strtok_r.c10
-rw-r--r--lib/libc/sys/ftruncate.c10
-rw-r--r--lib/libc/sys/getdirentries.c6
-rw-r--r--lib/libc/sys/mmap.c10
-rw-r--r--lib/libc/sys/pread.c10
-rw-r--r--lib/libc/sys/preadv.c10
-rw-r--r--lib/libc/sys/pwrite.c10
-rw-r--r--lib/libc/sys/pwritev.c10
-rw-r--r--lib/libc/sys/timer_create.c3
-rw-r--r--lib/libc/sys/timer_delete.c3
-rw-r--r--lib/libc/sys/timer_getoverrun.c3
-rw-r--r--lib/libc/sys/timer_gettime.c3
-rw-r--r--lib/libc/sys/timer_settime.c3
-rw-r--r--lib/libc/sys/truncate.c10
21 files changed, 81 insertions, 71 deletions
diff --git a/lib/libc/string/__strerror.c b/lib/libc/string/__strerror.c
index 24a2c2d9b5f..46a0f27a45a 100644
--- a/lib/libc/string/__strerror.c
+++ b/lib/libc/string/__strerror.c
@@ -1,4 +1,4 @@
-/* $NetBSD: __strerror.c,v 1.13 1998/07/26 13:36:34 mycroft Exp $ */
+/* $NetBSD: __strerror.c,v 1.14 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#else
-__RCSID("$NetBSD: __strerror.c,v 1.13 1998/07/26 13:36:34 mycroft Exp $");
+__RCSID("$NetBSD: __strerror.c,v 1.14 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -63,7 +63,7 @@ const char *
__strerror(num, buf, buflen)
int num;
char *buf;
- int buflen;
+ size_t buflen;
{
#define UPREFIX "Unknown error: %u"
unsigned int errnum;
@@ -76,8 +76,8 @@ __strerror(num, buf, buflen)
errnum = num; /* convert to unsigned */
if (errnum < sys_nerr) {
#ifdef NLS
- strncpy(buf, catgets(catd, 1, errnum,
- (char *)sys_errlist[errnum]), buflen);
+ (void)strncpy(buf, catgets(catd, 1, (int)errnum,
+ sys_errlist[errnum]), buflen);
buf[buflen - 1] = '\0';
#else
return(sys_errlist[errnum]);
diff --git a/lib/libc/string/__strsignal.c b/lib/libc/string/__strsignal.c
index da980db1e9a..8fc40f49a29 100644
--- a/lib/libc/string/__strsignal.c
+++ b/lib/libc/string/__strsignal.c
@@ -1,4 +1,4 @@
-/* $NetBSD: __strsignal.c,v 1.15 1998/07/26 13:36:34 mycroft Exp $ */
+/* $NetBSD: __strsignal.c,v 1.16 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#else
-__RCSID("$NetBSD: __strsignal.c,v 1.15 1998/07/26 13:36:34 mycroft Exp $");
+__RCSID("$NetBSD: __strsignal.c,v 1.16 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -53,11 +53,12 @@ __RCSID("$NetBSD: __strsignal.c,v 1.15 1998/07/26 13:36:34 mycroft Exp $");
#include <string.h>
#include "extern.h"
+/* ARGSUSED */
const char *
__strsignal(num, buf, buflen)
int num;
char *buf;
- int buflen;
+ size_t buflen;
{
#define UPREFIX "Unknown signal: %u"
unsigned int signum;
@@ -70,8 +71,8 @@ __strsignal(num, buf, buflen)
signum = num; /* convert to unsigned */
if (signum < NSIG) {
#ifdef NLS
- (void)strncpy(buf, catgets(catd, 2, signum,
- (char *)sys_siglist[signum]), NL_TEXTMAX);
+ (void)strncpy(buf, catgets(catd, 2, (int)signum,
+ sys_siglist[signum]), NL_TEXTMAX);
buf[NL_TEXTMAX - 1] = '\0';
#else
return((char *)sys_siglist[signum]);
diff --git a/lib/libc/string/strerror.c b/lib/libc/string/strerror.c
index 6b427998206..006138ff948 100644
--- a/lib/libc/string/strerror.c
+++ b/lib/libc/string/strerror.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strerror.c,v 1.10 1998/07/27 09:47:45 mycroft Exp $ */
+/* $NetBSD: strerror.c,v 1.11 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#else
-__RCSID("$NetBSD: strerror.c,v 1.10 1998/07/27 09:47:45 mycroft Exp $");
+__RCSID("$NetBSD: strerror.c,v 1.11 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -58,5 +58,6 @@ strerror(num)
{
static char buf[NL_TEXTMAX];
+ /* LINTED const castaway */
return (__aconst char *)__strerror(num, buf, sizeof(buf));
}
diff --git a/lib/libc/string/strpbrk.c b/lib/libc/string/strpbrk.c
index 71909c6db75..4fac6bca28e 100644
--- a/lib/libc/string/strpbrk.c
+++ b/lib/libc/string/strpbrk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strpbrk.c,v 1.7 1998/02/03 18:49:22 perry Exp $ */
+/* $NetBSD: strpbrk.c,v 1.8 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1985, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)strpbrk.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strpbrk.c,v 1.7 1998/02/03 18:49:22 perry Exp $");
+__RCSID("$NetBSD: strpbrk.c,v 1.8 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -57,6 +57,7 @@ strpbrk(s1, s2)
while ((c = *s1++) != 0) {
for (scanp = s2; (sc = *scanp++) != 0;)
if (sc == c)
+ /* LINTED interface specification */
return ((char *)(s1 - 1));
}
return (NULL);
diff --git a/lib/libc/string/strsignal.c b/lib/libc/string/strsignal.c
index 13891833932..f856514fa41 100644
--- a/lib/libc/string/strsignal.c
+++ b/lib/libc/string/strsignal.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strsignal.c,v 1.9 1998/07/27 09:47:45 mycroft Exp $ */
+/* $NetBSD: strsignal.c,v 1.10 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#else
-__RCSID("$NetBSD: strsignal.c,v 1.9 1998/07/27 09:47:45 mycroft Exp $");
+__RCSID("$NetBSD: strsignal.c,v 1.10 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -57,5 +57,6 @@ strsignal(sig)
{
static char buf[NL_TEXTMAX];
+ /* LINTED interface specification */
return (__aconst char *)__strsignal(sig, buf, NL_TEXTMAX);
}
diff --git a/lib/libc/string/strstr.c b/lib/libc/string/strstr.c
index 4051ca03f6d..f93ed14d0f1 100644
--- a/lib/libc/string/strstr.c
+++ b/lib/libc/string/strstr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strstr.c,v 1.7 1998/02/03 18:49:24 perry Exp $ */
+/* $NetBSD: strstr.c,v 1.8 1998/11/15 17:21:49 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)strstr.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strstr.c,v 1.7 1998/02/03 18:49:24 perry Exp $");
+__RCSID("$NetBSD: strstr.c,v 1.8 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -67,5 +67,6 @@ strstr(s, find)
} while (strncmp(s, find, len) != 0);
s--;
}
+ /* LINTED interface specification */
return ((char *)s);
}
diff --git a/lib/libc/string/strtok.c b/lib/libc/string/strtok.c
index e7f8dcd9140..8dee9f404f0 100644
--- a/lib/libc/string/strtok.c
+++ b/lib/libc/string/strtok.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strtok.c,v 1.7 1998/02/03 18:49:25 perry Exp $ */
+/* $NetBSD: strtok.c,v 1.8 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)strtok.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: strtok.c,v 1.7 1998/02/03 18:49:25 perry Exp $");
+__RCSID("$NetBSD: strtok.c,v 1.8 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -49,7 +49,7 @@ strtok(s, delim)
char *s;
const char *delim;
{
- char *spanp;
+ const char *spanp;
int c, sc;
char *tok;
static char *last;
@@ -63,7 +63,7 @@ strtok(s, delim)
*/
cont:
c = *s++;
- for (spanp = (char *)delim; (sc = *spanp++) != 0;) {
+ for (spanp = delim; (sc = *spanp++) != 0;) {
if (c == sc)
goto cont;
}
@@ -80,7 +80,7 @@ cont:
*/
for (;;) {
c = *s++;
- spanp = (char *)delim;
+ spanp = delim;
do {
if ((sc = *spanp++) == c) {
if (c == 0)
diff --git a/lib/libc/string/strtok_r.c b/lib/libc/string/strtok_r.c
index 038954c5512..79dd509ab80 100644
--- a/lib/libc/string/strtok_r.c
+++ b/lib/libc/string/strtok_r.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strtok_r.c,v 1.4 1998/09/27 17:57:49 kleink Exp $ */
+/* $NetBSD: strtok_r.c,v 1.5 1998/11/15 17:21:49 christos Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -38,7 +38,7 @@
#if 0
static char *sccsid = "@(#)strtok.c 5.8 (Berkeley) 2/24/91";
#else
-__RCSID("$NetBSD: strtok_r.c,v 1.4 1998/09/27 17:57:49 kleink Exp $");
+__RCSID("$NetBSD: strtok_r.c,v 1.5 1998/11/15 17:21:49 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -55,7 +55,7 @@ strtok_r(s, delim, lasts)
const char *delim;
char **lasts;
{
- char *spanp;
+ const char *spanp;
int c, sc;
char *tok;
@@ -67,7 +67,7 @@ strtok_r(s, delim, lasts)
*/
cont:
c = *s++;
- for (spanp = (char *)delim; (sc = *spanp++) != 0;) {
+ for (spanp = delim; (sc = *spanp++) != 0;) {
if (c == sc)
goto cont;
}
@@ -84,7 +84,7 @@ cont:
*/
for (;;) {
c = *s++;
- spanp = (char *)delim;
+ spanp = delim;
do {
if ((sc = *spanp++) == c) {
if (c == 0)
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;
}