diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-03-29 15:29:56 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2006-03-29 15:29:56 +0000 |
commit | 1023a2a9720ec262e5805e49054a5c2037ff5381 (patch) | |
tree | acda149802344dd970f51539a2d02e51d6e1b1c4 /usr.bin | |
parent | 09eb6192a5a08271cad5e11ed7505731a1492f06 (diff) |
- document return value of cmd | getline [var]
- document fflush w/o arg
from matthias kilian;
ok otto
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/awk/awk.1 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/usr.bin/awk/awk.1 b/usr.bin/awk/awk.1 index 7ad8d961b55..a2d7223f5d1 100644 --- a/usr.bin/awk/awk.1 +++ b/usr.bin/awk/awk.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: awk.1,v 1.23 2005/05/12 09:18:24 jmc Exp $ +.\" $OpenBSD: awk.1,v 1.24 2006/03/29 15:29:55 jmc Exp $ .\" EX/EE is a Bd .\" .\" Copyright (C) Lucent Technologies 1997 @@ -610,9 +610,14 @@ As long as the stream remains open, subsequent calls will read subsequent records from the stream. The stream remains open until explicitly closed with a call to .Fn close . -.It Fn fflush expr -Flushes any buffered output for the file or pipe -.Fa expr . +.Ic getline +returns 1 for a successful input, 0 for end of file, and \-1 for an error. +.It Fn fflush [expr] +Flushes any buffered output for the file, pipe +.Fa expr , +or all open files or pipes if +.Fa expr +is omitted. .Fa expr should match the string that was used to open the file or pipe. .It Ic getline |