changeset 13497:205481e35e49

1678 libc lint library is missing definition for glob/globfree Reviewed by: Garrett D'Amore <garrett@damore.org> Reviewed by: Albert Lee <trisk@opensolaris.org> Approved by: Richard Lowe <richlowe@richlowe.net>
author Yuri Pankov <yuri.pankov@nexenta.com>
date Sat, 29 Oct 2011 05:11:55 +0400
parents 732144cfe2ef
children e702644ca141
files usr/src/lib/libc/port/llib-lc
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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