PERFORCE change 122593 for review

Peter Wemm peter at FreeBSD.org
Sat Jun 30 22:27:37 UTC 2007


http://perforce.freebsd.org/chv.cgi?CH=122593

Change 122593 by peter at peter_overcee on 2007/06/30 22:27:01

	I may remove this later depending on whether it turns out
	safe to use getosreldate() or not.  A caching lookup of
	kern.osreldate that ignores $OSVERSION.

Affected files ...

.. //depot/projects/hammer/lib/libc/gen/Makefile.inc#28 edit
.. //depot/projects/hammer/lib/libc/gen/__getosreldate.c#1 add
.. //depot/projects/hammer/lib/libc/include/libc_private.h#10 edit

Differences ...

==== //depot/projects/hammer/lib/libc/gen/Makefile.inc#28 (text+ko) ====

@@ -4,7 +4,8 @@
 # machine-independent gen sources
 .PATH: ${.CURDIR}/${MACHINE_ARCH}/gen ${.CURDIR}/gen
 
-SRCS+=  __xuname.c _pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \
+SRCS+=  __getosreldate.c __xuname.c \
+	_pthread_stubs.c _rand48.c _spinlock_stub.c _thread_init.c \
 	alarm.c arc4random.c assert.c basename.c check_utility_compat.c \
 	clock.c closedir.c confstr.c \
 	crypt.c ctermid.c daemon.c devname.c dirname.c disklabel.c \

==== //depot/projects/hammer/lib/libc/include/libc_private.h#10 (text+ko) ====

@@ -169,4 +169,10 @@
  */
 extern void (*__cleanup)(void);
 
+/*
+ * Get kern.osreldate to detect ABI revisions.  Explicitly
+ * ignores value of $OSVERSION and caches result.
+ */
+extern int __getosreldate(void);
+
 #endif /* _LIBC_PRIVATE_H_ */


More information about the p4-projects mailing list