(file) Return to Policy.c CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Executor

Diff for /pegasus/src/Executor/Policy.c between version 1.2 and 1.3

version 1.2, 2007/05/25 18:35:07 version 1.3, 2007/06/05 18:15:06
Line 345 
Line 345 
 /* /*
 **============================================================================== **==============================================================================
 ** **
 ** _LockFile()  
 **  
 **     Obtain an exclusive lock on the given file.  
 **  
 **==============================================================================  
 */  
   
 static int _LockFile(FILE* fp)  
 {  
     static struct flock lock;  
     lock.l_type = F_RDLCK;  
     lock.l_whence = SEEK_SET;  
     lock.l_start = 0;  
     lock.l_len = 0;  
     return fcntl(fileno(fp), F_SETLKW, &lock);  
 }  
   
 /*  
 **==============================================================================  
 **  
 ** _UnlockFile()  
 **  
 **     Release the lock on the given file.  
 **  
 **==============================================================================  
 */  
   
 static int _UnlockFile(FILE* fp)  
 {  
     static struct flock lock;  
     lock.l_type = F_UNLCK;  
     lock.l_whence = SEEK_SET;  
     lock.l_start = 0;  
     lock.l_len = 0;  
     return fcntl(fileno(fp), F_SETLKW, &lock);  
 }  
   
 /*  
 **==============================================================================  
 **  
 ** _DumpPolicyHelper() ** _DumpPolicyHelper()
 ** **
 **     Dump the policy table given by *policyTable* and *policyTableSize*. **     Dump the policy table given by *policyTable* and *policyTableSize*.


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2