summaryrefslogtreecommitdiff
path: root/usr/src/head
diff options
context:
space:
mode:
authordg199075 <none@none>2006-11-22 08:04:27 -0800
committerdg199075 <none@none>2006-11-22 08:04:27 -0800
commitadecd3c68045d04dc367d30faf2eb5cac1f45d5a (patch)
tree9424c458db71c461ce377a83b5a8ba77eca9fd4d /usr/src/head
parent1039f409262fcc394c002cfbadf60149156d2bcb (diff)
downloadillumos-gate-adecd3c68045d04dc367d30faf2eb5cac1f45d5a.tar.gz
PSARC/2006/617 strnlen()
6478299 Add strnlen Contributed by Richard L. Hamilton
Diffstat (limited to 'usr/src/head')
-rw-r--r--usr/src/head/apptrace_impl.h9
-rw-r--r--usr/src/head/string.h2
2 files changed, 5 insertions, 6 deletions
diff --git a/usr/src/head/apptrace_impl.h b/usr/src/head/apptrace_impl.h
index 82c22e8a98..cf92bb2b2e 100644
--- a/usr/src/head/apptrace_impl.h
+++ b/usr/src/head/apptrace_impl.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 1998-2003 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -52,7 +51,6 @@ extern sigset_t abisigset;
extern void abilock(sigset_t *);
extern void abiunlock(sigset_t *);
-extern size_t strnlen(char const *, size_t);
extern int is_empty_string(char const *);
extern int (*abi_thr_main)(void);
@@ -66,7 +64,6 @@ extern int (*abi_mutex_unlock)(mutex_t *);
extern void abilock();
extern void abiunlock();
-extern size_t strnlen();
extern int is_empty_string();
extern int (*abi_thr_main)();
extern thread_t (*abi_thr_self)();
diff --git a/usr/src/head/string.h b/usr/src/head/string.h
index 3c4528ac1e..08b6d3da28 100644
--- a/usr/src/head/string.h
+++ b/usr/src/head/string.h
@@ -94,6 +94,7 @@ extern void *memccpy(void *_RESTRICT_KYWD, const void *_RESTRICT_KYWD,
extern int uucopy(const void *_RESTRICT_KYWD, void *_RESTRICT_KYWD, size_t);
extern int uucopystr(const void *_RESTRICT_KYWD, void *_RESTRICT_KYWD, size_t);
extern char *strsignal(int);
+extern size_t strnlen(const char *, size_t);
extern int ffs(int);
extern int strcasecmp(const char *, const char *);
extern int strncasecmp(const char *, const char *, size_t);
@@ -128,6 +129,7 @@ extern void *memccpy();
extern int uucopy();
extern int uucopystr();
extern char *strsignal();
+extern size_t strnlen();
extern int ffs();
extern int strcasecmp();
extern int strncasecmp();