Searched refs:fd (Results 551 - 575 of 835) sorted by relevance

<<21222324252627282930>>

/osnet-11/usr/src/lib/libproc/common/
H A Dpr_getsockname.c174 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp) argument
183 return (getpeerucred(fd, ucp));
198 adp++; /* fd argument */
199 adp->arg_value = fd;
H A Dpr_open.c140 pr_close(struct ps_prochandle *Pr, int fd) argument
148 return (close(fd));
150 adp = &argd[0]; /* fd argument */
151 adp->arg_value = (int)fd;
180 adp = &argd[0]; /* directory fd argument */
/osnet-11/usr/src/lib/libresolv2/common/nameser/
H A Dns_newmsg.c112 struct _ns_flagdata *fd = &_ns_flagdata[flag]; local
116 msg->_flags &= (~fd->mask);
117 msg->_flags |= (value << fd->shift);
/osnet-11/usr/src/lib/libnsl/nsl/
H A Dt_alloc.c51 _tx_alloc(int fd, int struct_type, int fields, int api_semantics) argument
70 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
83 retval = ioctl(fd, I_STR, &strioc);
H A Dt_listen.c47 _tx_listen(int fd, struct t_call *call, int api_semantics) argument
58 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
140 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
H A Dt_rcvvudata.c52 int fd,
78 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL)
134 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) {
51 _tx_rcvvudata( int fd, struct t_unitdata *unitdata, struct t_iovec *tiov, unsigned int tiovcount, int *flags, int api_semantics ) argument
/osnet-11/usr/src/lib/libnwam/common/
H A Dlibnwam_events.c201 int fd; local
204 if ((fd = open(eventmsgfile, O_RDWR | O_CREAT | O_TRUNC, 0644)) == -1)
206 (void) close(fd);
/osnet-11/usr/src/lib/libparted/common/lib/
H A Derror.c119 is_open (int fd) argument
125 return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE;
130 return 0 <= fcntl (fd, F_GETFL);
149 the fd of a FILE stream is stored as a field in its allocated memory. */
/osnet-11/usr/src/lib/libpkg/common/
H A Ddstream.c831 int fd2, fd; local
835 int fd2, fd; local
943 fd = 1;
945 fd = 0;
946 fd2 = fcntl(fd, F_DUPFD, fd);
947 (void) close(fd);
948 fcntl(ds_fd, F_DUPFD, fd);
949 if (fd)
955 if ((ds_pp = popen(cmd, fd
[all...]
/osnet-11/usr/src/lib/libadm/common/
H A Dckpath.c153 int fd; local
183 if ((fd = creat(path, 0644)) < 0) {
187 (void) close(fd);
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/
H A Derror.c119 is_open (int fd) argument
125 return (HANDLE) _get_osfhandle (fd) != INVALID_HANDLE_VALUE;
130 return 0 <= fcntl (fd, F_GETFL);
149 the fd of a FILE stream is stored as a field in its allocated memory. */
H A Dstdlib.in.h236 _GL_FUNCDECL_SYS (grantpt, int, (int fd));
238 _GL_CXXALIAS_SYS (grantpt, int, (int fd));
403 _GL_FUNCDECL_SYS (ptsname, char *, (int fd));
405 _GL_CXXALIAS_SYS (ptsname, char *, (int fd));
676 _GL_FUNCDECL_SYS (unlockpt, int, (int fd));
678 _GL_CXXALIAS_SYS (unlockpt, int, (int fd));
/osnet-11/usr/src/cmd/sendmail/libsm/
H A Dstdio.c56 ** Success: 0 or greater (fd of file from open(2)).
388 ** SM_STDFDOPEN -- open file by primitive 'fd' rather than pathname
412 int oflags, tmp, fdflags, fd = *((int *) info); local
441 if ((fdflags = fcntl(fd, F_GETFL, 0)) < 0)
449 fp->f_file = fd;
/osnet-11/usr/src/lib/libast/common/sfio/
H A Dsfpopen.c182 reg int pid, fd, pkeep, ckeep, sflags;
237 fd = (sflags&SF_RDWR) == SF_RDWR ? child[ckeep] : -1;
238 if(_sfpopen(f,fd,pid,stdio) < 0)
251 /* zap fd that we don't need */
/osnet-11/usr/src/lib/libast/common/vmalloc/
H A Dmalloc.c118 ** Output files are created if they don't exist. &n and /dev/fd/n name
834 int fd; local
862 if (*file == '&' && *(file += 1) || strncmp(file, "/dev/fd/", 8) == 0 && *(file += 8))
863 fd = dup((int)atou(&file));
866 fd = open(file, O_WRONLY|O_CREAT|O_TRUNC, CREAT_MODE);
868 fd = creat(file, CREAT_MODE);
874 if (fd >= 0)
875 fcntl(fd, F_SETFD, FD_CLOEXEC);
878 return fd;
909 int fd; local
[all...]
H A Dvmtrace.c235 int fd; local
241 fd = Trfile;
243 return fd;
/osnet-11/usr/src/lib/sun_fc/common/
H A DFCHBAPort.cc303 int fd; local
324 fd = HBA::_open(FCP_DRIVER_PATH, O_RDONLY | O_NDELAY);
328 if (ioctl(fd, FCP_TGT_SEND_SCSI, fscsi) != 0) {
331 close(fd);
364 close(fd);
710 int fd; local
742 fd = HBA::_open(FCP_DRIVER_PATH, O_RDONLY | O_NDELAY);
746 if (ioctl(fd, FCP_GET_TARGET_MAPPINGS, &fioctl) != 0) {
748 close(fd);
762 close(fd);
1216 int fd = HBA::_open(path, openflag); local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dpp_sys.c603 int fd[2]; local
621 if (PerlProc_pipe(fd) < 0)
624 IoIFP(rstio) = PerlIO_fdopen(fd[0], "r"PIPE_OPEN_MODE);
625 IoOFP(wstio) = PerlIO_fdopen(fd[1], "w"PIPE_OPEN_MODE);
633 else PerlLIO_close(fd[0]);
635 else PerlLIO_close(fd[1]);
639 fcntl(fd[0],F_SETFD,fd[0] > PL_maxsysfd); /* ensure close-on-exec */
640 fcntl(fd[1],F_SETFD,fd[
2284 int fd; local
2339 int fd[2]; local
2522 int fd; local
2618 int fd; local
2699 int fd; local
3252 int fd; local
5656 fcntl_emulate_flock(int fd, int operation) argument
5713 lockf_emulate_flock(int fd, int operation) argument
[all...]
/osnet-11/usr/src/lib/libproject/common/
H A Dsetproject.c475 int fd; local
479 if ((fd = open("/dev/pool", O_RDONLY)) < 0)
481 if (ioctl(fd, POOL_STATUSQ, &status) < 0) {
482 (void) close(fd);
485 (void) close(fd);
/osnet-11/usr/src/lib/libsasl/lib/
H A Dsaslutil.c350 int fd; local
352 fd = open(DEV_RANDOM, O_RDONLY);
353 if(fd != -1) {
359 bytesread = read(fd, buf, bytesleft);
366 close(fd);
/osnet-11/usr/src/grub/grub2/grub-core/disk/
H A Dgeli.c213 int fd = open (dev, O_RDONLY); local
221 if (fd < 0)
224 s = grub_util_get_fd_sectors (fd, &log_secsize);
225 grub_util_fd_seek (fd, dev, (s << log_secsize) - 512);
228 if (grub_util_fd_read (fd, (void *) &hdr, 512) < 0)
/osnet-11/usr/src/lib/libsqlite/src/
H A Dtest2.c497 OsFile fd; local
505 rc = sqliteOsOpenReadWrite(argv[2], &fd, &readOnly);
512 rc = sqliteOsSeek(&fd, offset);
517 rc = sqliteOsWrite(&fd, "Hello, World!", 14);
518 sqliteOsClose(&fd);
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dargs.c793 int fd[2]; local
794 if(pipe(fd)<0 || (pv[0]=fd[0])<0 || (pv[1]=fd[1])<0)
810 int monitor, fd, pv[3]; local
818 fd = argp->argflag&ARG_RAW;
819 if(fd==0 && shp->subshell)
821 sfputr(shp->stk,fmtbase((long)pv[fd],10,0),0);
827 if(fd)
840 close(pv[1-fd]);
[all...]
/osnet-11/usr/src/lib/cfgadm_plugins/scsi/common/
H A Dcfga_ctl.c1107 syslock(int fd, char **errstring) argument
1113 assert(fd != -1);
1124 while ((rval = fcntl(fd, F_SETLKW, &lock)) == -1 && errno == EINTR) {
1191 wait_and_cleanup(int fd, apid_t *apidp) argument
1199 if (syslock(fd, NULL) != SCFGA_OK) {
1297 int fd; local
1309 ret = create_lock(&fd, pt->msgp, errstring);
1315 ret = syslock(fd, errstring);
1329 wait_and_cleanup(fd, apidp);
1347 (void) close(fd); /* als
[all...]
/osnet-11/usr/src/lib/libipsecutil/common/
H A Dalgs.c187 int fd, i, j, k; local
204 fd = open(tmp_name, O_WRONLY|O_CREAT|O_EXCL, CFG_PERMS);
205 if (fd == -1) {
210 f = fdopen(fd, "w");
212 (void) close(fd);
315 if (fchmod(fd, CFG_PERMS) == -1) {
319 if (fchown(fd, CFG_OWNER, CFG_GROUP) == -1) {

Completed in 63 milliseconds

<<21222324252627282930>>