/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/common/ |
H A D | accounting.c | 69 int n, err, len, tempfd; local 91 tempfd = -1; 95 tempfd = Make_temp_fd( 0 ); 97 err = Filter_file( -1, tempfd, "ACCOUNTING_FILTER", 99 if( tempfd > 0 && lseek(tempfd,0,SEEK_SET) == -1 ){ 115 tempfd = Make_temp_fd( 0 ); 117 err = Filter_file( fd, tempfd, "ACCOUNTING_FILTER", 119 if( tempfd > 0 && lseek(tempfd, [all...] |
H A D | sendmail.c | 31 int n, tempfd; local 57 tempfd = Make_temp_fd( 0 ); 65 if( Write_fd_str( tempfd, buffer ) < 0 ) goto wr_error; 72 if( Write_fd_str( tempfd, buffer ) < 0 ) goto wr_error; 78 if( Write_fd_str( tempfd, buffer ) < 0 ) goto wr_error; 83 if( Write_fd_str( tempfd, buffer ) < 0 ) goto wr_error; 88 if( Write_fd_str( tempfd, buffer ) < 0 ) goto wr_error; 111 if( Write_fd_str( tempfd, buffer ) < 0 ) goto wr_error; 117 if( Write_fd_str( tempfd, "\nStatus:\n\n" ) < 0 || 118 Write_fd_str( tempfd, [all...] |
H A D | user_auth.c | 195 int tempfd, len; local 200 if( (tempfd = Checkread(tempfile,&statb)) < 0){ 208 while( (len = read( tempfd, buffer, sizeof(buffer)-1 )) > 0 ){ 224 close(tempfd); tempfd = -1; 230 if( (tempfd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){ 242 if( write(tempfd,buffer,len) != len ){ 249 close( tempfd ); tempfd = -1; 262 int tempfd, statu local 519 int tempfd = -1, len, ack; local 753 int destkeylength, i, n, len, tempfd = -1; local 1425 int status, i, tempfd, len, n, fd; local 1582 int tempfd, status, n; local [all...] |
H A D | ssl_auth.c | 732 int tempfd = -1, len; local 752 if( (tempfd = Checkread(tempfile,&statb)) < 0){ 768 while( (len = read( tempfd, buffer, sizeof(buffer)-1 )) > 0 ){ 783 close(tempfd); tempfd = -1; 784 if( (tempfd = Checkwrite(tempfile,&statb,O_WRONLY|O_TRUNC,1,0)) < 0){ 811 if( write(tempfd,buffer,len) != len ){ 820 close( tempfd ); tempfd = -1; 825 close(tempfd); tempf 856 int tempfd, status, n, len; local [all...] |
H A D | lpd_secure.c | 62 int tempfd = -1; local 150 tempfd = Checkwrite( Log_file_DYN, &statb,0,0,0); 151 if( tempfd > 0 && tempfd != 2 ){ 152 dup2(tempfd,2); 153 close(tempfd); 155 tempfd = -1; 211 tempfd = Make_temp_fd(&tempfile); 212 close(tempfd); tempfd [all...] |
H A D | sendauth.c | 371 void Put_in_auth( int tempfd, const char *key, char *value ) argument 375 tempfd, key, value, v ); 377 Write_fd_str(tempfd,key) < 0 378 || Write_fd_str(tempfd,"=") < 0 379 || Write_fd_str(tempfd,v) < 0 380 || Write_fd_str(tempfd,"\n") < 0
|
H A D | lpd_rcvjob.c | 778 int read_len, filetype, tempfd = -1; /* type and length fields */ local 836 tempfd = Make_temp_fd( &tempfile ); 837 DEBUGF(DRECV2)("Scan_block_file: tempfd %d, read_len %d", read_len, tempfd ); 857 n = write(tempfd,buffer,count); 867 close( tempfd); 868 tempfd = -1; 924 if( tempfd >= 0 ) close(tempfd); tempfd 1357 int i, fd, tempfd, count, c; local [all...] |
H A D | sendjob.c | 629 int tempfd; /* temp file for data transfer */ local 643 tempfd = Make_temp_fd( &tempfile ); 646 status = Send_normal( &tempfd, job, logjob, transfer_timeout, tempfd, 0 ); 656 if( lseek( tempfd, 0, SEEK_SET ) == -1 ){ 658 LOGERR_DIE(LOG_INFO) "Send_files: lseek tempfd failed" ); 661 if( fstat( tempfd, &statb ) ){ 663 LOGERR_DIE(LOG_INFO) "Send_files: fstat tempfd failed" ); 699 transfername, tempfd, size ); 725 close( tempfd ); tempf [all...] |
H A D | lpd_status.c | 338 matches, tempfd, savedfd, lockfd, delta, err, cache_index, local 364 savedfd = tempfd = lockfd = -1; 533 tempfd = Make_temp_fd( &tempfile ); 535 *sock = tempfd; 1138 if( tempfd > 0 ){ 1142 if( lseek( tempfd, 0, SEEK_SET ) == -1 ){ 1146 while( (ix = read( tempfd, buffer, sizeof(buffer)-1 )) > 0 ){ 1151 close(tempfd); tempfd = -1; 1241 tempfd 1461 int fd, n, tempfd; local [all...] |
H A D | printjob.c | 122 do_banner, n, pid, count, fd, tempfd, local 144 of_stdin = of_stderr = tempfd = fd = -1; 401 tempfd = Make_temp_fd(0); 407 n = Filter_file( fd, tempfd, "PR_PROGRAM", 415 close(fd); fd = tempfd; 426 LOGERR(LOG_INFO)"Print_job: lseek tempfd failed"); 686 if( tempfd != -1 ) close(tempfd); tempfd = -1; 1019 int tempfd; local [all...] |
H A D | lpr.c | 205 int tempfd; local 211 tempfd = Make_temp_fd(&tempfile); 217 Print_job( tempfd, -1, &prjob, 0, 0, User_filter_JOB ); 221 close(tempfd); 222 tempfd = Checkread( tempfile, &statb ); 223 if( tempfd < 0 ){ 227 close(tempfd);
|
H A D | lpd_jobs.c | 1253 int status, tempfd, n; local 1305 tempfd = Make_temp_fd(&tempfile); 1310 Print_job( tempfd, -1, &jcopy, 0, 0, 0 ); 1314 if( fstat( tempfd, &statb ) ){ 1318 if( (close(tempfd) == -1 ) ){ 1321 tempfd); 2649 int tempfd; local 2664 tempfd = Make_temp_fd(&tempfile); 2665 if( Write_fd_len( tempfd, Outbuf, Outlen ) < 0 ){ 2670 close(tempfd); 2751 int tempfd, fd, n, pid, count, if_error[2]; local [all...] |
H A D | getqueue.c | 1690 int tempfd, status; local 1696 tempfd = status = -1; 1707 tempfd = Make_temp_fd(&tempfile); 1719 Write_fd_str( tempfd, s ); 1724 if( write( tempfd, buffer, count) < 0 ){ 1729 lseek( tempfd, 0, SEEK_SET ); 1732 while( (count = read( tempfd, buffer, sizeof(buffer) ) ) > 0 ){ 1741 close( tempfd ); 1956 int tempfd, tempfc; local 2140 tempfd [all...] |
H A D | linelist.c | 2630 int tempfd; local 2635 tempfd = mkstemp( pathname ); 2636 if( tempfd == -1 ){ 2644 if( fchmod(tempfd,(Is_server?Spool_file_perms_DYN:0) | 0600 ) == -1 ){ 2653 DEBUG1("Make_temp_fd_in_dir: fd %d, name '%s'", tempfd, pathname ); 2654 return( tempfd );
|
/asus-wl-520gu-7.0.1.45/src/router/LPRng/src/include/ |
H A D | sendauth.h | 21 void Put_in_auth( int tempfd, const char *key, char *value );
|