Visit Our UNIX and Linux User Community

Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ferror(3s) [hpux man page]

ferror(3S)																ferror(3S)

NAME
ferror(), feof(), clearerr(), ferror_unlocked(), feof_unlocked(), clearerr_unlocked() - stream status inquiries SYNOPSIS
Obsolescent Interfaces DESCRIPTION
Returns nonzero when an I/O error has previously occurred reading from or writing to the named stream, otherwise zero. Unless cleared by or unless the spe- cific stdio routine so indicates, the error indication lasts until the stream is closed. Returns nonzero when EOF has previously been detected reading the named input stream, otherwise zero. Resets the error indicator and EOF indicator on the named stream to zero. Obsolescent Interfaces and stream status inquiries. WARNINGS
All these routines are implemented both as library functions and as macros. The macro versions, which are used by default, are defined in To obtain the library function, either use a to remove the macro definition or, if compiling in ANSI-C mode, enclose the function name in parentheses or use the function address. The following example illustrates each of these methods : Reentrant Interfaces If is defined before including the locked versions of the library functions for and are used by default. and are obsolescent interfaces supported only for compatibility with existing DCE applications. New multithreaded applications should use and SEE ALSO
open(2), flockfile(3S), fopen(3S), thread_safety(5). STANDARDS CONFORMANCE
ferror(3S)

Check Out this Related Man Page

ferror(3S)																ferror(3S)

NAME
ferror(), feof(), clearerr(), ferror_unlocked(), feof_unlocked(), clearerr_unlocked() - stream status inquiries SYNOPSIS
Obsolescent Interfaces DESCRIPTION
Returns nonzero when an I/O error has previously occurred reading from or writing to the named stream, otherwise zero. Unless cleared by or unless the spe- cific stdio routine so indicates, the error indication lasts until the stream is closed. Returns nonzero when EOF has previously been detected reading the named input stream, otherwise zero. Resets the error indicator and EOF indicator on the named stream to zero. Obsolescent Interfaces and stream status inquiries. WARNINGS
All these routines are implemented both as library functions and as macros. The macro versions, which are used by default, are defined in To obtain the library function, either use a to remove the macro definition or, if compiling in ANSI-C mode, enclose the function name in parentheses or use the function address. The following example illustrates each of these methods : Reentrant Interfaces If is defined before including the locked versions of the library functions for and are used by default. and are obsolescent interfaces supported only for compatibility with existing DCE applications. New multithreaded applications should use and SEE ALSO
open(2), flockfile(3S), fopen(3S), thread_safety(5). STANDARDS CONFORMANCE
ferror(3S)

11 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sort a big data file

Hello, I have a big data file (160 MB) full of records with pipe(|) delimited those fields. I`m sorting the file on the first field. I'm trying to sort with "sort" command and it brings me 6 minutes. I have tried with some transformation methods in perl but it results "Out of memory". I was... (2 Replies)
Discussion started by: rubber08
2 Replies

2. Shell Programming and Scripting

Encript Timestamp with blowfish

Good afternoon to you all I need help I need a script that will allow to encrypt the system´s timestamp; I have to use a pre-shared key to cipher the timestamp, so basically I need: 1st) cipher with a pre-shared key 2nd) encrypt the timestamp 3rd) encode on a base64 the output... (1 Reply)
Discussion started by: zarahel
1 Replies

3. UNIX for Advanced & Expert Users

nth date

Hi I need to get the date of 50th day from the last friday for one of the calculation into variable in Unix script. The format required is YYYYMMDD. I have solaris OS and dont have GNU date. I would appreciate if some one can help me with this. It can be a onliner or function or block of code. ... (7 Replies)
Discussion started by: lijjumathew
7 Replies

4. Programming

Malloc problem with fread() to read file to structure in C

Hello, I am trying to read a text file into linked list, but always got the first and last records wrong. 1) The problem looks related to the initialization of the node temp with malloc(), but could not figure it out. No error/warning at compiling, though. 2) The output file is empty,... (10 Replies)
Discussion started by: yifangt
10 Replies

5. Shell Programming and Scripting

How to replace all but the first 3 characters with sed?

This seems like it should be an easy problem, but for some reason I am struggling with the solution. I simply want to replace all characters after the first 3 characters with another character, preferably with sed. Thanks in advance. Like this, but producing the proper number of *'s: sed... (30 Replies)
Discussion started by: leolson
30 Replies

6. Programming

Segfault When Parsing Delimiters In C

Another project, another bump in the road and another chance to learn. I've been trying to open gzipped files and parse data from them and hit a snag. I have data in gzips with a place followed by an ip or ip range sort of like this: Some place:x.x.x.x-x.x.x.x I was able to modify some code... (6 Replies)
Discussion started by: Azrael
6 Replies

7. Shell Programming and Scripting

Script solution - running Excel macro in SLES

Hello all, I'm here again with new trouble. I need to find any possible way to apply excel macro on excel file in SLES server, or to convert that macro somehow. Could you please share your ideas, and help me with this? Thank you in advance ps (attached macro is with changed extension,... (14 Replies)
Discussion started by: bigbrobg
14 Replies

8. Shell Programming and Scripting

Gamit installation error: showing Failure in make_gamit -- install_software terminated

what i should to do next? read full query first please!! harshbhu@harshbhu:/usr/local/gg/10.6/updates/Source$ sudo ./install_software sudo: unable to resolve host harshbhu install_software version 2017/06/29 GAMIT and GLOBK to be installed into /usr/local/gg/10.6/updates/Source If... (0 Replies)
Discussion started by: ankit lohar
0 Replies

9. Programming

Gamit installation error: /libraries/comlib/com_lib.a(pickfn_gftn.o)' is incompatible with i386:x86-

harshbhu@harshbhu:/usr/local/gg/10.6/updates/Source$ sudo ./install_softwaresudo: unable to resolve host harshbhu password for harshbhu: install_software version 2017/06/29 GAMIT and GLOBK to be installed into /usr/local/gg/10.6/updates/Source If you need help with command line... (1 Reply)
Discussion started by: ankit lohar
1 Replies

10. Programming

Python- Client and server certificate validation

Hello Team, I have to verify the Client server certificate validation in HTTPS request(SSL hand shake before the actual HTTPS post request), And tried various ways and failed to verify it successfully. here are the trials and errors, resp = requests.post(url, req, verify=True, timeout=5,... (0 Replies)
Discussion started by: chandana.hs
0 Replies

11. Programming

creating separate output file for each input file in python

Experts, Need your help for this. Please support My motive is to create seperate output file for each Input Files(File 1 and File2) in another folder say(/tmp/finaloutput) Input files File 1(1.1.1.1.csv) a,b,c 43,17104773,3 45,17104234,4 File 2(2.2.2.2.csv) a,b,c 43,17104773,1... (2 Replies)
Discussion started by: as7951
2 Replies

Featured Tech Videos