Searched refs:open (Results 526 - 550 of 1624) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/boot/sys/boot/common/
H A Dls.c178 fd = open(path, O_RDONLY);
181 "open '%s' failed: %s", path, strerror(errno));
/illumos-gate/usr/src/man/man9e/
H A DMakefile57 open.9e \
/illumos-gate/usr/src/lib/libpkg/common/
H A Dkeystore.c1167 if ((newfd = open(newpath, O_RDWR|O_NONBLOCK, 0)) != -1) {
1340 if (((fd1 = open(storepath, O_NONBLOCK|O_RDONLY)) == -1) ||
1350 if (((fd2 = open(keystore_file,
1378 if (((fd1 = open(keystore_file,
1471 open(keystore->capath, O_NONBLOCK|O_RDONLY)) == -1) {
1481 open(keystore->capath,
1526 if ((keystore->cafd = open(keystore->capath,
1531 open(keystore->capath,
2120 fd = open(dest, O_RDWR|O_NONBLOCK);
2122 /* can't open fo
[all...]
/illumos-gate/usr/src/lib/mpss/common/
H A Dmpss.c116 int fd = open("/proc/self/auxv", O_RDONLY);
262 fd = open("/proc/self/psinfo", O_RDONLY);
284 "%s: /proc/self/psinfo open failed [%s]\n"),
326 "%s: cannot open error file: %s [%s]\n"),
367 "%s: cannot open configuration file: %s [%s]\n"),
/illumos-gate/usr/src/lib/pam_modules/timestamp/
H A Dpam_timestamp.c275 if ((fd = open(timestampfile, O_RDONLY)) < 0) {
277 "can't open timestamp file %s for reading: %m",
394 if ((fd = open(timestampfile, O_WRONLY|O_CREAT, S_IRUSR|S_IWUSR)) < 0) {
396 "can't open timestamp file %s for writing: %m",
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c109 fd = open(ifname_to_hostconf(ifname, isv6), O_RDONLY);
337 fd = open(ifname_to_hostconf(ifname, isv6), O_WRONLY|O_CREAT|O_TRUNC,
/illumos-gate/usr/src/lib/libproc/common/
H A Dproc_arg.c63 * Attempt to open the psinfo file, and return the fd if we can
91 * Attempt to open the core file, and return the fd if we can confirm
232 * We were unable to open the corefile. If we have no meaningful
457 fd = open(pidstr, O_RDONLY);
474 fd = open(pidstr, O_RDONLY);
/illumos-gate/usr/src/lib/libbsm/common/
H A Daudit_cron.c99 if ((fd = open(fname_aux, O_RDONLY)) == -1) {
192 if ((fd = open(fname, O_CREAT|O_WRONLY|O_TRUNC, 0200)) == -1)
/illumos-gate/usr/src/lib/libcmd/common/
H A Drm.c267 if ((n = open(path, O_RDWR)) < 0)
296 if ((n = open(path, O_WRONLY)) < 0)
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c91 if ((i = open("/proc/self/map", O_RDONLY)) < 0)
236 /* get an open file descriptor for the mapped object */
241 fd = open(fname, O_RDONLY);
/illumos-gate/usr/src/cmd/utmp_update/
H A Dutmp_update.c163 if ((devfd = open("/dev", O_RDONLY)) < 0) {
478 * We need to open the line without blocking so that it does not hang
480 if ((fd = open(line, O_WRONLY|O_NOCTTY|O_NONBLOCK)) == -1) {
481 dprintf("Bad line (Can't open/write) = %s\n", line);
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_log.c75 /* close old log file and open a new one */
84 * don't try and open the log file /dev/null
104 * In order to open this file securely, we'll try a few tricks
107 if ((newlogfd = open(lf, O_EXCL|O_WRONLY|O_CREAT, 0644)) < 0) {
118 _nscd_logit(me, "Cannot open new "
128 open(lf, O_APPEND|O_WRONLY, 0644)) < 0) {
131 "Cannot open new "\
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/chicago/envd/
H A Dpiclenvd.c59 #include <sys/open.h>
711 if ((fd = open(fanp->devfs_path, O_RDWR)) == -1) {
782 if ((diskp->fd = open(diskp->devfs_path, O_RDONLY)) == -1) {
889 if ((fd = open(iofru_devname, O_RDONLY)) == -1) {
1080 sensorp->fd = open(sensorp->devfs_path, O_RDWR);
1136 pm_fd = open(PM_DEVICE, O_RDWR);
1179 env_monitor_fd = open(ENV_MONITOR_DEVFS, O_RDWR);
1191 "Failed to open %s\n",
1569 if ((disk_pm_fd = open(PM_DEVICE, O_RDWR)) == -1) {
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw8/fruaccess/
H A Dlibfruaccess.c38 #include <sys/open.h>
87 #define OPENDEVFRU gettext("fru_open_dev: open of %s failed %s")
97 if ((frufd = open(FRU_PSEUDO_DEV, O_RDWR, access)) == -1) {
/illumos-gate/usr/src/cmd/pools/poold/com/sun/solaris/service/pools/
H A DConfiguration.java82 open(location, perms);
126 public void open(String location, int perms) throws PoolsException method in class:Configuration
/illumos-gate/usr/src/cmd/rctladm/
H A Drctladm.c153 if ((fd = open(CONFIGPATH, O_WRONLY|O_CREAT|O_TRUNC, CONFIGPERM)) == -1)
154 die(gettext("failed to open %s"), CONFIGPATH);
157 die(gettext("failed to open stream for %s"), CONFIGPATH);
205 if ((fd = open(CONFIGPATH, O_RDONLY, CONFIGPERM)) == -1)
206 die(gettext("failed to open %s"), CONFIGPATH);
209 die(gettext("failed to open stream for %s"), CONFIGPATH);
/illumos-gate/usr/src/cmd/sendmail/aux/
H A Dmailstats.c222 fd = open(sfile, O_RDONLY, 0600);
344 fd = open(sfile, O_RDWR | O_TRUNC, 0600);
/illumos-gate/usr/src/cmd/setuname/
H A Dsetuname.c86 * open() Open a file
87 * close() Close an open file
100 extern int open(); /* Open a file */
101 extern int close(); /* Close an open a file */
400 int memfd; /* File descriptor: open kernel memory */
462 if ((memfd = open("/dev/kmem", O_RDWR, 0)) > 0) {
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dldlibs.c191 * limit, the open() will catch it, and a suitable rejection message is
201 * If we are in dynamic mode try and open the associated shared object.
207 if ((fd = open(path, O_RDONLY)) != -1) {
225 * If the open() failed for anything other than the
236 * located, try and open the associated archive.
241 if ((fd = open(path, O_RDONLY)) != -1) {
255 * If the open() failed for anything other than the
/illumos-gate/usr/src/cmd/addbadsec/
H A Daddbadsec.c116 "%s: unable to open %s file\n",
163 if ((devfd = open(devname, O_RDWR)) == -1) {
164 (void) fprintf(stderr, "%s: open of %s failed\n",
240 if ((alts_fd = open(alts_name, O_RDWR)) == -1) {
241 (void) fprintf(stderr, "%s: open of %s failed\n",
/illumos-gate/usr/src/cmd/backup/restore/
H A Dmain.c143 if ((savepwd = open(".", O_RDONLY)) < 0) {
569 fd = open(name, O_CREAT|O_EXCL|O_RDWR, 0600);
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/
H A Dipmgmt_main.c137 if ((fd = open(ADDROBJ_MAPPING_DB_FILE, O_CREAT|O_RDONLY,
140 ipmgmt_log(LOG_ERR, "could not open %s: %s",
175 if ((fd = open(IPMGMT_DOOR, O_CREAT|O_RDONLY, IPADM_FILE_MODE)) == -1) {
177 ipmgmt_log(LOG_ERR, "could not open %s: %s",
327 ipmgmt_log(LOG_ERR, "could not open ipadm handle",
405 * Keep the pfds fd open, close other fds.
/illumos-gate/usr/src/cmd/hal/hald/
H A Dhald.c504 dev_null_fd = open ("/dev/null", O_RDWR);
505 /* ignore if we can't open /dev/null */
530 if ((pf= open (HALD_PID_FILE, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0644)) > 0) {
/illumos-gate/usr/src/cmd/sgs/prof/common/
H A Drdelf.c43 if ((fd = open(name, O_RDONLY)) == -1) {
44 (void) fprintf(stderr, "%s: can't open `%s'\n", cmdname, name);
393 if ((fd = open(filename, O_RDONLY)) == -1) {
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventconfd/
H A Dsyseventconfd.c168 fd = open("/dev/null", 0);
372 (void) open("/dev/null", O_RDONLY);

Completed in 104 milliseconds

<<21222324252627282930>>