summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>2001-09-16 21:35:07 +0000
committerdillon <dillon@FreeBSD.org>2001-09-16 21:35:07 +0000
commit41abc6d4e41c16aaf60fbf44b2ffe0c561b27318 (patch)
tree2e51a4885e624872098f817a7148743fbac950c4 /lib
parent42e6b3b99dc6f29192fb07408f500cc8f1eb91d9 (diff)
downloadFreeBSD-src-41abc6d4e41c16aaf60fbf44b2ffe0c561b27318.zip
FreeBSD-src-41abc6d4e41c16aaf60fbf44b2ffe0c561b27318.tar.gz
Implement __FBSDID()
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypt/crypt-md5.c6
-rw-r--r--lib/libcrypt/crypt.c6
-rw-r--r--lib/libcrypt/misc.c6
-rw-r--r--lib/libdevinfo/devinfo.c5
-rw-r--r--lib/libdevstat/devstat.c5
-rw-r--r--lib/libkvm/kvm.c6
-rw-r--r--lib/libkvm/kvm_alpha.c4
-rw-r--r--lib/libkvm/kvm_amd64.c6
-rw-r--r--lib/libkvm/kvm_file.c6
-rw-r--r--lib/libkvm/kvm_getloadavg.c6
-rw-r--r--lib/libkvm/kvm_getswapinfo.c12
-rw-r--r--lib/libkvm/kvm_i386.c6
-rw-r--r--lib/libkvm/kvm_proc.c3
-rw-r--r--lib/libkvm/kvm_sparc.c6
-rw-r--r--lib/libvgl/bitmap.c5
-rw-r--r--lib/libvgl/keyboard.c5
-rw-r--r--lib/libvgl/main.c5
-rw-r--r--lib/libvgl/mouse.c5
-rw-r--r--lib/libvgl/simple.c5
-rw-r--r--lib/libvgl/text.c5
20 files changed, 57 insertions, 56 deletions
diff --git a/lib/libcrypt/crypt-md5.c b/lib/libcrypt/crypt-md5.c
index 98bf0b4..32ad75b 100644
--- a/lib/libcrypt/crypt-md5.c
+++ b/lib/libcrypt/crypt-md5.c
@@ -7,10 +7,8 @@
* ----------------------------------------------------------------------------
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = \
-"$FreeBSD$";
-#endif /* LIBC_SCCS and not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <unistd.h>
#include <stdio.h>
diff --git a/lib/libcrypt/crypt.c b/lib/libcrypt/crypt.c
index b1a0bb1..4f77c75 100644
--- a/lib/libcrypt/crypt.c
+++ b/lib/libcrypt/crypt.c
@@ -24,10 +24,8 @@
* SUCH DAMAGE.
*/
-#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] =
-"$FreeBSD$";
-#endif /* LIBC_SCCS and not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <string.h>
diff --git a/lib/libcrypt/misc.c b/lib/libcrypt/misc.c
index 5cad45d..de2e024 100644
--- a/lib/libcrypt/misc.c
+++ b/lib/libcrypt/misc.c
@@ -25,11 +25,11 @@
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
- *
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
static unsigned char itoa64[] = /* 0 ... 63 => ascii - 64 */
"./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
diff --git a/lib/libdevinfo/devinfo.c b/lib/libdevinfo/devinfo.c
index b542702..650b7f8 100644
--- a/lib/libdevinfo/devinfo.c
+++ b/lib/libdevinfo/devinfo.c
@@ -23,10 +23,11 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
/*
* An interface to the FreeBSD kernel's bus/devce information interface.
*
diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c
index 0f1948a..915cbc5 100644
--- a/lib/libdevstat/devstat.c
+++ b/lib/libdevstat/devstat.c
@@ -24,10 +24,11 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/errno.h>
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 3ef71f0..a00c36f 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -35,12 +35,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
-#else
-static const char rcsid[] =
- "$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libkvm/kvm_alpha.c b/lib/libkvm/kvm_alpha.c
index 59bc2c6..5fcda15 100644
--- a/lib/libkvm/kvm_alpha.c
+++ b/lib/libkvm/kvm_alpha.c
@@ -1,4 +1,3 @@
-/* $FreeBSD$ */
/* $NetBSD: kvm_alpha.c,v 1.7.2.1 1997/11/02 20:34:26 mellon Exp $ */
/*
@@ -28,6 +27,9 @@
* rights to redistribute these changes.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/param.h>
#include <sys/lock.h>
#include <sys/mutex.h>
diff --git a/lib/libkvm/kvm_amd64.c b/lib/libkvm/kvm_amd64.c
index 5801e0c..eac32c0 100644
--- a/lib/libkvm/kvm_amd64.c
+++ b/lib/libkvm/kvm_amd64.c
@@ -35,12 +35,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
-#else
-static const char rcsid[] =
- "$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libkvm/kvm_file.c b/lib/libkvm/kvm_file.c
index b59ae0b..83882e07 100644
--- a/lib/libkvm/kvm_file.c
+++ b/lib/libkvm/kvm_file.c
@@ -31,12 +31,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm_file.c 8.1 (Berkeley) 6/4/93";
-#else
-static const char rcsid[] =
- "$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libkvm/kvm_getloadavg.c b/lib/libkvm/kvm_getloadavg.c
index 023fcd5..6ca3869 100644
--- a/lib/libkvm/kvm_getloadavg.c
+++ b/lib/libkvm/kvm_getloadavg.c
@@ -31,12 +31,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm_getloadavg.c 8.1 (Berkeley) 6/4/93";
-#else
-static const char rcsid[] =
- "$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libkvm/kvm_getswapinfo.c b/lib/libkvm/kvm_getswapinfo.c
index d23045f..c2cc5a0 100644
--- a/lib/libkvm/kvm_getswapinfo.c
+++ b/lib/libkvm/kvm_getswapinfo.c
@@ -7,16 +7,8 @@
* Copyright as found in /usr/src/COPYRIGHT in the FreeBSD source tree.
*/
-#ifndef lint
-static const char copyright[] =
- "@(#) Copyright (c) 1999\n"
- "Matthew Dillon. All rights reserved.\n";
-#endif /* not lint */
-
-#ifndef lint
-static const char rcsid[] =
- "$FreeBSD$";
-#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/lock.h>
diff --git a/lib/libkvm/kvm_i386.c b/lib/libkvm/kvm_i386.c
index 5801e0c..eac32c0 100644
--- a/lib/libkvm/kvm_i386.c
+++ b/lib/libkvm/kvm_i386.c
@@ -35,12 +35,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm_hp300.c 8.1 (Berkeley) 6/4/93";
-#else
-static const char rcsid[] =
- "$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c
index 815382c..48cf414 100644
--- a/lib/libkvm/kvm_proc.c
+++ b/lib/libkvm/kvm_proc.c
@@ -37,6 +37,9 @@
* $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)kvm_proc.c 8.3 (Berkeley) 9/23/93";
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libkvm/kvm_sparc.c b/lib/libkvm/kvm_sparc.c
index 7a538d8..df26ad7 100644
--- a/lib/libkvm/kvm_sparc.c
+++ b/lib/libkvm/kvm_sparc.c
@@ -35,12 +35,12 @@
* SUCH DAMAGE.
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm_sparc.c 8.1 (Berkeley) 6/4/93";
-#else
-static const char rcsid[] =
- "$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
diff --git a/lib/libvgl/bitmap.c b/lib/libvgl/bitmap.c
index 6498e26..f84139d 100644
--- a/lib/libvgl/bitmap.c
+++ b/lib/libvgl/bitmap.c
@@ -24,10 +24,11 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/types.h>
#include <signal.h>
#include <sys/fbio.h>
diff --git a/lib/libvgl/keyboard.c b/lib/libvgl/keyboard.c
index fe1286a..ed30dfa 100644
--- a/lib/libvgl/keyboard.c
+++ b/lib/libvgl/keyboard.c
@@ -24,10 +24,11 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioctl.h>
diff --git a/lib/libvgl/main.c b/lib/libvgl/main.c
index 5da2047..ec7f4fe 100644
--- a/lib/libvgl/main.c
+++ b/lib/libvgl/main.c
@@ -24,10 +24,11 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/signal.h>
diff --git a/lib/libvgl/mouse.c b/lib/libvgl/mouse.c
index f75f81f..d1315a7 100644
--- a/lib/libvgl/mouse.c
+++ b/lib/libvgl/mouse.c
@@ -24,10 +24,11 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <stdio.h>
#include <sys/types.h>
#include <sys/ioctl.h>
diff --git a/lib/libvgl/simple.c b/lib/libvgl/simple.c
index 3fe9d4d..7106764 100644
--- a/lib/libvgl/simple.c
+++ b/lib/libvgl/simple.c
@@ -24,10 +24,11 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <signal.h>
#include <sys/fbio.h>
#include "vgl.h"
diff --git a/lib/libvgl/text.c b/lib/libvgl/text.c
index 2117a60..d95f26e 100644
--- a/lib/libvgl/text.c
+++ b/lib/libvgl/text.c
@@ -24,10 +24,11 @@
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * $FreeBSD$
*/
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <stdio.h>
#include <sys/fbio.h>
#include "vgl.h"
OpenPOWER on IntegriCloud