Searched defs:fd (Results 526 - 550 of 648) sorted by relevance

<<212223242526

/osnet-11/usr/src/lib/fm/libldom/sparc/
H A Dldmsvcs_utils.c98 int fd; member in struct:listdata_s
160 (void) close(lsp->fds_chan.fd);
170 * read size bytes of data from a streaming fd into buf
173 read_stream(int fd, void *buf, size_t size) argument
182 pollfd.fd = fd;
191 if ((rv = read(fd, (void *)currentp, data_left)) < 0) {
218 poller_handle_data(int fd, size_t payloadsize) argument
232 if (read_stream(fd, pr, prlen) != 0)
244 pollbase.list[i]->fd
[all...]
H A Dldom_xmpp_client.c64 int fd; member in struct:xmpp_conn
113 typedef int (*SSL_set_fd_pt)(SSL *ssl, int fd);
251 conn->fd = sock;
266 (void) close(conn->fd);
267 conn->fd = -1;
290 count = read(conn->fd, buf, size);
307 count = send(conn->fd, buf, size, 0);
372 pipe_fd->fd = xmpp_notify_pipe[1]; /* notification pipe */
374 recv_fd->fd = conn.fd; /* XMP
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dsendto_kdc.c669 state->fd = INVALID_SOCKET;
711 int fd, e; local
716 fd = socket(ai->ai_family, ai->ai_socktype, 0);
717 if (fd == INVALID_SOCKET) {
723 if (fd >= FD_SETSIZE) {
724 closesocket(fd);
726 dprint("socket: fd %d too high\n", fd);
730 set_cloexec_fd(fd);
736 if (ioctlsocket(fd, FIONBI
924 get_so_error(int fd) argument
[all...]
/osnet-11/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_db2.c745 int fd; local
785 fd = open(okname, O_CREAT | O_RDWR | O_TRUNC, 0600);
786 if (fd < 0) {
793 close(fd);
815 int nb, fd; local
825 if ((fd = open(filename, O_RDWR, 0)) < 0) {
829 set_cloexec_fd(fd);
833 if (fstat(fd, &statb) == -1) {
850 nb = read(fd, buf, BUFSIZ);
865 lseek(fd, po
[all...]
/osnet-11/usr/src/grub/grub2/grub-core/kern/emu/
H A Dhostdisk.c155 int fd; member in struct:grub_util_biosdisk_data
184 configure_device_driver (int fd) argument
188 if (fstat (fd, &st) < 0 || ! S_ISCHR (st.st_mode))
194 if (ioctl (fd, FDIOCGETOPTS, &floppy_opts) == -1)
197 if (ioctl (fd, FDIOCSETOPTS, &floppy_opts) == -1)
269 grub_util_get_fd_sectors (int fd, unsigned *log_secsize) argument
282 if (fstat (fd, &st) < 0)
297 if (ioctl (fd, DIOCGMEDIASIZE, &nr))
299 if (ioctl (fd, DKIOCGETBLOCKCOUNT, &nr))
301 configure_device_driver (fd);
398 int fd; local
509 int fd; local
707 int fd; local
751 grub_util_fd_seek(int fd, const char *name, grub_uint64_t off) argument
768 grub_util_fd_seek(int fd, const char *name, grub_uint64_t off) argument
781 int fd; local
943 grub_util_fd_read(int fd, char *buf, size_t len) argument
969 nwrite(int fd, const char *buf, size_t len) argument
996 int fd; local
1049 int fd; local
2202 int fd; local
[all...]
/osnet-11/usr/src/grub/grub2/util/
H A Dgetroot.c689 int fd = open (os_dev, O_RDONLY); local
690 if (fd < 0)
693 int n = read (fd, buf, sizeof (buf));
694 close (fd);
/osnet-11/usr/src/lib/auditd_plugins/binfile/
H A Dbinfile.c438 write_file_token(int fd, char *name, plg_ctrl_t *ctrl) argument
462 if (write(fd, for_adr, adr_count(&adr)) < 0) {
646 "(%s, %s [fd: %d])\n",
/osnet-11/usr/src/lib/cfgadm_plugins/ib/common/
H A Dcfga_ib.c754 int fd = -1; local
760 if ((fd = open(IB_STATIC_APID, O_RDONLY)) == -1) {
790 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) {
793 (void) close(fd);
807 (void) close(fd);
813 (void) close(fd);
822 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) {
831 (void) close(fd);
/osnet-11/usr/src/lib/cfgadm_plugins/sata/common/
H A Dcfga_sata.c2005 int fd = -1; local
2019 if ((fd = open(ap_id, O_RDONLY)) == -1) {
2047 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) {
2073 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) {
2078 (void) close(fd);
2083 if (fd != -1) {
2084 (void) close(fd);
/osnet-11/usr/src/lib/cfgadm_plugins/sbd/common/
H A Dap.h101 int fd; member in struct:__anon906
H A Dap_sbd.c50 if (a->fd == -1 || a->ctl == NULL)
60 DBG("ioctl(%d SBD_CMD_GETNCM, 0x%p)\n", a->fd, (void *)ctl);
62 if (ioctl(a->fd, SBD_CMD_GETNCM, ctl) == -1) {
80 int fd; local
95 if (a->fd == -1) {
101 if ((fd = open(a->path, oflag, 0)) == -1) {
105 a->fd = fd;
107 fd = a->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/cfgadm_plugins/usb/common/
H A Dcfga_usb.c624 int fd = -1; local
638 if ((fd = open(ap_id, O_RDONLY)) == -1) {
661 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) {
691 if (ioctl(fd, DEVCTL_AP_CONTROL, &ioctl_data) != 0) {
698 (void) close(fd);
704 if (fd != -1) {
705 (void) close(fd);
/osnet-11/usr/src/cmd/sendmail/src/
H A Dusersmtp.c744 auto int fd; local
758 pid = prog_open(argv, &fd, CurEnv);
763 (void *) &fd, SM_IO_RDONLY, NULL);
3101 /* don't try to read from a non-existent fd */
H A Dutil.c1659 ** fd -- file descriptor to check.
1667 checkfdopen(fd, where)
1668 int fd;
1674 if (fstat(fd, &st) < 0 && errno == EBADF)
1676 syserr("checkfdopen(%d): %s not open as expected!", fd, where);
1700 register int fd; local
1713 for (fd = 0; fd < maxfd; fd++)
1717 if (fstat(fd,
1762 register int fd; local
2097 int fd; local
[all...]
/osnet-11/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c831 nread (int fd, char *buf, size_t len) argument
837 int ret = read (fd, buf, len);
857 nwrite (int fd, char *buf, size_t len) argument
863 int ret = write (fd, buf, len);
934 int fd = geometry->flags; local
937 if (fd == -1 || fd != disks[drive].flags)
952 if (_llseek (fd, offset >> 32, offset & 0xffffffff, &result, SEEK_SET))
959 if (lseek (fd, offset, SEEK_SET) != offset)
976 if (nread (fd, bu
[all...]
/osnet-11/usr/src/cmd/sendmail/db/
H A Ddb_int.h260 int fd; /* Fcntl(2) locking file descriptor. member in struct:__db_reginfo
/osnet-11/usr/src/cmd/ntfsprogs/
H A Dntfsundelete.c1501 * @fd: File descriptor to write to
1510 static unsigned int write_data(int fd, const char *buffer, argument
1520 result1 = write(fd, buffer, bufsize);
1528 result2 = write(fd, buffer, bufsize);
1661 int fd = -1; local
1726 fd = open_file(pathname);
1727 if (fd < 0) {
1733 if (write_data(fd, d->data, d->size_data) < d->size_data) {
1735 close(fd);
1739 if (close(fd) <
2024 int fd; local
[all...]
/osnet-11/usr/src/lib/libbe/common/
H A Dbe_utils.c1640 int fd; local
1683 if ((fd = mkstemp(tmp_vfstab)) == -1) {
1690 if ((tfile = fdopen(fd, "w")) == NULL) {
1694 (void) close(fd);
/osnet-11/usr/src/lib/libbsm/common/
H A Dadt.c591 adt_load_termid(int fd, adt_termid_t **termid) argument
601 if (getpeername(fd, (struct sockaddr *)&peer, (socklen_t *)&peerlen)
614 if (getsockname(fd, (struct sockaddr *)&sock,
/osnet-11/usr/src/lib/libc/port/aio/
H A Daio.c235 _aio_close(int fd) argument
237 if (fd < 0) /* avoid cancelling everything */
243 (void) aiocancel_all(fd);
250 CLEAR_KAIO_SUPPORTED(fd);
314 aioread(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument
317 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOREAD));
321 aiowrite(int fd, caddr_t buf, int bufsz, off_t offset, int whence, argument
324 return (_aiorw(fd, buf, bufsz, offset, whence, resultp, AIOWRITE));
329 aioread64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, argument
332 return (_aiorw(fd, bu
336 aiowrite64(int fd, caddr_t buf, int bufsz, off64_t offset, int whence, aio_result_t *resultp) argument
344 _aiorw(int fd, caddr_t buf, int bufsz, offset_t offset, int whence, aio_result_t *resultp, int mode) argument
685 aiocancel_all(int fd) argument
761 _aio_cancel_work(aio_worker_t *aiowp, int fd, int *canceled, int *done) argument
[all...]
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetutx.c118 static int fd = -1; /* File descriptor for the utmpx file. */ variable
121 static int tempfd = -1; /* To store fd between lockutx() and unlockutx() */
191 if (fd < 0) {
193 if ((fd = open(utmpxfile, O_RDWR|O_CREAT, 0644)) < 0) {
201 if ((fd = open(utmpxfile, O_RDONLY)) < 0)
205 (void) close(fd);
206 fd = -1;
215 (void) close(fd);
216 fd = -1;
629 if (fd <
[all...]
/osnet-11/usr/src/lib/libc/port/rt/
H A Dmqueue.c452 int fd; local
482 if ((fd = __pos4obj_open(path, MQ_PERM_TYPE, oflag,
487 (void) __close_nc(fd);
523 if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
530 if (fchmod(fd, mode) < 0)
533 if (ftruncate64(fd, (off64_t)total_size) < 0)
536 if ((fd = __pos4obj_open(path, MQ_DATA_TYPE,
542 if (read(fd, &total_size, sizeof (total_size)) !=
562 MAP_SHARED, fd, (off64_t)0)) == MAP_FAILED)
568 (void) __close_nc(fd);
[all...]
/osnet-11/usr/src/lib/libsqlite/src/
H A Dos.c255 int *aPending; /* Malloced space holding fd's awaiting a close() */
296 int fd, /* The file descriptor used in the key */
306 rc = fstat(fd, &statbuf);
468 id->fd = open(zFilename, O_RDWR|O_CREAT|O_LARGEFILE|O_BINARY, 0644);
469 if( id->fd<0 ){
475 id->fd = open(zFilename, O_RDONLY|O_LARGEFILE|O_BINARY);
476 if( id->fd<0 ){
484 rc = findLockInfo(id->fd, &id->pLock, &id->pOpen);
487 close(id->fd);
491 TRACE3("OPEN %-3d %s\n", id->fd, zFilenam
295 findLockInfo( int fd, struct lockInfo **ppLock, struct openCnt **ppOpen ) argument
[all...]
/osnet-11/usr/src/lib/libsuri/common/
H A Dsuri.c328 int fd, use_mkdirp, mkret; local
368 if ((fd = open64(suri_file->sf_prop_path, SURI_DEF_OPEN_FLAGS,
380 if (ftruncate64(fd, (off64_t)size) != 0) {
391 (void) close(fd);

Completed in 106 milliseconds

<<212223242526