Searched refs:files (Results 1 - 2 of 2) sorted by relevance
/libmicro/ |
H A D | cascade_flock.c | 76 static int *files; variable 88 " [-d directory for temp files (default %s)]\n" 118 files = (int *)malloc(nfiles * sizeof (int)); 119 if (files == NULL) { 126 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600); 127 if (files[i] == -1) { 141 return (flock(files[index], LOCK_EX) == -1); 147 return (flock(files[index], LOCK_UN) == -1);
|
H A D | cascade_lockf.c | 71 static int *files; variable 83 " [-d directory for temp files (default %s)]\n" 113 files = (int *)malloc(nfiles * sizeof (int)); 114 if (files == NULL) { 121 files[i] = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600); 122 if (files[i] == -1) { 136 return (lockf(files[index], F_LOCK, 0) == -1); 142 return (lockf(files[index], F_ULOCK, 0) == -1);
|
Completed in 7 milliseconds