Searched refs:statb (Results 1 - 25 of 28) sorted by relevance

12

/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/include/
H A Dfileopen.h22 int Checkread( const char *file, struct stat *statb );
23 int Checkwrite( const char *file, struct stat *statb, int rw, int create,
26 const char *file, struct stat *statb, int rw, int create, int nodelay );
H A Dcheckpc.h25 int Fix_create_dir( char *path, struct stat *statb );
H A Dlpr.h56 int Check_lpr_printable(char *file, int fd, struct stat *statb, int format );
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/common/
H A Dfileopen.c31 * int Checkread( char *file, struct stat *statb )
36 int Checkread( const char *file, struct stat *statb )
52 memset( statb, 0, sizeof(struct stat) );
55 if( status >= 0 && fstat( fd, statb ) < 0 ) {
63 if( status >= 0 && !(S_ISREG(statb->st_mode))){
66 file, statb->st_mode );
75 DEBUG3("Checkread: '%s' fd %d, size %0.0f", file, fd, (double)(statb->st_size) );
82 * int Checkwrite( char *file, struct stat *statb, int rw, int create,
89 * status in *statb
91 int Checkwrite( const char *file, struct stat *statb, in argument
190 Checkwrite_timeout(int timeout, const char *file, struct stat *statb, int rw, int create, int nodelay ) argument
[all...]
H A Dcheckpc.c57 struct stat statb; local
195 if( stat( path, &statb ) ){
210 struct stat statb; int i; local
213 if( fstat(i,&statb) == 0 ){
214 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
240 struct stat statb; int i; local
243 if( fstat(i,&statb) == 0 ){
244 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
255 struct stat statb; local
258 if( ! stat(path,&statb) ){
297 struct stat statb; local
312 struct stat statb; int i; local
544 struct stat statb; local
613 struct stat statb; local
731 struct stat statb; local
877 struct stat statb; local
1006 struct stat statb; local
1495 struct stat statb; local
1519 struct stat statb; local
[all...]
H A Dinitialize.c82 struct stat statb; local
86 if( fstat(i,&statb) == 0 ){
87 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
131 struct stat statb; local
135 if( fstat(i,&statb) == 0 ){
136 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
148 struct stat statb; local
152 if( fstat(i,&statb) == 0 ){
153 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
H A Dprintjob.c130 struct stat statb; local
153 if( fstat(i,&statb) == 0 ){
154 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
383 } else if( (fd = Checkread( openname, &statb )) < 0 ){
390 transfername, (double)statb.st_size, format, filter_title );
416 if( fstat(fd, &statb ) == -1 ){
421 transfername, (double)statb.st_size );
435 for( i = 0; i < 20; ++i ) if( fstat(i,&statb) == 0 )
436 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
492 if_error[1] = Checkwrite( Status_file_DYN, &statb, O_WRONL
726 struct stat statb; local
1026 struct stat statb; int i; local
1088 struct stat statb; int i; local
1130 struct stat statb; local
1258 struct stat statb; local
[all...]
H A Dlpr.c103 struct stat statb; local
107 if( fstat(i,&statb) == 0 ){
108 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
145 struct stat statb; local
149 if( fstat(i,&statb) == 0 ){
150 LOGDEBUG(" fd %d (0%o)", i, statb.st_mode&S_IFMT);
206 struct stat statb; local
222 tempfd = Checkread( tempfile, &statb );
228 DEBUG2("lpr: jobs size now %0.0f", (double)(statb.st_size));
229 job_size = statb
1115 struct stat statb; local
1172 struct stat statb; local
1230 Check_lpr_printable(char *file, int fd, struct stat *statb, int format ) argument
[all...]
H A Duser_auth.c194 struct stat statb; local
200 if( (tempfd = Checkread(tempfile,&statb)) < 0){
230 if( (tempfd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){
264 struct stat statb; local
289 if( (tempfd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0 ){
325 if( (tempfd = Checkread(tempfile,&statb)) < 0 ){
518 struct stat statb; local
619 if( (tempfd = Checkread(tempfile,&statb)) < 0){
705 if( (tempfd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){
760 struct stat statb; local
1034 struct stat statb; local
1426 struct stat statb; local
1584 struct stat statb; local
[all...]
H A Dsendauth.c84 struct stat statb; local
135 if( stat(tempfile,&statb) ){
140 SNPRINTF( buffer,sizeof(buffer))" %0.0f",(double)(statb.st_size) );
154 if( (fd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){
223 if( (fd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){
232 if( (fd = Checkread(tempfile,&statb)) < 0 ){
H A Dlpd_secure.c65 struct stat statb; local
150 tempfd = Checkwrite( Log_file_DYN, &statb,0,0,0);
266 struct stat statb; local
269 if( (fd = Checkread(tempfile,&statb)) < 0 ){
332 if( (fd = Checkread(tempfile, &statb) ) < 0 ){
340 if( (fd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0 ){
348 if( (fd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0 ){
368 if( (fd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0 ){
H A Dssl_auth.c143 struct stat statb; local
157 if( s && stat(s,&statb) ){
180 struct stat statb; local
208 if( (fd = Checkread( file, &statb )) < 0 ){
237 if( file ) fd = Checkread( file, &statb );
255 if( certpath && stat(certpath,&statb) ) cp = 0;
256 if( certfile && stat(certfile,&statb) ) cf = 0;
284 if( (cp = mycert) && stat(mycert,&statb) ) cp = 0;
731 struct stat statb; local
752 if( (tempfd = Checkread(tempfile,&statb)) <
858 struct stat statb; local
[all...]
H A Dlpd_logger.c79 struct stat statb; local
114 if( (fd = Checkread( Queue_control_file_DYN, &statb )) > 0 ){
126 if( (fd = Checkread( Queue_status_file_DYN, &statb )) > 0 ){
178 struct stat statb; local
211 input_fd = Checkread( tempfile, &statb );
H A Daccounting.c73 struct stat statb; local
144 tempfd = Checkwrite( Accounting_file_DYN, &statb, 0, Create_files_DYN, 0 );
H A Dgetqueue.c182 struct stat statb; local
193 if( maxsize && fstat(fd, &statb) == 0
194 && maxsize< statb.st_size/1024 ){
222 struct stat statb; local
227 if( (fd = Checkread( file, &statb )) >= 0 ){
325 struct stat statb; local
349 if( stat(path,&statb) ){
352 i = statb.st_mtime;
354 j = statb.st_mtimespec.tv_nsec/1000;
357 j = statb
511 struct stat statb; local
1472 struct stat statb; local
1591 struct stat statb; local
1692 struct stat statb; local
2189 struct stat statb; local
[all...]
H A Dkrb5_auth.c94 struct stat statb; local
107 if( (fd = Checkread(keytabfile,&statb)) == -1 ){
208 fd = Checkwrite( file, &statb, O_WRONLY|O_TRUNC, 1, 0 );
278 struct stat statb; local
286 fd = Checkread( file, &statb );
293 DEBUG1( "server_krb5_status: sock '%d', file size %0.0f", sock, (double)(statb.st_size));
382 struct stat statb; local
681 fd = Checkread( file, &statb );
691 DEBUG1( "client_krb5_auth: opened for read %s, fd %d, size %0.0f", file, fd, (double)statb.st_size );
733 fd = Checkwrite( file, &statb, O_WRONL
1449 struct stat statb; local
[all...]
H A Dlpd_rcvjob.c124 struct stat statb; local
204 fd = Checkwrite( Log_file_DYN, &statb,0,0,0);
254 fifo_fd = Checkwrite( path, &statb, O_RDWR, 1, 0 );
579 struct stat statb; local
627 fd = Checkwrite( Log_file_DYN, &statb,0,0,0);
786 struct stat statb; local
788 if( fstat( fd, &statb) < 0 ){
793 (double)(statb.st_size) );
1051 struct stat statb; local
1123 if( (status = stat( openname, &statb )) ){
1316 struct stat statb; /* for status */ local
[all...]
H A Dlpd_remove.c161 struct stat statb; local
338 if( (fd = Checkread( Queue_lock_file_DYN, &statb )) >= 0 ){
481 struct stat statb; local
483 if( openname && stat( openname, &statb ) == 0 ){
485 if( unlink( openname ) || stat( openname, &statb ) == 0 ){
H A Dsendjob.c444 struct stat statb; local
466 fd = Checkread( openname, &statb );
467 sendsize = size = statb.st_size;
468 if( statb.st_size == 0 ){
632 struct stat statb; local
661 if( fstat( tempfd, &statb ) ){
665 size = statb.st_size;
H A Dlpd_status.c341 struct stat statb; local
434 lockfd = Checkwrite( Lpq_status_file_DYN, &statb, O_RDWR, 1, 0 );
484 if( file && (fd = Checkread( file, &statb )) > 0 ){
485 modified = statb.st_mtime;
494 if( Queue_status_file_DYN && stat(Queue_status_file_DYN,&statb) == 0 ){
495 modified = statb.st_mtime;
508 if( Status_file_DYN && stat(Status_file_DYN,&statb) == 0 ){
509 modified = statb.st_mtime;
1046 if( (fd = Checkread( path, &statb ) ) >= 0 ){
1059 if( (fd = Checkread( path, &statb ) ) >
[all...]
H A Dlpd_jobs.c324 struct stat statb; local
339 srcfd = Checkread(srcfile, &statb );
381 struct stat statb; local
437 lock_fd = Checkwrite( path, &statb, O_RDWR, 1, 0 );
1258 struct stat statb; local
1314 if( fstat( tempfd, &statb ) ){
1323 if( statb.st_size == 0 ){
1328 job_size = statb.st_size;
2282 struct stat statb; local
2311 if( (unspooler_fd = Checkwrite( path, &statb, O_RDW
2465 struct stat statb; local
2750 struct stat statb; local
2757 struct stat statb; int i; local
2957 struct stat statb; int i; local
[all...]
H A Dlpd_dispatch.c116 struct stat statb; local
143 if( (fd = Checkread( Printer_DYN, &statb ) ) > 0 ){
H A Dlpd_control.c252 struct stat statb; /* status of file */ local
434 (fd = Checkwrite( file, &statb,O_RDWR,0,0)) > 0 ){
439 (fd = Checkwrite( file, &statb,O_RDWR,0,0)) > 0 ){
466 if( signal_server && (fd = Checkread( Queue_lock_file_DYN, &statb ) ) >= 0 ){
521 if( signal_server && (fd = Checkread( Queue_lock_file_DYN, &statb ) ) >= 0 ){
H A Derrormsg.c879 struct stat statb; local
900 || ( Max_status_size_DYN > 0 && fstat( Status_fd, &statb ) != -1
901 && (statb.st_size / 1024 ) > Max_status_size_DYN ) ){
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/AUTHENTICATE/
H A Dsserver.c63 struct stat statb; local
148 fd = Checkread( file, &statb );
150 file, fd, (long)(statb.st_size) );
161 fd = Checkwrite( file, &statb, O_WRONLY|O_TRUNC, 1, 0 );

Completed in 104 milliseconds

12