aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2019-02-20 20:48:10 +0000
committerMatt Macy <mmacy@FreeBSD.org>2019-02-20 20:48:10 +0000
commit744799ead25f22feac7621611b98391d1c80037e (patch)
tree36171ccf2d57e4bc78b4a613a05dbd806cb603d7 /sys/sys
parent281bdc30dfd58fdc27455100024bc8591d4e2faa (diff)
downloadsrc-744799ead25f22feac7621611b98391d1c80037e.tar.gz
src-744799ead25f22feac7621611b98391d1c80037e.zip
Add non-sleepable strdup variant strdup_flags
debugfs expects to do non-sleepable allocations Reviewed by: hps@ MFC after: 1 week Sponsored by: iX Systems Differential Revision: https://reviews.freebsd.org/D19259
Notes
Notes: svn path=/head/; revision=344384
Diffstat (limited to 'sys/sys')
-rw-r--r--sys/sys/libkern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/libkern.h b/sys/sys/libkern.h
index 0d6b818f693c..123f6eeda3f3 100644
--- a/sys/sys/libkern.h
+++ b/sys/sys/libkern.h
@@ -173,6 +173,7 @@ char *strchr(const char *, int);
int strcmp(const char *, const char *);
char *strcpy(char * __restrict, const char * __restrict);
size_t strcspn(const char * __restrict, const char * __restrict) __pure;
+char *strdup_flags(const char *__restrict, struct malloc_type *, int);
char *strdup(const char *__restrict, struct malloc_type *);
char *strncat(char *, const char *, size_t);
char *strndup(const char *__restrict, size_t, struct malloc_type *);