Searched defs:file (Results 1 - 2 of 2) sorted by relevance

/libmicro/
H A Dfile_lock.c4 * The contents of this file are subject to the terms
6 * (the "License"). You may not use this file except
16 * HEADER in each file and include the License file at
32 * test file locking
44 static int file; variable
55 return (fcntl(file, F_SETLKW, &fl) == -1);
67 return (fcntl(file, F_SETLK, &fl) == -1);
77 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
79 if (file
[all...]
H A Dcascade_fcntl.c4 * The contents of this file are subject to the terms
6 * (the "License"). You may not use this file except
16 * HEADER in each file and include the License file at
70 static int file; variable
83 " [-d directory for temp file (default %s)]\n"
114 file = open(fname, O_CREAT | O_TRUNC | O_RDWR, 0600);
115 if (file == -1) {
123 if (ftruncate(file, nlocks * 3) == -1) {
139 return (fcntl(file, F_SETLK
[all...]

Completed in 8 milliseconds