This website requires JavaScript.
Explore
Help
Sign In
Aren
/
NetBSD
Watch
1
Star
0
Fork
You've already forked NetBSD
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
725814cc94
NetBSD
/
sys
/
lib
/
libsa
/
bcmp.c
4 lines
79 B
C
Raw
Normal View
History
Unescape
Escape
Another attempt to get libsa to contain the right things. - put a 'standards conforming' memcmp into memcmp.c - make bcmp be a second label on the same code - make bcmp.c be just #include "memcmp.c" This means that libsa.o might contain both a memcmp.o and a bcmp.o, but both contain the same code (defining both symbols) so it doesn't matter which ld uses. Saves worrying about which of bcmp.c and memcmp.c the architecture specific Makefile requests.
2003-09-01 16:28:03 +04:00
/* $NetBSD: bcmp.c,v 1.6 2003/09/01 12:28:03 dsl Exp $ */
It's no use having a memcmp() that calls bcmp() if there's no bcmp() in the SA library. Basically copied from ../libkern with a few less #if's and #include's.
1999-04-01 09:12:20 +04:00
Another attempt to get libsa to contain the right things. - put a 'standards conforming' memcmp into memcmp.c - make bcmp be a second label on the same code - make bcmp.c be just #include "memcmp.c" This means that libsa.o might contain both a memcmp.o and a bcmp.o, but both contain the same code (defining both symbols) so it doesn't matter which ld uses. Saves worrying about which of bcmp.c and memcmp.c the architecture specific Makefile requests.
2003-09-01 16:28:03 +04:00
#
include
"memcmp.c"