From 0bb1cc7eeccb58d82ac6a19e80e41a3781810c28 Mon Sep 17 00:00:00 2001 From: aw148015 Date: Mon, 27 Oct 2008 11:14:30 -0700 Subject: 6720351 FileBench should have a Video Server like workload 6725102 FileBench needs some directory manipulation flowops 6753319 SUNWfilebench package dependency issue in snv_99 --- usr/src/cmd/filebench/common/utils.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'usr/src/cmd/filebench/common/utils.h') diff --git a/usr/src/cmd/filebench/common/utils.h b/usr/src/cmd/filebench/common/utils.h index d2a8b655a3..cb9e39a9fc 100644 --- a/usr/src/cmd/filebench/common/utils.h +++ b/usr/src/cmd/filebench/common/utils.h @@ -19,15 +19,13 @@ * CDDL HEADER END */ /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. + * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ #ifndef _FB_UTILS_H #define _FB_UTILS_H -#pragma ident "%Z%%M% %I% %E% SMI" - #include "config.h" #include @@ -41,6 +39,14 @@ extern "C" { extern char *fb_stralloc(char *str); +#ifdef sun +#define fb_strlcat strlcat +#define fb_strlcpy strlcpy +#else +extern size_t fb_strlcat(char *dst, const char *src, size_t dstsize); +extern size_t fb_strlcpy(char *dst, const char *src, size_t dstsize); +#endif /* sun */ + #ifdef __cplusplus } #endif -- cgit v1.2.3