Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

getfsspec(3x) [hpux man page]

getfsent(3X)															      getfsent(3X)

NAME
getfsent(), getfsspec(), getfsfile(), getfstype(), setfsent(), endfsent() - get file system descriptor file entry SYNOPSIS
Remarks: These routines are included only for compatibility with 4.2 BSD. For maximum portability and improved functionality, new applications should use the getmntent(3X) library routines. DESCRIPTION
and each returns a pointer to an object with the following structure containing the broken-out fields of a line in the file. The structure is declared in the header file: The fields have meanings described in fstab(4). If the block special file name, the file system directory name, and the type are not all defined on the associated line in these routines return pointers to NULL in the and fields. If the pass number or the backup frequency field are not present on the line, these routines return -1 in the corresponding structure member. is reserved for future use. Reads the next line of the file, opening the file if necessary. Opens and rewinds the file. Closes the file. Sequentially searches from beginning of file until a matching special file name is found, or until EOF is encountered. Sequentially searches from the beginning of the file until a matching file system file name is found, or until EOF is encountered. Sequentially searches from the beginning of the file until a matching file system type field is found, or until EOF is encountered. DIAGNOSTICS
A null pointer is returned on EOF, invalid entry, or error. WARNINGS
Since all information is contained in a static area, it must be copied to be saved. Obsolescent Interfaces and are to be obsoleted at a future date. AUTHOR
was developed by HP and the University of California, Berkeley. FILES
SEE ALSO
fstab(4). TO BE OBSOLETED getfsent(3X)

Check Out this Related Man Page

getfsent(3X)															      getfsent(3X)

NAME
getfsent(), getfsspec(), getfsfile(), getfstype(), setfsent(), endfsent() - get file system descriptor file entry SYNOPSIS
Remarks: These routines are included only for compatibility with 4.2 BSD. For maximum portability and improved functionality, new applications should use the getmntent(3X) library routines. DESCRIPTION
and each returns a pointer to an object with the following structure containing the broken-out fields of a line in the file. The structure is declared in the header file: The fields have meanings described in fstab(4). If the block special file name, the file system directory name, and the type are not all defined on the associated line in these routines return pointers to NULL in the and fields. If the pass number or the backup frequency field are not present on the line, these routines return -1 in the corresponding structure member. is reserved for future use. Reads the next line of the file, opening the file if necessary. Opens and rewinds the file. Closes the file. Sequentially searches from beginning of file until a matching special file name is found, or until EOF is encountered. Sequentially searches from the beginning of the file until a matching file system file name is found, or until EOF is encountered. Sequentially searches from the beginning of the file until a matching file system type field is found, or until EOF is encountered. DIAGNOSTICS
A null pointer is returned on EOF, invalid entry, or error. WARNINGS
Since all information is contained in a static area, it must be copied to be saved. Obsolescent Interfaces and are to be obsoleted at a future date. AUTHOR
was developed by HP and the University of California, Berkeley. FILES
SEE ALSO
fstab(4). TO BE OBSOLETED getfsent(3X)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

\n after EOF

Hello all, I have unix file that ends with the following EOF '9999999999' I want to remove the '\n' character after EOF. What is the command that should be included in the script, before sending the file? will this work: $ echo "<99999999999>\c" >> <filename> thanks in advance. (3 Replies)
Discussion started by: priya12
3 Replies

2. Shell Programming and Scripting

line 85: unexpected EOF while looking for matching `"'

hello everyone...im having this problem with unexpected EOF with line 85 which is..i cant see whats wrong with it..can any1 plz help me out. read -p "$p1 please enter the number of tries you wish to have:" lifeline function main() { guessnum=0 read -p "Please... (6 Replies)
Discussion started by: Freakhan
6 Replies

3. UNIX for Dummies Questions & Answers

unexpected EOF

hello everyone...im having this problem with unexpected EOF with line 85 which is..i cant see whats wrong with it..can any1 plz help me out. read -p "$p1 please enter the number of tries you wish to have:" lifeline function main() { guessnum=0 read -p "Please enter if its sinle player game... (1 Reply)
Discussion started by: Freakhan
1 Replies

4. UNIX for Dummies Questions & Answers

Urgent..!!

What is the output for this prgm? $vi test<<EOF >:5 >dd >:wq! >EOF $ (2 Replies)
Discussion started by: karthi_g
2 Replies

5. Shell Programming and Scripting

Help to resolve unexpected EOF while looking for matching `"' error

Hi, can someone kindly look into my copy script and figure out why am i getting a "unexpected EOF while looking for matching `"' error message #!/bin/ksh -x cd /home/goldenga/test/flag37 if ; then rm copied.ok cd /home/goldenga/test Upper=`ls -t|grep 'qw*'|cut -d "w" -f 2|head... (4 Replies)
Discussion started by: NDalal007
4 Replies

6. Shell Programming and Scripting

Unexpected EOF while loooking for matching '"

Hi everyone, I'm really new in shell scripting and having trouble resolving this error. Can someone please tell me why I'm getting these errors? Error Message: ./test.sh: line 50: unexpected EOF while looking for matching `'' ./test.sh: line 53: syntax error: unexpected end of file ... (4 Replies)
Discussion started by: simonirang
4 Replies