Searched refs:fd (Results 1 - 25 of 1802) sorted by last modified time

1234567891011>>

/freebsd-9.3-release/contrib/ntp/ntpd/
H A Drefclock_gpsdjson.c552 pp->io.fd = -1;
619 if (-1 != pp->io.fd) {
620 DPRINTF(1, ("%s: closing clock, fd=%d\n",
621 up->logname, pp->io.fd));
623 pp->io.fd = -1;
718 if (-1 == pp->io.fd)
834 if (-1 != pp->io.fd) {
839 rc = write(pp->io.fd, s_req_version, rlen);
847 if (-1 != pp->io.fd)
856 if (-1 == pp->io.fd
[all...]
H A Dntp_refclock.c201 pp->io.fd = -1;
607 DPRINTF(2, ("refclock_gtlin: fd %d time %s timecode %d %s\n",
608 rbufp->fd, ulfptoa(&rbufp->recv_time, 6), dlen,
648 DPRINTF(2, ("refclock_gtraw: fd %d time %s timecode %d %s\n",
649 rbufp->fd, ulfptoa(&rbufp->recv_time, 6), bmax,
740 int fd; local
757 fd = open(dev, omode, 0777);
759 if (0 == fd) {
760 fd = dup(0);
765 if (fd <
797 refclock_setup( int fd, u_int speed, u_int lflags ) argument
1002 refclock_ioctl( int fd, u_int lflags ) argument
[all...]
H A Dntp_control.c991 int fd; local
1121 fd = open(fullpath, openmode, S_IRUSR | S_IWUSR);
1122 if (-1 == fd)
1125 fptr = fdopen(fd, "w");
H A Drefclock_jjy.c438 int fd ; local
517 fd = refclock_open ( sDeviceName, up->linespeed, up->linediscipline ) ;
518 if ( fd <= 0 ) {
533 pp->io.fd = fd ;
535 close ( fd ) ;
536 pp->io.fd = -1 ;
566 if ( -1 != pp->io.fd ) {
1345 if ( write ( pp->io.fd, pCmd, iCmdLen ) != iCmdLen ) {
1398 if ( write ( pp->io.fd, pCm
[all...]
H A Drefclock_jupiter.c190 int fd; local
197 fd = refclock_open(gpsdev, SPEED232, LDISC_RAW);
198 if (fd <= 0) {
211 pp->io.fd = fd;
213 close(fd);
214 pp->io.fd = -1;
234 if (time_pps_create(fd, &instance->pps_handle) < 0) {
276 if (pp->io.fd != -1)
932 if ((cc = write(instance->peer->procptr->io.fd, (cha
[all...]
H A Dntp_peer.c687 "fd=%d, bfd=%d, name=%.16s, flags=0x%x, ifindex=%u, sin=%s",
688 niface->fd, niface->bfd, niface->name,
884 DPRINTF(3, ("newpeer(%s): using fd %d and our addr %s\n",
885 stoa(srcadr), peer->dstadr->fd,
H A Drefclock_parse.c423 int ppsfd; /* fd to ise for PPS io */
1823 msyslog(LOG_ERR, "PARSE receiver #%d: ppsclock_init: ioctl(fd, I_PUSH, \"ppsclock\"): %m",
1851 if (ioctl(parse->generic->io.fd, I_PUSH, (caddr_t)m1) == -1)
1855 msyslog(LOG_ERR, "PARSE receiver #%d: stream_init: ioctl(fd, I_PUSH, \"parse\"): %m", CLK_UNIT(parse->peer));
1861 while(ioctl(parse->generic->io.fd, I_POP, (caddr_t)0) == 0)
1868 if (ioctl(parse->generic->io.fd, I_PUSH, (caddr_t)m1) == -1)
1870 msyslog(LOG_ERR, "PARSE receiver #%d: stream_init: ioctl(fd, I_PUSH, \"parse\"): %m", CLK_UNIT(parse->peer));
1888 while(ioctl(parse->generic->io.fd, I_POP, (caddr_t)0) == 0)
1908 if (ioctl(parse->generic->io.fd, I_STR, (caddr_t)&strioc) == -1)
1910 msyslog(LOG_ERR, "PARSE receiver #%d: stream_setcs: ioctl(fd, I_ST
[all...]
H A Dntp_io.c244 SOCKET fd; member in struct:vsock
255 * support for receiving data on fd that is not a refclock or a socket
260 SOCKET fd; /* fd to be read */ member in struct:asyncio_reader
356 int fd,
362 if (fd < 0 || fd >= FD_SETSIZE) {
364 "Too many sockets in use, FD_SETSIZE %d exceeded by fd %d",
365 FD_SETSIZE, fd);
370 FD_SET(fd,
355 maintain_activefds( int fd, int closing ) argument
472 ntpd_addremove_io_fd( int fd, int is_pipe, int remove_it ) argument
1591 SOCKET fd = INVALID_SOCKET; local
1621 int fd; local
2240 socket_broadcast_enable( struct interface * iface, SOCKET fd, sockaddr_u * baddr ) argument
2844 SOCKET fd; local
3211 read_refclock_packet( SOCKET fd, struct refclockio * rp, l_fp ts ) argument
3401 read_network_packet( SOCKET fd, struct interface * itf, l_fp ts ) argument
3712 SOCKET fd; local
4426 add_fd_to_list( SOCKET fd, enum desc_type type ) argument
4750 int fd = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE); local
4753 int fd = socket(PF_ROUTE, SOCK_RAW, 0); local
[all...]
H A Dntpd.c553 int fd; local
805 fd = open("/dev/at1", O_RDONLY);
806 if (fd >= 0) {
808 if (ioctl(fd, ACPU_LOCK, &zero) < 0)
810 close(fd);
/freebsd-9.3-release/contrib/ntp/libntp/
H A Dwork_fork.c412 int fd; local
522 for (fd = 3; fd < keep_fd; fd++)
523 if (fd != c->req_read_pipe &&
524 fd != c->resp_write_pipe)
525 close(fd);
H A Daudio.c121 FILE *fd; local
125 if ((fd = fopen(device, "r")) == NULL) {
129 if ((fd = fopen(device, "r")) == NULL) {
133 if ((fd = fopen(device, "r")) == NULL) {
141 while (fgets(line, sizeof line, fd)) {
195 fclose(fd);
228 int fd; local
252 fd = open(dname, O_RDWR | O_NONBLOCK, 0777);
253 if (fd < 0) {
255 return (fd);
[all...]
H A Drecvbuff.c264 int fd
278 if (rbufp->dstadr == NULL && rbufp->fd == fd)
280 if (rbufp->fd == fd)
H A Dntp_worker.c86 int fd; local
88 for (fd = 0; fd < keep_fd; fd++)
89 close(fd);
99 * highest fd to keep open.
117 int fd;
121 for (fd = keep_fd + 1; fd < max_fd; fd
[all...]
/freebsd-9.3-release/contrib/ntp/include/
H A Dntp.h179 SOCKET fd; /* socket descriptor */ member in struct:interface
H A Dntp_refclock.h103 int fd; /* file descriptor */ member in struct:refclockio
H A Dntp_types.h290 # define closeserial(fd) close(fd)
291 # define closesocket(fd) close(fd)
H A Drecvbuff.h65 SOCKET fd; /* fd on which it was received */ member in struct:recvbuf
/freebsd-9.3-release/crypto/openssl/ssl/
H A Dssl.h1462 int SSL_set_fd(SSL *s, int fd);
1463 int SSL_set_rfd(SSL *s, int fd);
1464 int SSL_set_wfd(SSL *s, int fd);
H A Dssl_lib.c608 int SSL_set_fd(SSL *s, int fd) argument
619 BIO_set_fd(bio, fd, BIO_NOCLOSE);
626 int SSL_set_wfd(SSL *s, int fd) argument
632 || ((int)BIO_get_fd(s->rbio, NULL) != fd)) {
639 BIO_set_fd(bio, fd, BIO_NOCLOSE);
648 int SSL_set_rfd(SSL *s, int fd) argument
654 || ((int)BIO_get_fd(s->wbio, NULL) != fd)) {
661 BIO_set_fd(bio, fd, BIO_NOCLOSE);
/freebsd-9.3-release/sys/compat/linux/
H A Dlinux_ioctl.c197 if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0)
260 "ioctl fd=%d, cmd=0x%x ('%c',%d) is not implemented",
261 args->fd, (int)(args->cmd & 0xffff),
278 if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0)
704 if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0)
803 wr.fd = args->fd;
1446 if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0)
1971 if ((error = fget(td, args->fd, CAP_IOCTL, &fp)) != 0)
2363 if ((error = fget(td, args->fd, CAP_IOCT
[all...]
/freebsd-9.3-release/contrib/libarchive/cpio/
H A Dcpio.c120 const char *, int fd);
655 int fd = -1; local
709 fd = open(srcpath, O_RDONLY | O_BINARY);
710 if (fd < 0) {
731 if (r >= ARCHIVE_WARN && fd >= 0) {
732 bytes_read = read(fd, cpio->buff, cpio->buff_size);
743 bytes_read = read(fd, cpio->buff, cpio->buff_size);
747 fd = restore_time(cpio, entry, srcpath, fd);
752 if (fd >
758 restore_time(struct cpio *cpio, struct archive_entry *entry, const char *name, int fd) argument
[all...]
/freebsd-9.3-release/contrib/libarchive/libarchive/
H A Darchive.h422 __LA_DECL int archive_read_data_into_fd(struct archive *, int fd);
694 struct archive_entry *, int /* fd */, const struct stat *);
/freebsd-9.3-release/sys/kern/
H A Dvfs_syscalls.c349 int fd; member in struct:fstatfs_args
357 int fd;
364 error = kern_fstatfs(td, uap->fd, &sf);
371 kern_fstatfs(struct thread *td, int fd, struct statfs *buf) argument
380 AUDIT_ARG_FD(fd);
381 error = getvnode(td->td_proc->p_fd, fd, CAP_FSTATFS, &fp);
599 int fd; member in struct:freebsd4_fstatfs_args
607 int fd;
615 error = kern_fstatfs(td, uap->fd, &sf);
736 int fd; member in struct:fchdir_args
858 int fd; local
1060 int fd; member in struct:openat_args
1083 kern_openat(struct thread *td, int fd, char *path, enum uio_seg pathseg, int flags, int mode) argument
1299 int fd; member in struct:mknodat_args
1322 kern_mknodat(struct thread *td, int fd, char *path, enum uio_seg pathseg, int mode, int dev) argument
1451 int fd; member in struct:mkfifoat_args
1472 kern_mkfifoat(struct thread *td, int fd, char *path, enum uio_seg pathseg, int mode) argument
1705 int fd; member in struct:symlinkat_args
1725 kern_symlinkat(struct thread *td, char *path1, int fd, char *path2, enum uio_seg segflg) argument
1866 int fd; member in struct:unlinkat_args
1875 int fd = uap->fd; local
1895 kern_unlinkat(struct thread *td, int fd, char *path, enum uio_seg pathseg, ino_t oldinum) argument
1970 int fd; member in struct:lseek_args
2069 int fd; member in struct:olseek_args
2192 kern_accessat(struct thread *td, int fd, char *path, enum uio_seg pathseg, int flags, int mode) argument
2379 int fd; member in struct:fstatat_args
2406 kern_statat(struct thread *td, int flag, int fd, char *path, enum uio_seg pathseg, struct stat *sbp) argument
2414 kern_statat_vnhook(struct thread *td, int flag, int fd, char *path, enum uio_seg pathseg, struct stat *sbp, void (*hook)(struct vnode *vp, struct stat *sbp)) argument
2657 int fd; member in struct:readlinkat_args
2681 kern_readlinkat(struct thread *td, int fd, char *path, enum uio_seg pathseg, char *buf, enum uio_seg bufseg, size_t count) argument
2841 int fd; member in struct:fchflags_args
2936 int fd = uap->fd; local
2977 kern_fchmodat(struct thread *td, int fd, char *path, enum uio_seg pathseg, mode_t mode, int flag) argument
3004 int fd; member in struct:fchmod_args
3082 int fd; member in struct:fchownat_args
3111 kern_fchownat(struct thread *td, int fd, char *path, enum uio_seg pathseg, int uid, int gid, int flag) argument
3169 int fd; member in struct:fchown_args
3296 int fd; member in struct:futimesat_args
3318 kern_utimesat(struct thread *td, int fd, char *path, enum uio_seg pathseg, struct timeval *tptr, enum uio_seg tptrseg) argument
3389 int fd; member in struct:futimes_args
3406 kern_futimes(struct thread *td, int fd, struct timeval *tptr, enum uio_seg tptrseg) argument
3557 int fd; member in struct:fsync_args
3784 int fd; member in struct:mkdirat_args
3804 kern_mkdirat(struct thread *td, int fd, char *path, enum uio_seg segflg, int mode) argument
3896 kern_rmdirat(struct thread *td, int fd, char *path, enum uio_seg pathseg) argument
3968 int fd; member in struct:ogetdirentries_args
4127 int fd; member in struct:getdirentries_args
4155 kern_getdirentries(struct thread *td, int fd, char *buf, u_int count, long *basep) argument
4234 int fd; member in struct:getdents_args
4341 getvnode(struct filedesc *fdp, int fd, cap_rights_t rights, struct file **fpp) argument
4793 kern_posix_fallocate(struct thread *td, int fd, off_t offset, off_t len) argument
4896 kern_posix_fadvise(struct thread *td, int fd, off_t offset, off_t len, int advice) argument
[all...]
/freebsd-9.3-release/contrib/ntp/ntpdate/
H A Dntpdate.c118 SOCKET fd[MAX_AF]; variable
634 close (fd);
1727 fd[nbsock] = socket(res->ai_family, res->ai_socktype, res->ai_protocol);
1728 if (fd[nbsock] == SOCKET_ERROR) {
1743 if (setsockopt(fd[nbsock], SOL_SOCKET, SO_REUSEADDR, (void*) &optval, sizeof(optval)) < 0) {
1751 if (setsockopt(fd[nbsock], IPPROTO_IPV6, IPV6_V6ONLY, (void*) &optval, sizeof(optval)) < 0) {
1768 rc = bind(fd[nbsock], &addr.sa, SOCKLEN(&addr));
1779 fdmask[nbsock].fd = fd[nbsock];
1782 FD_SET(fd[nbsoc
[all...]
/freebsd-9.3-release/crypto/openssl/
H A De_os.h500 # define SHUTDOWN(fd) close(fd)
501 # define SHUTDOWN2(fd) close(fd)
516 # define SHUTDOWN(fd) { shutdown((fd),0); closesocket(fd); }
517 # define SHUTDOWN2(fd) { shutdown((fd),2); closesocket(fd); }
[all...]

Completed in 373 milliseconds

1234567891011>>