diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2014-07-20 21:41:55 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2014-07-20 21:41:55 +0000 |
commit | 5e40eb53a6de42471b14f1e73be739f1acc8428d (patch) | |
tree | 8c51d6d33e23a3a891748ca75ab35ac9ee2168b2 /sys | |
parent | 43b96940ee4a95bd9ca411e91c2911ce14cfd74e (diff) |
Provide correct guidance on which header to use in the comments
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/endian.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/sys/endian.h b/sys/sys/endian.h index 8f3c2e87c0c..e4b90f1b16d 100644 --- a/sys/sys/endian.h +++ b/sys/sys/endian.h @@ -1,4 +1,4 @@ -/* $OpenBSD: endian.h,v 1.23 2014/07/12 16:25:08 guenther Exp $ */ +/* $OpenBSD: endian.h,v 1.24 2014/07/20 21:41:54 guenther Exp $ */ /*- * Copyright (c) 1997 Niklas Hallqvist. All rights reserved. @@ -25,12 +25,13 @@ */ /* - * Generic definitions for little- and big-endian systems. Other endianesses - * has to be dealt with in the specific machine/endian.h file for that port. + * Public definitions for little- and big-endian systems. + * This file should be included as <endian.h> in userspace and as + * <sys/endian.h> in the kernel. * - * This file is meant to be included from a little- or big-endian port's - * machine/endian.h after setting _BYTE_ORDER to either 1234 for little endian - * or 4321 for big.. + * System headers that need endian information but that can't or don't + * want to export the public names here should include <sys/_endian.h> + * and use the internal names: _BYTE_ORDER, _*_ENDIAN, etc. */ #ifndef _SYS_ENDIAN_H_ |