1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1982-2007 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* David Korn <dgk@research.att.com> * 1N/A***********************************************************************/ 1N/A * time formatting related 1N/A char buff[
256];
/* Must be large enougth for |tmfmt()| */ 1N/A * mode formatting related 1N/A * field related typese and functions 1N/A short offset;
/* offset of field into data */ 1N/A * lookup field in field table 1N/A * class types and functions 1N/A int dsize;
/* size for data structure */ 1N/A /* handle recursive case */ 1N/A * ====================from here down is file class specific 1N/A"[-?\n@(#)$Id: open (AT&T Labs Research) 2007-05-07 $\n]" 1N/A"[-author?David Korn <dgk@research.att.com>]" 1N/A"[-author?Roland Mainz <roland.mainz@nrubsig.org>]" 1N/A"[+NAME? open - create a shell variable correspnding to a file]" 1N/A"[+DESCRIPTION?\bopen\b creates the compound variable \avar\a correspinding " 1N/A "to the file given by the pathname \afile\a. The elements of \avar\a " 1N/A "are the names of elements in the \astat\a structure with the \bst_\b " 1N/A"[+?\afile\a is opened (based on \b-r\b and/or \b-w\b) and the variable " 1N/A "\avar\a\b.fd\b is the file descriptor.]" 1N/A"[a:append?Open for append.]" 1N/A"[b:binary?Open in binary mode" 1N/A"[t:text?Open in text mode" 1N/A"[c:create?Open for create.]" 1N/A"[i:inherit?Open without the close-on-exec bit set.]" 1N/A"[I:noinherit?Open with the close-on-exec bit set.]" 1N/A"[r:read?Open with read access.]" 1N/A"[w:write?Open with write access.]" 1N/A"[m:mode]:[mode:=rwrwrw?Open with access mode \amode\a.]" 1N/A"[x:exclusive?Open exclusive.]" 1N/A"[N:nofollow?If the path names a symbolic link, open fails with ELOOP " 1N/A"[S:sync?Write I/O operations on the file descriptor complete as " 1N/A "defined by synchronized I/O file integrity completion" 1N/A"[T:trunc?If the file exists and is a regular file, and the file " 1N/A "is successfully opened read/write or write-only, its length is " 1N/A "truncated to 0 and the mode and owner are unchanged. It " 1N/A "has no effect on FIFO special files or terminal device " 1N/A "files. Its effect on other file types is " 1N/A "implementation-dependent. The result of using -T " 1N/A "with read-only files is undefined" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\btmpfile\b(1),\bdup\b(1),\bclose\b(1),\bstat\b(1),\bpoll\b(1),\bstat\b(2)]" 1N/A"[-?\n@(#)$Id: close (AT&T Labs Research) 2007-04-21 $\n]" 1N/A"[-author?Roland Mainz <roland.mainz@nrubsig.org>]" 1N/A"[+NAME? close - close a file descriptor]" 1N/A"[+DESCRIPTION?\bclose\b closes the file descriptor specified by fd.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bopen\b(1),\bdup\b(1),\btmpfile\b(1),\bpoll\b(1),\bstat\b(1)]" 1N/A"[-?\n@(#)$Id: tmpfile (AT&T Labs Research) 2007-05-07 $\n]" 1N/A"[-author?Roland Mainz <roland.mainz@nrubsig.org>]" 1N/A"[+NAME? tmpfile - create a shell variable correspnding to a temporary file]" 1N/A"[+DESCRIPTION?\btmpfile\b creates the compound variable \avar\a correspinding " 1N/A "to a temporary file. The elements of \avar\a " 1N/A "are the names of elements in the \astat\a structure with the \bst_\b " 1N/A"[i:inherit?Open without the close-on-exec bit set.]" 1N/A"[I:noinherit?Open with the close-on-exec bit set.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bopen\b(1),\bdup\b(1),\bclose\b(1),\bstat\b(1),\bstat\b(2)]" 1N/A"[-?\n@(#)$Id: dup (AT&T Labs Research) 2007-05-07 $\n]" 1N/A"[-author?Roland Mainz <roland.mainz@nrubsig.org>]" 1N/A"[+NAME? dup - duplicate an open file descriptor]" 1N/A"[+DESCRIPTION?The \bdup\b commands returns a new file descriptor having the " 1N/A "following in common with the original open file descriptor " 1N/A "fd: same open file (or pipe), same file pointer (that is, both file descriptors " 1N/A "share one file pointer) same access mode (read, write or read/write). " 1N/A "The file descriptor returned is the lowest one available.]" 1N/A"[i:inherit?Open without the close-on-exec bit set.]" 1N/A"[I:noinherit?Open with the close-on-exec bit set.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bopen\b(1),\btmpfile\b(1),\bclose\b(1),\bpoll\b(1),\bstat\b(1)]" 1N/A"[-?\n@(#)$Id: stat (AT&T Labs Research) 2007-05-07 $\n]" 1N/A"[-author?David Korn <dgk@research.att.com>]" 1N/A"[-author?Roland Mainz <roland.mainz@nrubsig.org>]" 1N/A"[+NAME? stat - get file status]" 1N/A"[+DESCRIPTION?\bstat\b creates the compound variable \avar\a correspinding " 1N/A "to the file given by the pathname \afile\a. The elements of \avar\a " 1N/A "are the names of elements in the \astat\a structure with the \bst_\b " 1N/A"[l:lstat?If the the named file is a symbolic link returns information about " 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bopen\b(1),\btmpfile\b(1),\bdup\b(1),\bclose\b(1),\bpoll\b(1),\bstat\b(2),\blstat\b(2)]" 1N/A"[-?\n@(#)$Id: rewind (AT&T Labs Research) 2007-05-07 $\n]" 1N/A"[-author?Roland Mainz <roland.mainz@nrubsig.org>]" 1N/A"[+NAME? rewind - reset file position indicator in a stream]" 1N/A"[+DESCRIPTION?The \brewind\b command will move the file pointer of fd to position 0.]" 1N/A "[+>0?An error occurred.]" 1N/A"[+SEE ALSO?\bopen\b(1),\btmpfile\b(1),\bdup\b(1),\bclose\b(1),\bstat\b(1),\bstat\b(2)]"