summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/htons.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* drop htonl(), htons(), ntohl(), ntohs() MD functions from libcnaddy2024-04-151-10/+4
| | | | | | | | | | | Userland code compiled in a normal fashion picks up the htonl(), htons(), ntohl(), ntohs() macros implemented by endian.h. The functions in libc are effectively unused. Keep the MI functions in case something looks for the symbols in libc or plays games with #undef, but change them to wrap the implementation from endian.h. tweaks suggested by claudio@, ok miod@
* Switch from <sys/endian.h> or <machine/endian.h> to the new,guenther2014-07-211-2/+2
| | | | | | being-standardized <endian.h> ok deraadt@ millert@ beck@
* zap rcsid.espie2005-08-061-4/+1
| | | | | | | split functions off res_debug.c so that getnetnamadr.c does not pull it all when it's used. okay deraadt@, krw@
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-6/+1
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-2/+2
|
* Update {hton,ntoh}[ls] argument and return types to match changes intholo1996-12-121-4/+4
| | | | <machine/endian.h>
* Fix RCS idstholo1996-08-191-4/+2
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* make 64 bit cleanderaadt1996-06-101-3/+3
|
* Pull in prototypestholo1996-03-251-0/+4
| | | | Do the right thing in presense of __STDC__
* initial import of NetBSD treederaadt1995-10-181-0/+27