Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include strndup() is part of XSI from The Open Group Base Sp...
details: https://anonhg.NetBSD.org/src/rev/6b64bdf023b8
branches: trunk
changeset: 344028:6b64bdf023b8
user: leot <leot%NetBSD.org@localhost>
date: Thu Mar 10 18:53:48 2016 +0000
description:
strndup() is part of XSI from The Open Group Base Specification Issue 7 and had
a similar history of stpcpy(), stpncpy() and strnlen().
Make it visible under XOPEN_SOURCE>=700 too (not just _NETBSD_SOURCE).
ok dholland@
diffstat:
include/string.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 4ae34c936ac6 -r 6b64bdf023b8 include/string.h
--- a/include/string.h Thu Mar 10 14:40:00 2016 +0000
+++ b/include/string.h Thu Mar 10 18:53:48 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: string.h,v 1.49 2014/09/24 18:16:36 christos Exp $ */
+/* $NetBSD: string.h,v 1.50 2016/03/10 18:53:48 leot Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -83,6 +83,7 @@
defined(_NETBSD_SOURCE)
char *stpcpy(char * __restrict, const char * __restrict);
char *stpncpy(char * __restrict, const char * __restrict, size_t);
+char *strndup(const char *, size_t);
size_t strnlen(const char *, size_t);
#ifndef __STRSIGNAL_DECLARED
#define __STRSIGNAL_DECLARED
@@ -101,7 +102,6 @@
size_t strlcpy(char *, const char *, size_t);
char *strsep(char **, const char *);
char *stresep(char **, const char *, int);
-char *strndup(const char *, size_t);
char *strnstr(const char *, const char *, size_t);
void *memrchr(const void *, int, size_t);
void *explicit_memset(void *, int, size_t);
Home |
Main Index |
Thread Index |
Old Index