/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 60 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \ 62 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \ 451 dump_elf32(dtrace_hdl_t *dtp, const dof_hdr_t *dof, int fd) argument 540 if (dt_write(dtp, fd, &elf_file, 564 if (dt_write(dtp, fd, &elf_file, 588 dump_elf64(dtrace_hdl_t *dtp, const dof_hdr_t *dof, int fd) argument 677 if (dt_write(dtp, fd, &elf_file, 697 if (dt_write(dtp, fd, &elf_file, 981 dt_link_error(dtrace_hdl_t *dtp, Elf *elf, int fd, dt_link_pair_t *bufs, argument 994 if (fd > 1014 int fd, i, ndx, eprobe, mod = 0; local 1472 int fd, status, i, cur; local [all...] |
/osnet-11/usr/src/lib/libnsl/rpc/ |
H A D | netnamer.c | 199 FILE *fd; local 201 fd = fopen(NETIDFILE, "rF"); 202 if (fd == NULL) { 212 while (!feof(fd)) { 213 res = fgets(buf, sizeof (buf), fd); 238 (void) fclose(fd); 245 (void) fclose(fd);
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | Pgcore.c | 116 int fd; local 119 if ((fd = creat64(fname, 0666)) < 0) 122 if ((err = Pfgcore(P, fd, content)) != 0) { 123 (void) close(fd); 128 return (close(fd)); 389 write_note(int fd, uint_t type, const void *desc, size_t descsz, off64_t *offp) argument 406 if (pwrite64(fd, &n, sizeof (n), *offp) != sizeof (n)) 411 if (pwrite64(fd, desc, n.nhdr.n_descsz, *offp) != n.nhdr.n_descsz) 993 Pfgcore(struct ps_prochandle *P, int fd, core_content_t content) argument 1003 if (ftruncate64(fd, [all...] |
H A D | Psyscall.c | 81 int fd; local 137 if ((fd = open(pathname, O_RDONLY)) < 0 || 138 (fd = dupfd(fd, 0)) < 0) 140 P->agentstatfd = fd; 143 if ((fd = open(pathname, O_WRONLY)) < 0 || 144 (fd = dupfd(fd, 0)) < 0) 146 P->agentctlfd = fd;
|
/osnet-11/usr/src/lib/librdc/common/ |
H A D | rdcpersist.c | 137 int fd; local 154 fd = open(SV_DEVICE, O_RDONLY); 155 if (fd < 0) { 163 if (ioctl(fd, SVIOC_ENABLE, &svc) < 0) { 173 close(fd); 186 int fd = -1; local 212 fd = open(SV_DEVICE, O_RDONLY); 213 if (fd < 0) 220 if (ioctl(fd, SVIOC_ENABLE, &svcv) < 0) { 234 if (ioctl(fd, SVIOC_ENABL [all...] |
/osnet-11/usr/src/lib/libdiskmgt/common/ |
H A D | partition.c | 310 partition_has_fdisk(disk_t *dp, int fd) argument 326 if ((ioctl(fd, DKIOCGMBOOT, bootsect) < 0) && (errno != ENOTTY)) { 552 int fd; local 568 if ((fd = open_disk(disk, opath, opath_len)) < 0) { 573 if (!media_read_info(fd, &minfo)) { 574 (void) close(fd); 578 if (!partition_has_fdisk(disk, fd)) { 579 (void) close(fd); 583 if (lseek(fd, 0, 0) == -1) { 584 (void) close(fd); [all...] |
H A D | inuse_mnt.c | 368 if ((fds[0].fd = open("/etc/mnttab", O_RDONLY)) != -1) { 373 (void) read(fds[0].fd, buf, (size_t)(sizeof (buf) - 1)); 374 (void) lseek(fds[0].fd, 0, SEEK_SET); 383 (void) read(fds[0].fd, buf, (size_t)(sizeof (buf) - 1)); 384 (void) lseek(fds[0].fd, 0, SEEK_SET);
|
/osnet-11/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 640 int fd, retval; local 653 fd = socket(af, SOCK_STREAM, 0); 654 if (fd < 0) { 664 retval = fcntl(fd, F_SETFL, O_NONBLOCK); 669 (void) close(fd); 685 retval = connect(fd, (struct sockaddr *)v4dest, 696 retval = connect(fd, (struct sockaddr *)v6dest, 704 (void) close(fd); 713 (void) close(fd); 718 * for all other cases, we poll on the fd [all...] |
/osnet-11/usr/src/cmd/sendmail/libmilter/ |
H A D | worker.c | 50 int fd = WR_PIPE; \ 51 if (write(fd, &evt, sizeof(evt)) != sizeof(evt)) \ 224 ** fd -- file descriptor 232 nonblocking(int fd, const char *name) argument 237 r = fcntl(fd, F_GETFL, 0); 245 r = fcntl(fd, F_SETFL, r | O_NONBLOCK); 347 #define WAIT_FD(i) (pfd[i].fd) 438 pfd[nfd].fd = RD_PIPE; 488 pfd[nfd].fd = ctx->ctx_sd; 556 ("PIPE DONE READ i=[%d] fd [all...] |
H A D | comm.c | 229 ** fd -- socket descriptor 241 retry_writev(fd, iov, iovcnt, timeout) 242 socket_t fd; 270 FD_WR_INIT(fd, wrs); 271 i = FD_WR_READY(fd, wrs, timeout); 280 n = writev(fd, iov, iovcnt);
|
/osnet-11/usr/src/lib/libwrap/ |
H A D | options.c | 239 write(request->fd, "", 1); 245 write(request->fd, obuf, strlen(obuf)); 338 if (setsockopt(request->fd, SOL_SOCKET, SO_LINGER, (char *) &linger, 354 if (dry_run == 0 && setsockopt(request->fd, SOL_SOCKET, SO_KEEPALIVE, 396 if (maybe_dup2(request->fd, 0) != 0 || 397 maybe_dup2(request->fd, 1) != 1 || 398 maybe_dup2(request->fd, 2) != 2) { 401 if (request->fd > 2) 402 close(request->fd);
|
/osnet-11/usr/src/lib/libshell/common/bltins/ |
H A D | hist.c | 36 static void hist_subst(const char*, int fd, char*); 286 static void hist_subst(const char *command,int fd,char *replace) argument 294 if((size = lseek(fd,(off_t)0,SEEK_END)) < 0) 296 lseek(fd,(off_t)0,SEEK_SET); 299 if(read(fd,string,c)!=c)
|
/osnet-11/usr/src/lib/libshell/common/sh/ |
H A D | subshell.c | 84 short pipefd; /* read fd if pipe is created */ 114 register int fd; local 118 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0) 120 fcntl(fd,F_SETFD,FD_CLOEXEC); 121 VALIDATE_FD(shp, fd); 122 shp->fdstatus[fd] = shp->fdstatus[1]|IOCLEX; 129 if((fd=sffileno(sfstdout))<0) 148 VALIDATE_FD(shp, fd); 149 shp->fdstatus[fd] = IOREAD|IOWRITE; 151 if(fd 425 sh_subsavefd(register int fd) argument 628 int fd=sfsetfd(iop,3); local [all...] |
/osnet-11/usr/src/lib/libsmbfs/common/ |
H A D | smbfs_door.c | 232 int fd, rc; local 234 fd = open(svc_door, O_RDONLY, 0); 235 if (fd < 0) { 241 rc = door_call(fd, da); 242 (void) close(fd);
|
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_rcv.c | 49 _tx_rcv(int fd, void *buf, unsigned nbytes, int *flags, int api_semantics) argument 59 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 109 retval = ioctl(fd, I_NREAD, &msglen); 179 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { 302 retval = getmsg(fd, &ctlbuf,
|
H A D | t_rcvv.c | 50 _tx_rcvv(int fd, struct t_iovec *tiov, unsigned int tiovcount, int *flags, argument 63 if ((tiptr = _t_checkfd(fd, 0, api_semantics)) == NULL) 115 retval = ioctl(fd, I_NREAD, &msglen); 198 if ((retval = getmsg(fd, &ctlbuf, &databuf, &flg)) < 0) { 325 retval = getmsg(fd, &ctlbuf,
|
/osnet-11/usr/src/lib/libparted/common/lib/ |
H A D | localcharset.c | 159 int fd; local 168 fd = open (file_name, 170 if (fd < 0) 177 fp = fdopen (fd, "r"); 181 close (fd);
|
/osnet-11/usr/src/lib/libdscp/ |
H A D | libdscp.c | 360 int fd; local 386 if ((fd = open(DSCP_CONFIGFILE, O_RDONLY)) < 0) { 393 i = read(fd, &ifname[count], size - count); 395 (void) close(fd); 401 (void) close(fd);
|
/osnet-11/usr/src/lib/fm/libfmd_agent/common/ |
H A D | fmd_agent.c | 163 int fd, err; local 166 if ((fd = open("/dev/fm", mode)) < 0) 172 (void) close(fd); 177 hdl->agent_devfd = fd; 185 (void) close(fd);
|
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/ |
H A D | localcharset.c | 157 int fd; local 166 fd = open (file_name, 168 if (fd < 0) 175 fp = fdopen (fd, "r"); 179 close (fd);
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | catopen.c | 390 int fd; local 397 fd = nls_safe_open(name, &statbuf, &trust, safe); 399 if (fd == -1) { 403 addr = mmap(0, (size_t)statbuf.st_size, PROT_READ, MAP_SHARED, fd, 0); 404 (void) close(fd);
|
/osnet-11/usr/src/lib/libc/port/threads/ |
H A D | scalls.c | 507 read(int fd, void *buf, size_t size) argument 512 PERFORM(__read(fd, buf, size)) 516 write(int fd, const void *buf, size_t size) argument 521 PERFORM(__write(fd, buf, size)) 525 getmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr, argument 531 PERFORM(__getmsg(fd, ctlptr, dataptr, flagsp)) 535 getpmsg(int fd, struct strbuf *ctlptr, struct strbuf *dataptr, argument 542 PERFORM(__getpmsg(fd, ctlptr, dataptr, bandp, flagsp)) 546 putmsg(int fd, const struct strbuf *ctlptr, argument 553 PERFORM(__putmsg(fd, ctlpt 557 __xpg4_putmsg(int fd, const struct strbuf *ctlptr, const struct strbuf *dataptr, int flags) argument 568 putpmsg(int fd, const struct strbuf *ctlptr, const struct strbuf *dataptr, int band, int flags) argument 579 __xpg4_putpmsg(int fd, const struct strbuf *ctlptr, const struct strbuf *dataptr, int band, int flags) argument 818 openat(int fd, const char *path, int oflag, ...) argument 851 openat64(int fd, const char *path, int oflag, ...) argument [all...] |
/osnet-11/usr/src/lib/lvm/libpreen/common/ |
H A D | mdpreen.c | 240 int fd; local 302 if ((fd = open(devname, O_RDONLY, 0)) < 0) { 314 if (ioctl(fd, DKIOCINFO, &cinfo) != 0) { 316 (void) close(fd); 321 (void) close(fd); /* sd/ssd bug */
|
/osnet-11/usr/src/lib/scsi/plugins/scsi/engines/uscsi/ |
H A D | uscsi.c | 43 int fd; member in struct:uscsi_dev 61 if ((dp->fd = open(target_name, O_RDONLY)) < 0) { 80 if (dp->fd > 0) 81 (void) close(dp->fd); 198 if (ioctl(dp->fd, USCSICMD, &cmd) < 0) {
|
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | FCHBANPIVPort.cc | 107 int fd = HBA::_open(path, O_NDELAY | O_RDONLY); local 111 HBA::_ioctl(fd, cmd, (uchar_t *)fcio); 114 HBA::_ioctl(fd, cmd, (uchar_t *)fcio); 119 close(fd); 124 close(fd);
|