Searched refs:ifd (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-9.3-release/sys/contrib/altq/altq/
H A Daltq_rmclass.c79 #define reset_cutoff(ifd) { ifd->cutoff_ = RM_MAXDEPTH; }
136 * 'pri' on the interface given by 'ifd'.
193 rmc_newclass(int pri, struct rm_ifdat *ifd, u_int nsecPerByte, argument
242 cl->ifdat_ = ifd;
317 IFQ_LOCK(ifd->ifq_);
318 if ((peer = ifd->active_[pri]) != NULL) {
321 while (peer->peer_ != ifd->active_[pri])
325 ifd->active_[pri] = cl;
344 if (ifd
358 struct rm_ifdat *ifd; local
419 rmc_wrr_set_weights(struct rm_ifdat *ifd) argument
457 rmc_get_weight(struct rm_ifdat *ifd, int pri) argument
555 rmc_delete_class(struct rm_ifdat *ifd, struct rm_class *cl) argument
681 rmc_init(struct ifaltq *ifq, struct rm_ifdat *ifd, u_int nsecPerByte, void (*restart)(struct ifaltq *), int maxq, int maxqueued, u_int maxidle, int minidle, u_int offtime, int flags) argument
761 struct rm_ifdat *ifd = cl->ifdat_; local
826 rmc_tl_satisfied(struct rm_ifdat *ifd, struct timeval *now) argument
889 struct rm_ifdat *ifd = cl->ifdat_; local
967 _rmc_wrr_dequeue_next(struct rm_ifdat *ifd, int op) argument
1123 _rmc_prr_dequeue_next(struct rm_ifdat *ifd, int op) argument
1237 rmc_dequeue_next(struct rm_ifdat *ifd, int mode) argument
1261 rmc_update_class_util(struct rm_ifdat *ifd) argument
1442 struct rm_ifdat *ifd = cl->ifdat_; local
1452 struct rm_ifdat *ifd = cl->ifdat_; local
1571 struct rm_ifdat *ifd = cl->ifdat_; local
[all...]
/freebsd-9.3-release/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_sys.c135 struct ifdrv ifd; local
138 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ);
139 ifd.ifd_len = sizeof(b_param);
140 ifd.ifd_data = &b_param;
143 ifd.ifd_cmd = BRDGGPRI;
144 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
153 ifd.ifd_cmd = BRDGGMA;
154 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) {
164 ifd.ifd_cmd = BRDGGHT;
165 if (ioctl(sock, SIOCGDRVSPEC, &ifd) <
222 struct ifdrv ifd; local
281 struct ifdrv ifd; local
324 struct ifdrv ifd; local
346 struct ifdrv ifd; local
368 struct ifdrv ifd; local
390 struct ifdrv ifd; local
412 struct ifdrv ifd; local
434 struct ifdrv ifd; local
459 struct ifdrv ifd; local
746 struct ifdrv ifd; local
774 struct ifdrv ifd; local
816 struct ifdrv ifd; local
849 struct ifdrv ifd; local
900 struct ifdrv ifd; local
944 struct ifdrv ifd; local
989 struct ifdrv ifd; local
1022 struct ifdrv ifd; local
1060 struct ifdrv ifd; local
1109 struct ifdrv ifd; local
1320 struct ifdrv ifd; local
[all...]
/freebsd-9.3-release/contrib/smbfs/lib/smb/
H A Dnb_net.c105 struct nb_ifdesc *ifd; local
123 if (strlen(p->ifa_name) >= sizeof(ifd->id_name))
126 ifd = malloc(sizeof(struct nb_ifdesc));
127 if (ifd == NULL) {
132 bzero(ifd, sizeof(struct nb_ifdesc));
133 strcpy(ifd->id_name, p->ifa_name);
134 ifd->id_flags = p->ifa_flags;
135 ifd->id_addr = ((struct sockaddr_in *)p->ifa_addr)->sin_addr;
136 ifd->id_mask = ((struct sockaddr_in *)p->ifa_netmask)->sin_addr;
137 ifd
[all...]
/freebsd-9.3-release/usr.sbin/IPXrouted/
H A Dtrace.c68 void dumptrace(FILE *fd, char *dir, struct ifdebug *ifd);
69 static int iftraceinit(struct interface *ifp, struct ifdebug *ifd);
83 iftraceinit(ifp, ifd)
85 register struct ifdebug *ifd;
89 ifd->ifd_records =
91 if (ifd->ifd_records == 0)
93 ifd->ifd_front = ifd->ifd_records;
94 ifd->ifd_count = 0;
95 for (t = ifd
[all...]
/freebsd-9.3-release/contrib/openpam/lib/libpam/
H A Dopenpam_ttyconv.c83 prompt_tty(int ifd, int ofd, const char *message, char *response, int echo) argument
105 if (tcgetattr(ifd, &tcattr) != 0) {
111 if (tcsetattr(ifd, TCSAFLUSH, &tcattr) != 0) {
144 pfd.fd = ifd;
169 if ((ret = read(ifd, &ch, 1)) < 0) {
186 if (tcsetattr(ifd, 0, &tcattr) != 0) {
290 int ifd, ofd, ret; local
297 ifd = STDIN_FILENO;
300 if ((ifd = open("/dev/tty", O_RDWR)) < 0)
303 ofd = ifd;
[all...]
/freebsd-9.3-release/lib/libusb/
H A Dlibusb10_desc.c97 struct libusb_interface_descriptor *ifd; local
170 ifd = (libusb_interface_descriptor *) (pconfd->interface + nif);
171 endd = (libusb_endpoint_descriptor *) (ifd + nalt);
195 pconfd->interface[i].altsetting = ifd;
196 ifd->endpoint = endd;
198 ifd++;
201 ifd->endpoint = endd;
203 ifd++;
215 ifd = &pconfd->interface[i].altsetting[j];
216 ifd
[all...]
/freebsd-9.3-release/usr.bin/split/
H A Dsplit.c69 static int ifd = -1, ofd = -1; /* Input/output file descriptors. */ variable
169 ifd = STDIN_FILENO;
170 else if ((ifd = open(*argv, O_RDONLY, 0)) < 0)
193 if (ifd == -1) /* Stdin by default. */
194 ifd = 0;
224 switch ((len = read(ifd, bfr, MAXBSIZE))) {
281 if ((infp = fdopen(ifd, "r")) == NULL)
331 if (fstat(ifd, &sb) == -1) {
/freebsd-9.3-release/usr.sbin/ctm/ctm_dequeue/
H A Dctm_dequeue.c57 int run_sendmail(int ifd);
175 run_sendmail(int ifd) argument
187 dup2(ifd, 0);
/freebsd-9.3-release/sys/dev/ofw/
H A Dofw_disk.c141 ihandle_t ifd; local
155 ifd = OF_open(path);
156 if (ifd == -1) {
165 sc->ofwd_instance = ifd;
/freebsd-9.3-release/contrib/ipfilter/samples/
H A Drelay.c31 int relay(ifd, ofd, rfd)
32 int ifd, ofd, rfd;
41 nfd = ifd;
53 FD_SET(ifd, &rfds);
65 if (FD_ISSET(ifd, &rfds)) {
66 rw = read(ifd, irh, ibuff + RELAY_BUFSZ - irh);
/freebsd-9.3-release/gnu/usr.bin/patch/
H A Dinp.c79 int ifd, statfailed; local
197 if ((ifd = open(filename, 0)) < 0)
200 if (read(ifd, i_womp, (int)i_size) != i_size) {
205 Close(ifd);
210 Close(ifd);
/freebsd-9.3-release/usr.bin/ar/
H A Dacpyacc.y63 static int arscp_copy(int ifd, int ofd);
274 int ifd, ofd;
294 if ((ifd = open(in, O_RDONLY)) < 0) {
298 if (arscp_copy(ifd, ofd)) {
302 close(ifd);
328 arscp_copy(int ifd, int ofd)
335 if (fstat(ifd, &sb) < 0) {
339 if ((p = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, ifd,
/freebsd-9.3-release/contrib/ntp/util/
H A Dtickadj.c835 int ifd; local
837 ifd = open(name, mode);
838 if (ifd < 0)
844 return ifd;
880 int ifd,
887 if (lseek(ifd, off, L_SET) == -1)
893 i = read(ifd, (char *)var, sizeof(int));
879 readvar( int ifd, off_t off, int *var ) argument
/freebsd-9.3-release/sbin/ifconfig/
H A Difbridge.c113 struct ifdrv ifd; local
115 memset(&ifd, 0, sizeof(ifd));
117 strlcpy(ifd.ifd_name, ifr.ifr_name, sizeof(ifd.ifd_name));
118 ifd.ifd_cmd = op;
119 ifd.ifd_len = argsize;
120 ifd.ifd_data = arg;
122 return (ioctl(sock, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));
/freebsd-9.3-release/contrib/gcc/
H A Dmips-tdump.c875 int ifd, FDR *fdp)
939 else if (ifd == -1) /* local symbol */
1015 if (ifd == -1)
1019 (long)sym_ptr->iss, ifd);
1076 unsigned int ifd = u.rndx.rfd;
1080 if (ifd == ST_RFDESCAPE)
1081 ifd = u2.isym;
1083 /* An ifd of -1 is an opaque type. An escaped index of 0 is a
1085 if (ifd == 0xffffffff
1093 fdp = &file_desc[ifd];
863 print_symbol(SYMR *sym_ptr, int number, const char *strbase, AUXU *aux_base, int ifd, FDR *fdp) argument
1063 unsigned int ifd = u.rndx.rfd; local
[all...]
H A Dmips-tfile.c476 Type = array [3 {160}] of struct _iobuf { ifd = 1, index = 1 }
599 #26 48 0x00000030 struct no name { ifd = -1, index = 1048575 }
998 symint_t ifd; /* file # tag defined in */
1899 last_func_eptr->ifd = cur_file_ptr->file_index;
1944 add_ext_symbol (EXTR *esym, int ifd)
1962 "\tesym\tv= %10ld, ifd= %2d, sc= %-12s",
1963 value, ifd, sc_str);
1978 psym->ifd = ifd;
2142 symint_t file_index = t->tag_ptr->ifd;
991 symint_t ifd; /* file # tag defined in */ member in struct:tag
1928 add_ext_symbol(EXTR *esym, int ifd) argument
4490 int ifd = eptr->ifd; local
[all...]
/freebsd-9.3-release/bin/pax/
H A Dbuf_subs.c604 wr_rdfile(ARCHD *arcn, int ifd, off_t *left) argument
621 if ((res = read(ifd, bufpt, cnt)) <= 0)
635 else if (fstat(ifd, &sb) < 0)
/freebsd-9.3-release/contrib/binutils/include/coff/
H A Dsym.h47 * "ifd" Index into the File Descriptor array.
263 int ifd; /* where the iss and index fields point into */ member in struct:ecoff_extr
/freebsd-9.3-release/usr.bin/gencat/
H A Dgencat.c135 int ofd, ifd; local
170 if ((ifd = open(*argv, O_RDONLY)) < 0)
172 MCParse(ifd);
173 close(ifd);
/freebsd-9.3-release/usr.bin/xlint/xlint/
H A Dxlint.c840 int ifd, ofd, i; local
852 if ((ifd = open(src, O_RDONLY)) == -1) {
858 if ((rlen = read(ifd, buf, MBLKSIZ)) == -1) {
869 (void)close(ifd);
/freebsd-9.3-release/contrib/binutils/bfd/
H A Decoff.c896 /* The alpha uses a negative ifd field for section symbols. */
897 if (internal_esym.ifd >= 0)
899 + internal_esym.ifd);
998 unsigned int ifd = rndx->rfd;
1002 if (ifd == 0xfff)
1003 ifd = isym;
1005 /* An ifd of -1 is an opaque type. An escaped index of 0 is a
1007 if (ifd == 0xffffffff
1017 fdr = debug_info->fdr + ifd;
1024 + ((fdr->rfdBase + ifd)
995 unsigned int ifd = rndx->rfd; local
[all...]
H A Decoffswap.h566 intern->ifd = H_GET_S16 (abfd, ext->es_ifd);
569 intern->ifd = H_GET_S32 (abfd, ext->es_ifd);
616 H_PUT_S16 (abfd, intern->ifd, ext->es_ifd);
619 H_PUT_S32 (abfd, intern->ifd, ext->es_ifd);
/freebsd-9.3-release/lib/libz/test/
H A Dminigzip.c401 int ifd = fileno(in); local
407 if (fstat(ifd, &sb) < 0) return Z_ERRNO;
412 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
/freebsd-9.3-release/sys/mips/adm5120/
H A Dif_admsw.c794 struct ifdrv *ifd; local
817 ifd = (struct ifdrv *) data;
818 if (ifd->ifd_cmd != 0 || ifd->ifd_len != sizeof(vlan_matrix)) {
823 error = copyout(vlan_matrix, ifd->ifd_data,
826 error = copyin(ifd->ifd_data, vlan_matrix,
/freebsd-9.3-release/sys/net/
H A Dif_bridge.c728 struct ifdrv *ifd = (struct ifdrv *) data; local
740 if (ifd->ifd_cmd >= bridge_control_table_size) {
744 bc = &bridge_control_table[ifd->ifd_cmd];
763 if (ifd->ifd_len != bc->bc_argsize ||
764 ifd->ifd_len > sizeof(args)) {
771 error = copyin(ifd->ifd_data, &args, ifd->ifd_len);
783 error = copyout(&args, ifd->ifd_data, ifd->ifd_len);

Completed in 225 milliseconds

12