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

/glassfish-3.1.2/installer/src/cpp/share/launcher/
H A Djava_md.winnt.c79 static HANDLE lockfile = NULL; variable
84 if (lockfile)
85 UnlockFile(lockfile, 0, 0, 1, 0);
97 if ((execname = GetExecName()) != NULL && (lockfile = CreateFile(execname, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL)) != NULL)
99 if (LockFile(lockfile, 0, 0, 1, 0) == 0)
H A Djava_md.unix.c89 static char *lockfile = NULL; variable
97 if (lockfile)
99 unlink(lockfile);
100 free(lockfile);
101 lockfile = NULL;
122 lockfile = (char *)MemAlloc(strlen(tmpdir) + strlen(title) + 45);
123 sprintf(lockfile, "%s" FILE_SEPARATOR "%s.%lu.%llu.%lu", tmpdir, title, (unsigned long)sb.st_dev, (unsigned long long)sb.st_ino, (unsigned long)geteuid());
124 if ((lockfd = creat(lockfile, S_IRUSR | S_IWUSR)) >= 0)

Completed in 192 milliseconds