Lines Matching refs:open
172 if ((fd = open("/dev/tod", O_RDONLY)) != -1) {
179 * Read in the cpr conf file. If any open or read error occurs,
184 if ((fd = open(cpr_conf, O_RDONLY)) == -1) {
186 mesg(MEXIT, err_fmt, gettext("cannot open"),
205 * Unconfigure and reset PM, device is left open for later use.
212 if ((pm_fd = open("/dev/pm", O_RDWR)) == -1)
213 err_fmt = "cannot open \"/dev/pm\": %s\n";
227 if ((fd = open(PIDPATH, O_RDONLY)) == -1)
273 if ((fd = open(cpr_conf, O_CREAT | O_TRUNC | O_WRONLY, 0644)) == -1)
274 err_fmt = "cannot open/create \"%s\", %s\n";
446 mesg(MERR, "cannot open/create tmp file \"%s\"\n", tmp_conf);