"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "extension/readdir.3am" between
gawk-5.0.1.tar.xz and gawk-5.1.0.tar.xz

About: GNU awk - pattern scanning and processing language.

readdir.3am  (gawk-5.0.1.tar.xz):readdir.3am  (gawk-5.1.0.tar.xz)
.TH READDIR 3am "Mar 17 2019" "Free Software Foundation" "GNU Awk Extension Modu les" .TH READDIR 3am "Oct 30 2019" "Free Software Foundation" "GNU Awk Extension Modu les"
.SH NAME .SH NAME
readdir \- directory input parser for gawk readdir \- directory input parser for gawk
.SH SYNOPSIS .SH SYNOPSIS
.ft CW .ft CW
@load "readdir" @load "readdir"
.ft R .ft R
.SH DESCRIPTION .SH DESCRIPTION
The The
.I readdir .I readdir
extension extension
skipping to change at line 45 skipping to change at line 45
for a symbolic link, for a symbolic link,
.B s .B s
for a socket. for a socket.
.PP .PP
On systems without the file type information, the extension falls back On systems without the file type information, the extension falls back
to calling to calling
.IR stat (2), .IR stat (2),
in order to provide the information. in order to provide the information.
Thus the third field should never be Thus the third field should never be
.BR u . .BR u .
.PP
By default, if a directory cannot be opened (due to permission problems,
for example),
.I gawk
will exit.
As with regular files, this situation can be handled using a
.B BEGINFILE
rule that checks
.B ERRNO
and prints an error or otherwise handles the problem.
.\" .SH BUGS .\" .SH BUGS
.SH EXAMPLE .SH EXAMPLE
.ft CW .ft CW
.nf .nf
@load "readdir" @load "readdir"
\&... \&...
BEGIN { FS = "/" } BEGIN { FS = "/" }
{ print "file name is", $2 } { print "file name is", $2 }
.fi .fi
.ft R .ft R
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)