Home
last modified time | relevance | path

Searched refs:open_locked (Results 1 – 25 of 28) sorted by relevance

12

/titanic_44/usr/src/cmd/lp/lib/lp/
H A Dfiles.c123 open_locked(char *path, char *type, mode_t mode) in open_locked() function
209 if ((fd = open_locked(path, type, mode)) >= 0) { in open_lpfile()
274 if ((fd = open_locked(path, "r", MODE_READ)) < 0) in loadline()
302 if ((fd = open_locked(path, "r", MODE_READ)) < 0) in loadstring()
327 if ((fd = open_locked(path, "w", MODE_READ)) < 0) in dumpstring()
H A Dalerts.c132 if ((fdout = open_locked(path, "w", MODE_NOEXEC)) < 0) { in putalert()
155 if ((fdin = open_locked(path, "r", 0)) < 0) { in putalert()
250 if ((fdout = open_locked(path, "w", MODE_NOREAD)) < 0) { in putalert()
305 if ((fd = open_locked(path, "r", 0)) < 0) { in getalert()
348 if ((fd = open_locked(path, "r", 0)) < 0) { in getalert()
H A Dset_charset.c217 if ((fd = open_locked(p, "r", 0)) < 0) {
/titanic_44/usr/src/cmd/lp/lib/forms/
H A Dputform.c93 if ((fd = open_locked(path, "w", MODE_READ)) < 0) { in putform()
130 if ((fd = open_locked(path, "w", MODE_READ)) < 0) { in putform()
H A Dgetform.c82 if ((fd = open_locked(path, "r", 0)) < 0) { in getform()
/titanic_44/usr/src/cmd/lp/lib/users/
H A Dusermgmt.c60 if ((fd = open_locked(Lp_Users, "w", LPU_MODE)) < 0) in putuser()
111 if ((fd = open_locked(Lp_Users, "w", LPU_MODE)) < 0) in deluser()
H A Dloadpri.c85 if ((fd = open_locked(path, "r", 0)) < 0) { in ld_priority_file()
/titanic_44/usr/src/cmd/lp/lib/printers/
H A Dputprinter.c176 if ((fdin = open_locked(prbufp->interface, "r", 0)) < 0) { in putprinter()
180 if ((fdout = open_locked(path, "w", MODE_EXEC)) < 0) { in putprinter()
308 if ((fdout = open_locked(path, "w", MODE_READ)) < 0) { in putprinter()
687 if ((fdin = open_locked(ppd, "r", 0)) < 0) in copyPPDFile()
693 fdout = open_locked(printersPPD, "w", MODE_EXEC); in copyPPDFile()
H A Ddefault.c61 if ((fd = open_locked(Lp_Default, "w", MODE_READ)) < 0) in putdefault()
H A Dgetpentry.c105 if ((fd = open_locked(path, "r", 0)) < 0) { in getpentry()
/titanic_44/usr/src/cmd/lp/cmd/lpsched/
H A Dstatus.c106 if ((fd = open_locked(pstatus, "r", 0)) >= 0) { in load_pstatus()
296 if ((fd = open_locked(fault_status, "r", 0)) >= 0) { in load_fault_status()
358 if ((fd = open_locked(cstatus, "r", 0)) >= 0) { in load_cstatus()
569 if ((fd = open_locked(pstatus, "w", MODE_READ)) < 0) { in dump_pstatus()
635 if ((fd = open_locked(fault_status, "w", MODE_READ)) < 0) { in dump_fault_status()
661 if ((fd = open_locked(cstatus, "w", MODE_READ)) < 0) { in dump_cstatus()
H A Dalerts.c155 if ((fd = open_locked(file, "a", MODE_READ)) < 0) in pformat()
161 if ((fd = open_locked(file, "w", MODE_READ)) < 0) in pformat()
187 if ((fd = open_locked(file, "w", MODE_READ)) < 0) in pwformat()
212 if ((fd = open_locked(file, "w", MODE_READ)) < 0) in fformat()
H A Dfiles.c149 fd = open_locked(Lp_ReqLog, "a", MODE_NOREAD); in rmfiles()
286 if (((fd = open_locked(buf, "r+", 0644)) < 0) && in _alloc_req_id()
287 ((fd = open_locked(buf, "w", 0644)) < 0)) in _alloc_req_id()
H A Dlpsched.c211 if ((lock_fd = open_locked(Lp_Schedlock, "a", 0664)) < 0) in startup()
223 if ((lock_fd = open_locked(Lp_Schedlock, "w", 0664)) < 0) in startup()
H A Dlog.c49 return (open_locked(path, "a", 0640)); in open_logfile()
H A Dnotify.c121 if ((fd = open_locked(file, "w", MODE_NOREAD)) >= 0) { in notify()
/titanic_44/usr/src/cmd/lp/lib/secure/
H A Dsecure.c66 if ((fd = open_locked(path, "r", MODE_NOREAD)) < 0) { in getsecure()
162 if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) { in putsecure()
/titanic_44/usr/src/cmd/lp/lib/filters/
H A Dfiltertable.c79 fd = open_locked(file, mode, MODE_READ); in open_filtertable()
/titanic_44/usr/src/cmd/lp/lib/class/
H A Dputclass.c69 if ((fd = open_locked(file, "w", MODE_READ)) < 0) { in putclass()
H A Dgetclass.c83 if ((fd = open_locked(file, "r", 0)) < 0) { in getclass()
/titanic_44/usr/src/cmd/lp/lib/access/
H A Ddumpaccess.c91 if ((fd = open_locked(file, "w", MODE_READ)) < 0) in _dumpaccess()
H A Dloadaccess.c134 if ((fd = open_locked(file, "r", 0)) < 0) in _loadaccess()
/titanic_44/usr/src/cmd/lp/lib/requests/
H A Dputrequest.c119 if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) {
H A Dgetrequest.c102 if ((fd = open_locked(path, "r", 0)) < 0) {
/titanic_44/usr/src/cmd/lp/cmd/
H A Dlpusers.c185 if ((fd = open_locked(PRIORITY, "w", LPU_MODE)) < 0) { in main()

12