Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jun 2007 22:27:35 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 122593 for review
Message-ID:  <200706302227.l5UMRZHZ002320@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122593

Change 122593 by peter@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_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706302227.l5UMRZHZ002320>