Home
last modified time | relevance | path

Searched refs:lock_file (Results 1 – 12 of 12) sorted by relevance

/freebsd/crypto/heimdal/lib/hdb/
H A Dndbm.c138 char *lock_file; in open_lock_file() local
141 asprintf(&lock_file, "%s.lock", db_name); in open_lock_file()
142 if(lock_file == NULL) { in open_lock_file()
147 *fd = open(lock_file, O_RDWR | O_CREAT, 0600); in open_lock_file()
148 free(lock_file); in open_lock_file()
151 krb5_set_error_message(context, ret, "open(%s): %s", lock_file, in open_lock_file()
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_printer_tbl.c151 if (pp->lock_file[0] == '/') in get_printer_status()
152 strlcpy(lockfile, pp->lock_file, sizeof(lockfile)); in get_printer_status()
155 pp->spool_dir, pp->lock_file); in get_printer_status()
/freebsd/usr.sbin/lpr/lpd/
H A Dprintjob.c189 statok = stat(pp->lock_file, &stb); in printjob()
193 lfd = open(pp->lock_file, O_WRONLY|O_CREAT|O_EXLOCK|O_NONBLOCK, in printjob()
199 pp->lock_file); in printjob()
207 statok = stat(pp->lock_file, &stb); in printjob()
211 pp->lock_file); in printjob()
222 pp->lock_file); in printjob()
238 pp->lock_file); in printjob()
273 pp->lock_file); in printjob()
294 pp->printer, pp->lock_file); in printjob()
316 pp->printer, pp->lock_file); in printjob()
H A Drecvjob.c112 if (stat(pp->lock_file, &stb) == 0) { in recvjob()
/freebsd/usr.sbin/lpr/common_source/
H A Dcommon.c286 if (pp->lock_file[0] == '/') in lock_file_name()
287 strlcpy(buf, pp->lock_file, len); in lock_file_name()
289 snprintf(buf, len, "%s/%s", pp->spool_dir, pp->lock_file); in lock_file_name()
H A Dprintcap.c224 CHK(capdb_getaltstr(bp, "lo", "spool.lock", DEFLOCK, &pp->lock_file)); in getprintcap_int()
336 cfree(pp->lock_file); in free_printer()
H A Ddisplayq.c123 ret = stat(pp->lock_file, &statb); in displayq()
150 fp = fopen(pp->lock_file, "r"); in displayq()
H A Dlp.h61 char *lock_file; /* LO: lock file */ member
H A Drmjob.c119 if (lockchk(pp, pp->lock_file) && chk(current)) { in rmjob()
/freebsd/usr.sbin/lpr/lpc/
H A Dmovejobs.c259 setres = set_qstate(SQS_QCHANGED, pp->lock_file); in tqbq_common()
H A Dcmds.c1196 if (changed && stat(pp->lock_file, &stbuf) >= 0) in topq()
1197 (void) chmod(pp->lock_file, stbuf.st_mode | LFM_RESET_QUE); in topq()
/freebsd/contrib/sendmail/contrib/
H A Dqtool.pl364 sub lock_file subroutine
658 ($lock_handle, $result) = ::lock_file($self->{file_name});