Searched refs:__opie_lockfilename (Results 1 - 2 of 2) sorted by relevance

/freebsd-head/contrib/opie/libopie/
H A Dlock.c62 char *__opie_lockfilename = (char *)0; variable
67 if (__opie_lockfilename) {
104 if (__opie_lockfilename) {
109 if (!(__opie_lockfilename = (char *)malloc(sizeof(OPIE_LOCK_DIR) + 1 + strlen(principal))))
112 strcpy(__opie_lockfilename, OPIE_LOCK_DIR);
114 if (mkdir(__opie_lockfilename, 0700) < 0)
118 if (lstat(__opie_lockfilename, &statbuf[0]) < 0)
123 syslog(LOG_DEBUG, "opielock: %s isn't owned by the superuser.", __opie_lockfilename);
130 syslog(LOG_DEBUG, "opielock: %s isn't a directory.", __opie_lockfilename);
137 syslog(LOG_DEBUG, "opielock: permissions on %s are not correct.", __opie_lockfilename);
[all...]
H A Dunlock.c37 extern char *__opie_lockfilename;
53 if (!__opie_lockfilename)
56 if (!(fh = open(__opie_lockfilename, O_RDWR, 0600)))
89 unlink(__opie_lockfilename); variable
94 free(__opie_lockfilename); variable
95 __opie_lockfilename = NULL;

Completed in 225 milliseconds