summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkurt <kurt@openbsd.org>2013-04-05 12:59:54 +0000
committerkurt <kurt@openbsd.org>2013-04-05 12:59:54 +0000
commit585a69dbd41008c8489a1142bfb345374c398dae (patch)
treeb8bffa149a8d22f8f813e5af590016da2ce0ad3d /lib/libc
parent- Add ORIGIN, OSNAME, OSREL and PLATFORM substitution support for rpaths. (diff)
downloadwireguard-openbsd-585a69dbd41008c8489a1142bfb345374c398dae.tar.xz
wireguard-openbsd-585a69dbd41008c8489a1142bfb345374c398dae.zip
- Add comments regarding copies of these files also in libexec/ld.so
okay guenther@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/dirname.c4
-rw-r--r--lib/libc/gen/uname.c4
-rw-r--r--lib/libc/stdlib/realpath.c4
3 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/gen/dirname.c b/lib/libc/gen/dirname.c
index 11007ee0df6..059059a6e4d 100644
--- a/lib/libc/gen/dirname.c
+++ b/lib/libc/gen/dirname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirname.c,v 1.13 2005/08/08 08:05:33 espie Exp $ */
+/* $OpenBSD: dirname.c,v 1.14 2013/04/05 12:59:54 kurt Exp $ */
/*
* Copyright (c) 1997, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -21,6 +21,8 @@
#include <string.h>
#include <sys/param.h>
+/* A slightly modified copy of this file exists in libexec/ld.so */
+
char *
dirname(const char *path)
{
diff --git a/lib/libc/gen/uname.c b/lib/libc/gen/uname.c
index f55a468602d..09bc682fa5c 100644
--- a/lib/libc/gen/uname.c
+++ b/lib/libc/gen/uname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uname.c,v 1.8 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: uname.c,v 1.9 2013/04/05 12:59:54 kurt Exp $ */
/*-
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@@ -32,6 +32,8 @@
#include <sys/sysctl.h>
#include <sys/utsname.h>
+/* A slightly modified copy of this file exists in libexec/ld.so */
+
int
uname(struct utsname *name)
{
diff --git a/lib/libc/stdlib/realpath.c b/lib/libc/stdlib/realpath.c
index 534f48d4b4b..e0f9b123b35 100644
--- a/lib/libc/stdlib/realpath.c
+++ b/lib/libc/stdlib/realpath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: realpath.c,v 1.15 2012/09/13 15:39:05 deraadt Exp $ */
+/* $OpenBSD: realpath.c,v 1.16 2013/04/05 12:59:54 kurt Exp $ */
/*
* Copyright (c) 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru>
*
@@ -35,6 +35,8 @@
#include <string.h>
#include <unistd.h>
+/* A slightly modified copy of this file exists in libexec/ld.so */
+
/*
* char *realpath(const char *path, char resolved[PATH_MAX]);
*