This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Misc portability improvements


Hi!

This patch includes miscellaneous portability improvements.  Although they're
made with GNU/kFreeBSD in mind, these are fairly generic and could apply to
other systems.

ChangeLog entry:

2005-08-22  Robert Millan  <robertmh@gnu.org>

	* manual/errno.texi: Add ENOATTR and EDOOFUS (of BSD origin).
	* sysdeps/gnu/errlist.c: Regenerate.
	* manual/llio.texi (read, write): Document EINVAL on unaligned access.
	* misc/sys/syslog.h: Move _PATH_LOG to /var/run/log (In some devfs
	implementations, creating fifos in /dev is not permitted).
	* include/features.h: #undef __GLIBC__ before attempting to #define it.
	* sysdeps/mach/hurd/nfs/nfs.h: Move to ...
	* sysdeps/generic/nfs/nfs.h: ... here.

	* sysdeps/unix/sysv/linux/sys/soundcard.h: Protect against multiple
	inclusion.
	* sysdeps/unix/sysv/linux/net/ppp-comp.h: Likewise.
	* sysdeps/unix/sysv/linux/nfs/nfs.h: Likewise.
	* sysdeps/unix/sysv/linux/sys/ultrasound.h: Likewise.
	* sysdeps/unix/sysv/linux/sys/vt.h: Likewise.

	* posix/sys/types.h: Declare vm_*_t types (of BSD origin).
	* sysdeps/generic/bits/types.h: Declare __vm_*_t types.
	* sysdeps/generic/bits/typesizes.h: #define corresponding __VM_*_T_TYPE
	macros.
	* sysdeps/mach/hurd/bits/typesizes.h: Likewise.
	* sysdeps/unix/sysv/linux/alpha/bits/typesizes.h: Likewise.
	* sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
	* sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.

Note: The protection against multiple inclussion is added so that distributors
can check for, say, _SYS_SOUNDCARD_H in <linux/soundcard.h> and issue a warning
recommending not to include this header directly.

Note2: The same change done in the typesizes.h headers is also needed for
LinuxThreads.  It is not included in the patch because linuxthreads is no
longer in CVS (I understand that it is not maintained anymore).

-- 
Robert Millan

Attachment: libc.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]