Changeset 1813


Ignore:
Timestamp:
Jul 14, 2010 5:40:33 PM (14 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/blt4/packages/vizservers/pymolproxy/pymolproxy.c

    r1812 r1813  
    103103static FILE *flog;
    104104static int debug = 0;
    105 #ifdef notdef
    106 static long _flags = 0;
    107 #endif
    108105static FILE *scriptFile;
    109106static int savescript = 0;
     
    635632}
    636633
    637 
    638 #ifdef notdef
    639 static int
    640 ReadImage(PymolProxy *proxyPtr, int fd, size)
    641 {
    642     int result, total, left;
    643 
    644     for( total = 0, left = size; left > 0; left -= result) {
    645         result = read(fd, buffer+total, left);
    646        
    647         if (result > 0) {
    648             total += result;
    649             continue;
    650         }
    651        
    652         if ((result < 0) && (errno != EAGAIN) && (errno != EINTR)) {
    653             trace("Error reading fd(%d), %d/%s.", fd, errno,
    654                   strerror(errno));
    655             break;
    656         }
    657        
    658         result = 0;
    659     }
    660     return total;
    661 }
    662 #endif
    663 
    664634static int
    665635Pymol(PymolProxy *proxyPtr, const char *format, ...)
     
    11231093        free(data);
    11241094        Pymol(proxyPtr, "load %s,%s,%d\n", fileName, name, state);
    1125 #ifdef notdef
    1126         Pymol(proxyPtr, "zoom complete=1\n");
    1127 #endif
    11281095    }
    11291096    return proxyPtr->status;
     
    20271994    fcntl(proxyPtr->clientInput, F_SETFL, flags|O_NONBLOCK);
    20281995
    2029 #ifdef notdef
    2030     flags = fcntl(proxyPtr->serverOutput, F_GETFL);
    2031     fcntl(proxyPtr->serverOutput, F_SETFL, flags|O_NONBLOCK);
    2032 #endif
    2033 
    20341996    pollResults[0].fd = proxyPtr->clientOutput;
    20351997    pollResults[1].fd = proxyPtr->serverOutput;
Note: See TracChangeset for help on using the changeset viewer.