diff options
author | 2004-11-28 07:16:54 +0000 | |
---|---|---|
committer | 2004-11-28 07:16:54 +0000 | |
commit | b51344c84184bc916b6fbdb702d1af5acc8084e0 (patch) | |
tree | 58a2971750edd7be9a5f433be973f0bc67fcc258 /lib/libc/string/strncpy.c | |
parent | support for syncing into libkern; tedu@ millert@ ok (diff) | |
download | wireguard-openbsd-b51344c84184bc916b6fbdb702d1af5acc8084e0.tar.xz wireguard-openbsd-b51344c84184bc916b6fbdb702d1af5acc8084e0.zip |
repair libkern support (again) and add rcsids
Diffstat (limited to 'lib/libc/string/strncpy.c')
-rw-r--r-- | lib/libc/string/strncpy.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/string/strncpy.c b/lib/libc/string/strncpy.c index 00493f4f7f5..d73008c6dbd 100644 --- a/lib/libc/string/strncpy.c +++ b/lib/libc/string/strncpy.c @@ -1,3 +1,5 @@ +/* $OpenBSD: strncpy.c,v 1.5 2004/11/28 07:16:54 mickey Exp $ */ + /*- * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. @@ -31,10 +33,14 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strncpy.c,v 1.4 2003/06/11 21:08:16 deraadt Exp $"; +static char *rcsid = "$OpenBSD: strncpy.c,v 1.5 2004/11/28 07:16:54 mickey Exp $"; #endif /* LIBC_SCCS and not lint */ +#if !defined(_KERNEL) && !defined(_STANDALONE) #include <string.h> +#else +#include <lib/libkern/libkern.h> +#endif /* * Copy src to dst, truncating or null-padding to always copy n bytes. |