1678 libc lint library is missing definition for glob/globfree
Reviewed by: Garrett D'Amore <
[email protected]>
Reviewed by: Albert Lee <
[email protected]>
Approved by: Richard Lowe <
[email protected]>
--- a/usr/src/lib/libc/port/llib-lc Fri Oct 28 20:17:44 2011 -0400
+++ b/usr/src/lib/libc/port/llib-lc Sat Oct 29 05:11:55 2011 +0400
@@ -21,6 +21,7 @@
/*
* Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
*/
/* LINTLIBRARY */
@@ -45,6 +46,7 @@
#include <fmtmsg.h>
#include <fnmatch.h>
#include <ftw.h>
+#include <glob.h>
#include <getwidth.h>
#include <grp.h>
#include <iconv.h>
@@ -1141,6 +1143,11 @@
* /usr/src/lib/libc/port/regex routines
*/
+/* glob.c */
+extern int glob(const char *restrict pattern, int flags,
+ int(*errfunc)(const char *epath, int eerrno), glob_t *restrict pglob);
+extern void globfree(glob_t *pglob);
+
/* regex.c */
char *regex(const char *regexp, const char *stringp, ...);
#ifdef __loc1