/titanic_44/usr/src/cmd/lp/lib/lp/ |
H A D | files.c | 123 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 D | alerts.c | 132 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 D | set_charset.c | 217 if ((fd = open_locked(p, "r", 0)) < 0) {
|
/titanic_44/usr/src/cmd/lp/lib/forms/ |
H A D | putform.c | 93 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 D | getform.c | 82 if ((fd = open_locked(path, "r", 0)) < 0) { in getform()
|
/titanic_44/usr/src/cmd/lp/lib/users/ |
H A D | usermgmt.c | 60 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 D | loadpri.c | 85 if ((fd = open_locked(path, "r", 0)) < 0) { in ld_priority_file()
|
/titanic_44/usr/src/cmd/lp/lib/printers/ |
H A D | putprinter.c | 176 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 D | default.c | 61 if ((fd = open_locked(Lp_Default, "w", MODE_READ)) < 0) in putdefault()
|
H A D | getpentry.c | 105 if ((fd = open_locked(path, "r", 0)) < 0) { in getpentry()
|
/titanic_44/usr/src/cmd/lp/cmd/lpsched/ |
H A D | status.c | 106 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 D | alerts.c | 155 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 D | files.c | 149 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 D | lpsched.c | 211 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 D | log.c | 49 return (open_locked(path, "a", 0640)); in open_logfile()
|
H A D | notify.c | 121 if ((fd = open_locked(file, "w", MODE_NOREAD)) >= 0) { in notify()
|
/titanic_44/usr/src/cmd/lp/lib/secure/ |
H A D | secure.c | 66 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 D | filtertable.c | 79 fd = open_locked(file, mode, MODE_READ); in open_filtertable()
|
/titanic_44/usr/src/cmd/lp/lib/class/ |
H A D | putclass.c | 69 if ((fd = open_locked(file, "w", MODE_READ)) < 0) { in putclass()
|
H A D | getclass.c | 83 if ((fd = open_locked(file, "r", 0)) < 0) { in getclass()
|
/titanic_44/usr/src/cmd/lp/lib/access/ |
H A D | dumpaccess.c | 91 if ((fd = open_locked(file, "w", MODE_READ)) < 0) in _dumpaccess()
|
H A D | loadaccess.c | 134 if ((fd = open_locked(file, "r", 0)) < 0) in _loadaccess()
|
/titanic_44/usr/src/cmd/lp/lib/requests/ |
H A D | putrequest.c | 119 if ((fd = open_locked(path, "w", MODE_NOREAD)) < 0) {
|
H A D | getrequest.c | 102 if ((fd = open_locked(path, "r", 0)) < 0) {
|
/titanic_44/usr/src/cmd/lp/cmd/ |
H A D | lpusers.c | 185 if ((fd = open_locked(PRIORITY, "w", LPU_MODE)) < 0) { in main()
|