1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-22 11:17:19 +00:00
freebsd/lib
Dag-Erling Smørgrav 31cfde7132 Like many other functions that handle sockaddrs, realhostname_sa() takes a
struct sockaddr * that it casts internally to the appropriate type based on
sa_family.  However, struct sockaddr has very lax alignment requirements,
which causes the compiler to complain when you cast a struct sockaddr * to,
say, a struct sockaddr_in6 *.

I find it reasonable to assume that the pointer we received is in fact
correctly aligned.  Therefore, we can work around the compiler warnings by
casting to void * before casting to the desired type.  For readability's
sake, this is done with macros.

The same technique should prove useful in other parts of the tree that
deal with socket addresses.

MFC after:	3 weeks
2008-11-05 12:13:10 +00:00
..
bind Update for version 9.4.2-P2 2008-09-01 22:55:23 +00:00
csu Add -fno-omit-frame-pointer to CFLAGS used to compile crt1.c on amd64. 2008-08-22 09:23:39 +00:00
libalias
libarchive Correct the documented declaration of the archive_write_callback to 2008-11-01 19:11:21 +00:00
libautofs
libbegemot
libbluetooth Import handy shorthand Bluetooth address (BD_ADDR) utility functions 2008-08-13 19:35:31 +00:00
libbsm
libbsnmp
libbz2
libc Replace the non-standard disclaimer with the standard one from /COPYRIGHT 2008-11-04 00:20:43 +00:00
libc_r Call the fcntl compatiblity wrapper from the thread library fcntl wrappers 2008-05-30 14:47:42 +00:00
libcalendar
libcam Supply a valid Connect ID when issuing XPT_DEV_MATCH, which 2008-10-27 21:46:58 +00:00
libcom_err
libcompat Turn sgtty into a binary-only compatibility interface. 2008-06-14 10:42:18 +00:00
libcrypt
libdevinfo
libdevstat
libdisk Add MIPS support to libdisk 2008-05-04 22:24:40 +00:00
libdwarf Add a BSD licensed DWARF library for use by the DTrace clients. 2008-05-22 02:14:23 +00:00
libedit
libelf Relax the strict type check because gcc as distributed doesn't create 2008-05-23 07:35:36 +00:00
libexpat Update the lib/expat tree for the new v2.0.1 expat import. The bsdxml.h 2008-05-08 14:01:42 +00:00
libfetch Don't fail mistakenly with -r when we already have the whole file. 2008-10-24 07:56:01 +00:00
libftpio Don't set the _file member of the FILE when opening a FTP connection. 2008-05-08 20:05:30 +00:00
libgeom - Update the libgeom manpage with a description of g_device_path and 2008-09-08 06:27:00 +00:00
libgpib
libgssapi Add an implementation of the RPCSEC_GSS authentication protocol for RPC. This 2008-08-06 14:02:05 +00:00
libipsec
libipx
libkiconv
libkse Call the fcntl compatiblity wrapper from the thread library fcntl wrappers 2008-05-30 14:47:42 +00:00
libkvm Reduce code duplication: use calloc() intead of malloc() 2008-10-17 20:11:28 +00:00
libmagic
libmd
libmemstat
libmilter
libmp
libncp
libnetgraph
libngatm
libopie
libpam Add new heimdal-1.1 library. 2008-05-15 15:28:18 +00:00
libpcap Add links to all libpcap functions. 2008-08-28 11:48:49 +00:00
libpmc - Sparsely number enumerations 'pmc_cputype' and 'pmc_event' in order to 2008-10-09 14:55:45 +00:00
libproc Add the Makefile for the process library which was missed in the previous 2008-05-22 02:10:14 +00:00
libradius
librpcsec_gss Implement support for RPCSEC_GSS authentication to both the NFS client 2008-11-03 10:38:00 +00:00
librpcsvc
librt atomic_fetchadd_int works on unsigned quantities - change 2008-08-15 21:08:48 +00:00
libsbuf
libsdp Add mandatory "security description" SDP parameter to the PANU profile 2008-03-19 00:06:30 +00:00
libsm
libsmb
libsmdb
libsmutil
libstand Let libstand(3) build on ARM. 2008-10-14 09:53:47 +00:00
libtacplus
libtelnet
libthr Allow psaddr_t to be widened by using thr_pread_{int,long,ptr}, 2008-09-14 16:07:21 +00:00
libthread_db Allow psaddr_t to be widened by using thr_pread_{int,long,ptr}, 2008-09-14 16:07:21 +00:00
libufs
libugidfw
libusb20 Bring in USB4BSD, Hans Petter Selasky rework of the USB stack 2008-11-04 02:31:03 +00:00
libusbhid
libutil Like many other functions that handle sockaddrs, realhostname_sa() takes a 2008-11-05 12:13:10 +00:00
libvgl
libwrap
liby
libypclnt
libz
msun Remove some unused variables. 2008-08-08 00:21:27 +00:00
ncurses - Update for ncurses 5.6-20080509 2008-05-09 02:28:52 +00:00
Makefile add new build knobs and jigger some existing controls to improve 2008-09-21 22:02:26 +00:00
Makefile.inc