Mail Archives: djgpp-workers/2001/07/26/18:05:19
Hello.
Below is a documentation diff that:
* mentions globfree in the glob page;
* mentions glob in the globfree page.
OK to commit?
Thanks, bye, Rich =]
Index: src/libc/posix/glob/glob.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/glob/glob.txh,v
retrieving revision 1.3
diff -p -c -3 -r1.3 glob.txh
*** src/libc/posix/glob/glob.txh 1998/09/27 15:22:12 1.3
--- src/libc/posix/glob/glob.txh 2001/07/26 22:02:20
*************** can be accessed as @code{gl_pathv[0]}, @
*** 121,126 ****
--- 121,129 ----
@code{GLOB_DOOFFS} was set in @var{flags}, the new matches begin at
offset given by @code{gl_offs}.
+ @code{glob} allocates memory to hold the filenames. This memory should
be
+ freed by calling @code{globfree} (@pxref{globfree}).
+
@subheading Return Value
Zero on success, or one of these codes:
Index: src/libc/posix/glob/globfree.txh
===================================================================
RCS file: /cvs/djgpp/djgpp/src/libc/posix/glob/globfree.txh,v
retrieving revision 1.2
diff -p -c -3 -r1.2 globfree.txh
*** src/libc/posix/glob/globfree.txh 1998/09/27 15:22:12 1.2
--- src/libc/posix/glob/globfree.txh 2001/07/26 22:02:20
*************** void globfree(glob_t *_pglob);
*** 9,15 ****
@subheading Description
! Frees the memory associated with @code{_pglob}.
@subheading Portability
--- 9,16 ----
@subheading Description
! Frees the memory associated with @code{_pglob}, which should have been
! allocated by a call to @code{glob} (@pxref{glob}).
@subheading Portability
- Raw text -