#include "f2c.h"#include "fio.h"Include dependency graph for due.c:

Go to the source code of this file.
Functions | |
| int | c_due (cilist *a) |
| integer | s_rdue (cilist *a) |
| integer | s_wdue (cilist *a) |
| integer | e_rdue (Void) |
| integer | e_wdue (Void) |
Definition at line 11 of file due.c.
References a, DIR, err, f__cf, f__curunit, f__elist, f__external, f__formatted, f__init, f__recpos, f__sequential, f__units, f_init(), fk_open(), FSEEK, MXUNIT, NULL, OFF_T, SEEK_SET, unit::uend, unit::ufd, unit::ufmt, UNF, unit::url, and unit::useek.
Referenced by s_rdue(), and s_wdue().
00013 { 00014 if(!f__init) f_init(); 00015 f__sequential=f__formatted=f__recpos=0; 00016 f__external=1; 00017 f__curunit = &f__units[a->ciunit]; 00018 if(a->ciunit>=MXUNIT || a->ciunit<0) 00019 err(a->cierr,101,"startio"); 00020 f__elist=a; 00021 if(f__curunit->ufd==NULL && fk_open(DIR,UNF,a->ciunit) ) err(a->cierr,104,"due"); 00022 f__cf=f__curunit->ufd; 00023 if(f__curunit->ufmt) err(a->cierr,102,"cdue") 00024 if(!f__curunit->useek) err(a->cierr,104,"cdue") 00025 if(f__curunit->ufd==NULL) err(a->cierr,114,"cdue") 00026 if(a->cirec <= 0) 00027 err(a->cierr,130,"due") 00028 FSEEK(f__cf,(OFF_T)(a->cirec-1)*f__curunit->url,SEEK_SET); 00029 f__curunit->uend = 0; 00030 return(0); 00031 }
Here is the call graph for this function:

Here is the caller graph for this function:

| integer e_rdue | ( | Void | ) |
Definition at line 58 of file due.c.
References cilist::cierr, err, f__cf, f__curunit, f__elist, f__recpos, FSEEK, FTELL, OFF_T, SEEK_CUR, and unit::url.
Referenced by e_wdue().
00059 { 00060 if(f__curunit->url==1 || f__recpos==f__curunit->url) 00061 return(0); 00062 FSEEK(f__cf,(OFF_T)(f__curunit->url-f__recpos),SEEK_CUR); 00063 if(FTELL(f__cf)%f__curunit->url) 00064 err(f__elist->cierr,200,"syserr"); 00065 return(0); 00066 }
Here is the caller graph for this function:

| integer e_wdue | ( | Void | ) |
Definition at line 35 of file due.c.
References a, c_due(), err, errno, f__curunit, f__nowreading(), f__reading, n, and unit::uwrt.
00037 { 00038 int n; 00039 f__reading=1; 00040 if(n=c_due(a)) return(n); 00041 if(f__curunit->uwrt && f__nowreading(f__curunit)) 00042 err(a->cierr,errno,"read start"); 00043 return(0); 00044 }
Here is the call graph for this function:

Definition at line 48 of file due.c.
References a, c_due(), err, errno, f__curunit, f__nowwriting(), f__reading, n, and unit::uwrt.
00050 { 00051 int n; 00052 f__reading=0; 00053 if(n=c_due(a)) return(n); 00054 if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit)) 00055 err(a->cierr,errno,"write start"); 00056 return(0); 00057 }
Here is the call graph for this function:

1.5.1