lint stubs for functions which ports use assembly versions. When using

an assembly version of a function, add the right lint stub to the Makefile.inc
which specifies the source to build the function (see the
arch/i386/*/Makefile.inc).  Can't just lint the normal C versions of these
functions, because some of them don't _have_ normal C versions and if
that were done dependencies would get messed up.
This commit is contained in:
cgd 1997-11-06 00:51:04 +00:00
parent fe47853f6f
commit 023cd79c6b
43 changed files with 741 additions and 0 deletions

16
lib/libc/gen/Lint_modf.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_modf.c,v 1.1 1997/11/06 00:51:04 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <math.h>
/*ARGSUSED*/
double
modf(value, iptr)
double value, *iptr;
{
return (0.0);
}

View File

@ -0,0 +1,24 @@
/* $NetBSD: Lint_setjmp.c,v 1.1 1997/11/06 00:51:08 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <setjmp.h>
/*ARGSUSED*/
int
setjmp(env)
jmp_buf env;
{
return (0);
}
/*ARGSUSED*/
void
longjmp(env, val)
jmp_buf env;
int val;
{
}

View File

@ -0,0 +1,25 @@
/* $NetBSD: Lint_sigsetjmp.c,v 1.1 1997/11/06 00:51:10 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <setjmp.h>
/*ARGSUSED*/
int
sigsetjmp(env, savemask)
sigjmp_buf env;
int savemask;
{
return (0);
}
/*ARGSUSED*/
void
siglongjmp(env, val)
sigjmp_buf env;
int val;
{
}

16
lib/libc/net/Lint_htonl.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_htonl.c,v 1.1 1997/11/06 00:51:19 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <sys/types.h>
/*ARGSUSED*/
in_addr_t
htonl(host32)
in_addr_t host32;
{
return (0);
}

16
lib/libc/net/Lint_htons.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_htons.c,v 1.1 1997/11/06 00:51:23 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <sys/types.h>
/*ARGSUSED*/
in_port_t
htons(host16)
in_port_t host16;
{
return (0);
}

16
lib/libc/net/Lint_ntohl.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_ntohl.c,v 1.1 1997/11/06 00:51:25 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <sys/types.h>
/*ARGSUSED*/
in_addr_t
ntohl(net32)
in_addr_t net32;
{
return (0);
}

16
lib/libc/net/Lint_ntohs.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_ntohs.c,v 1.1 1997/11/06 00:51:28 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <sys/types.h>
/*ARGSUSED*/
in_port_t
ntohs(net16)
in_port_t net16;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_abs.c,v 1.1 1997/11/06 00:51:32 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <stdlib.h>
/*ARGSUSED*/
int
abs(j)
int j;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_div.c,v 1.1 1997/11/06 00:51:36 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <stdlib.h>
/*ARGSUSED*/
div_t
div(num, denom)
int num, denom;
{
div_t rv = { 0 };
return (rv);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_labs.c,v 1.1 1997/11/06 00:51:39 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <stdlib.h>
/*ARGSUSED*/
long
labs(j)
long j;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_ldiv.c,v 1.1 1997/11/06 00:51:42 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <stdlib.h>
/*ARGSUSED*/
ldiv_t
ldiv(num, denom)
long num, denom;
{
ldiv_t rv = { 0 };
return (rv);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_bcmp.c,v 1.1 1997/11/06 00:51:48 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
int
bcmp(b1, b2, len)
const void *b1, *b2;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_bcopy.c,v 1.1 1997/11/06 00:51:51 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void
bcopy(src, dst, len)
const void *src;
void *dst;
size_t len;
{
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_bzero.c,v 1.1 1997/11/06 00:51:55 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void
bzero(src, len)
void *src;
size_t len;
{
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_ffs.c,v 1.1 1997/11/06 00:51:57 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
int
ffs(value)
int value;
{
return(0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_index.c,v 1.1 1997/11/06 00:52:00 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
char *
index(src, c)
const char *src;
int c;
{
return (0);
}

View File

@ -0,0 +1,18 @@
/* $NetBSD: Lint_memchr.c,v 1.1 1997/11/06 00:52:03 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void *
memchr(b, c, len)
const void *b;
int c;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_memcmp.c,v 1.1 1997/11/06 00:52:06 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
int
memcmp(b1, b2, len)
const void *b1, *b2;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,18 @@
/* $NetBSD: Lint_memcpy.c,v 1.1 1997/11/06 00:52:09 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void *
memcpy(dst, src, len)
void *dst;
const void *src;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,18 @@
/* $NetBSD: Lint_memmove.c,v 1.1 1997/11/06 00:52:12 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void *
memmove(dst, src, len)
void *dst;
const void *src;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,18 @@
/* $NetBSD: Lint_memset.c,v 1.1 1997/11/06 00:52:16 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void *
memset(b, c, len)
void *b;
int c;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_rindex.c,v 1.1 1997/11/06 00:52:18 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
char *
rindex(src, c)
const char *src;
int c;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_strcat.c,v 1.1 1997/11/06 00:52:21 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
char *
strcat(s, append)
char *s;
const char *append;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_strchr.c,v 1.1 1997/11/06 00:52:23 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
char *
strchr(src, c)
const char *src;
int c;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_strcmp.c,v 1.1 1997/11/06 00:52:26 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
int
strcmp(s1, s2)
const char *s1, *s2;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_strcpy.c,v 1.1 1997/11/06 00:52:28 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
char *
strcpy(dst, src)
char *dst;
const char *src;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_strlen.c,v 1.1 1997/11/06 00:52:31 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
size_t
strlen(s)
const char *s;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_strncmp.c,v 1.1 1997/11/06 00:52:34 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
int
strncmp(s1, s2, len)
const char *s1, *s2;
size_t len;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_strrchr.c,v 1.1 1997/11/06 00:52:38 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
char *
strrchr(src, c)
const char *src;
int c;
{
return (0);
}

View File

@ -0,0 +1,17 @@
/* $NetBSD: Lint_swab.c,v 1.1 1997/11/06 00:52:42 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <string.h>
/*ARGSUSED*/
void
swab(src, dst, len)
const void *src;
void *dst;
size_t len;
{
}

View File

@ -0,0 +1,15 @@
/* $NetBSD: Lint_Ovfork.c,v 1.1 1997/11/06 00:52:49 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
pid_t
vfork()
{
return (0);
}

16
lib/libc/sys/Lint_brk.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_brk.c,v 1.1 1997/11/06 00:52:52 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
char *
brk(addr)
const char *addr;
{
return (0);
}

18
lib/libc/sys/Lint_exect.c Normal file
View File

@ -0,0 +1,18 @@
/* $NetBSD: Lint_exect.c,v 1.1 1997/11/06 00:52:54 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
int
exect(path, argv, envp)
const char *path;
char * const * argv;
char * const * envp;
{
return (0);
}

15
lib/libc/sys/Lint_fork.c Normal file
View File

@ -0,0 +1,15 @@
/* $NetBSD: Lint_fork.c,v 1.1 1997/11/06 00:52:57 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
pid_t
fork()
{
return (0);
}

16
lib/libc/sys/Lint_pipe.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_pipe.c,v 1.1 1997/11/06 00:52:59 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
int
pipe(filedes)
int filedes[2];
{
return (0);
}

View File

@ -0,0 +1,19 @@
/* $NetBSD: Lint_ptrace.c,v 1.1 1997/11/06 00:53:02 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
int
ptrace(request, pid, addr, data)
int request;
pid_t pid;
caddr_t addr;
int data;
{
return (0);
}

16
lib/libc/sys/Lint_sbrk.c Normal file
View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_sbrk.c,v 1.1 1997/11/06 00:53:04 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
char *
sbrk(incr)
int incr;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_setlogin.c,v 1.1 1997/11/06 00:53:08 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
/*ARGSUSED*/
int
setlogin(name)
const char *name;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_sigpending.c,v 1.1 1997/11/06 00:53:11 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <signal.h>
/*ARGSUSED*/
int
sigpending(set)
sigset_t *set;
{
return (0);
}

View File

@ -0,0 +1,18 @@
/* $NetBSD: Lint_sigprocmask.c,v 1.1 1997/11/06 00:53:15 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <signal.h>
/*ARGSUSED*/
int
sigprocmask(how, set, oset)
int how;
const sigset_t *set;
sigset_t *oset;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_sigreturn.c,v 1.1 1997/11/06 00:53:18 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <signal.h>
/*ARGSUSED*/
int
sigreturn(scp)
struct sigcontext *scp;
{
return (0);
}

View File

@ -0,0 +1,16 @@
/* $NetBSD: Lint_sigsuspend.c,v 1.1 1997/11/06 00:53:20 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <signal.h>
/*ARGSUSED*/
int
sigsuspend(sigmask)
const sigset_t *sigmask;
{
return (0);
}

View File

@ -0,0 +1,26 @@
/* $NetBSD: Lint_syscall.c,v 1.1 1997/11/06 00:53:22 cgd Exp $ */
/*
* This file placed in the public domain.
* Chris Demetriou, November 5, 1997.
*/
#include <unistd.h>
#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
#endif
/*ARGSUSED*/
int
#ifdef __STDC__
syscall(int arg1, ...)
#else
syscall(arg1, va_alist)
int arg1;
va_dcl
#endif
{
return (0);
}