1 #include <headers.h> 2 #include <datatypes.h> 3 #include <options.h> 4 #include <leases.h> 5 #include <lock.h> 6 7 int check_leased_list() 8 { 9 DHCPLIST *temp, *ntemp; 10 int count = 1, i; 11 12 /* fprintf( stdout, "checking list! \n" ); */ 13 14 return 0; 15 } 16 17 static int test_and_set() 18 { 19 /* Test lock, if it's locked return FALSE */ 20 21 return TRUE; 22 } 23 24 int lock_list() 25 { 26 int count = 1; 27 28 while( !test_and_set() ) 29 { 30 sleep( 1 ); 31 count++; 32 } 33 34 return count; 35 } 36 37 int unlock_list() 38 { 39 return TRUE; 40 } 41