Lines Matching refs:open
339 if ((masterfd = open("/dev/ptmx", O_RDWR|O_NONBLOCK)) < 0) {
382 * We must open the slave side before zoning this pty; otherwise
383 * the kernel would refuse us the open-- zoning a pty makes it
384 * inaccessible to the global zone. Note we are trying to open
398 if ((slavefd = open(zoneslavename, O_RDWR)) < 0) {
399 zerror(gettext("failed to open %s: %s"), zoneslavename,
1421 if ((*lockfd = open(pathbuf, O_RDWR|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
1422 zerror(gettext("could not open %s: %s"), pathbuf,
1461 if ((doorfd = open(doorpath, O_RDONLY)) < 0) {
1463 zerror("failed to open %s: %s", doorpath,
2050 zerror(gettext("could not open brand for zone %s"), zonename);
2083 if ((nfd = open(_PATH_DEVNULL, O_RDONLY)) < 0) {
2084 zperror(gettext("failed to open null device"));
2211 * terminal. When we open the slave, it will become the
2222 if ((newslave = open(slavename, O_RDWR)) == -1) {