summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/glob.3c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/man/man3c/glob.3c')
-rw-r--r--usr/src/man/man3c/glob.3c41
1 files changed, 8 insertions, 33 deletions
diff --git a/usr/src/man/man3c/glob.3c b/usr/src/man/man3c/glob.3c
index 3c623b72d8..968593d341 100644
--- a/usr/src/man/man3c/glob.3c
+++ b/usr/src/man/man3c/glob.3c
@@ -1,13 +1,13 @@
'\" te
.\" Copyright (c) 1992, X/Open Company Limited. All Rights Reserved. Portions Copyright (c) 2003, Sun Microsystems, Inc. All Rights Reserved.
-.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
+.\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
.\" http://www.opengroup.org/bookstore/.
.\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html.
.\" This notice shall appear on any product containing this material.
.\" The contents of this file are subject to the terms of the 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. See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH glob 3C "1 Nov 2003" "SunOS 5.11" "Standard C Library Functions"
+.TH GLOB 3C "Nov 1, 2003"
.SH NAME
glob, globfree \- generate path names matching a pattern
.SH SYNOPSIS
@@ -91,23 +91,19 @@ value of \fIflags\fR is a bitwise inclusive \fBOR\fR of zero or more of the
following constants, which are defined in the header <\fBglob.h\fR>:
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_APPEND\fR\fR
.ad
.RS 17n
-.rt
Append path names generated to the ones from a previous call to \fBglob()\fR.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_DOOFFS\fR\fR
.ad
.RS 17n
-.rt
Make use of \fIpglob\(mi>\fR\fBgl_offs\fR\fI\&.\fR If this flag is set,
\fIpglob\(mi>\fR\fBgl_offs\fR is used to specify how many \fINULL\fR pointers
to add to the beginning of \fIpglob\(mi>\fR\fBgl_pathv\fR\fI\&.\fR In other
@@ -119,59 +115,49 @@ pointer.
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_ERR\fR\fR
.ad
.RS 17n
-.rt
Causes \fBglob()\fR to return when it encounters a directory that it cannot
open or read. Ordinarily, \fBglob()\fR continues to find matches.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_MARK\fR\fR
.ad
.RS 17n
-.rt
Each path name that is a directory that matches \fIpattern\fR has a slash
appended.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_NOCHECK\fR\fR
.ad
.RS 17n
-.rt
If \fIpattern\fR does not match any path name, then \fBglob()\fR returns a list
consisting of only \fIpattern\fR, and the number of matched path names is 1.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_NOESCAPE\fR\fR
.ad
.RS 17n
-.rt
Disable backslash escaping.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_NOSORT\fR\fR
.ad
.RS 17n
-.rt
Ordinarily, \fBglob()\fR sorts the matching path names according to the current
setting of the \fBLC_COLLATE\fR category. When this flag is used the order of
path names returned is unspecified.
@@ -256,36 +242,30 @@ those functions.)
The following constants are defined as error return values for \fBglob()\fR:
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_ABORTED\fR\fR
.ad
.RS 16n
-.rt
The scan was stopped because \fBGLOB_ERR\fR was set or
\fB(\fR\fI*errfunc\fR\fB)\fR returned non-zero.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOB_NOMATCH\fR\fR
.ad
.RS 16n
-.rt
The pattern does not match any existing path name, and \fBGLOB_NOCHECK\fR was
not set in flags.
.RE
.sp
.ne 2
-.mk
.na
\fB\fBGLOG_NOSPACE\fR\fR
.ad
.RS 16n
-.rt
An attempt to allocate memory failed.
.RE
@@ -303,12 +283,10 @@ and either \fIerrfunc\fR is a \fINULL\fR pointer or
The following values are returned by \fBglob()\fR:
.sp
.ne 2
-.mk
.na
\fB\fB0\fR\fR
.ad
.RS 12n
-.rt
Successful completion. The argument \fIpglob\(mi>\fR\fBgl_pathc\fR returns the
number of matched path names and the argument \fIpglob\(mi>\fR\fBgl_pathv\fR
contains a pointer to a null-terminated list of matched and sorted path names.
@@ -318,12 +296,10 @@ However, if \fIpglob\(mi>\fR\fBgl_pathc\fR is 0, the content of
.sp
.ne 2
-.mk
.na
\fB\fBnon-zero\fR\fR
.ad
.RS 12n
-.rt
An error has occurred. Non-zero constants are defined in <\fBglob.h\fR>. The
arguments \fIpglob\(mi>\fR\fBgl_pathc\fR and \fIpglob\(mi>\fR\fBgl_pathv\fR are
still set as defined above.
@@ -443,15 +419,14 @@ See \fBattributes\fR(5) for descriptions of the following attributes:
.sp
.TS
-tab() box;
-cw(2.75i) |cw(2.75i)
-lw(2.75i) |lw(2.75i)
-.
-ATTRIBUTE TYPEATTRIBUTE VALUE
+box;
+c | c
+l | l .
+ATTRIBUTE TYPE ATTRIBUTE VALUE
_
-Interface StabilityStandard
+Interface Stability Standard
_
-MT-LevelMT-Safe
+MT-Level MT-Safe
.TE
.SH SEE ALSO