/freebsd-13-stable/sys/net/altq/ |
H A D | altq_rmclass.c | 67 #define reset_cutoff(ifd) { ifd->cutoff_ = RM_MAXDEPTH; } 124 * 'pri' on the interface given by 'ifd'. 181 rmc_newclass(int pri, struct rm_ifdat *ifd, u_int nsecPerByte, argument 234 cl->ifdat_ = ifd; 312 IFQ_LOCK(ifd->ifq_); 313 if ((peer = ifd->active_[pri]) != NULL) { 316 while (peer->peer_ != ifd->active_[pri]) 320 ifd->active_[pri] = cl; 339 if (ifd 353 struct rm_ifdat *ifd; local 410 rmc_wrr_set_weights(struct rm_ifdat *ifd) argument 448 rmc_get_weight(struct rm_ifdat *ifd, int pri) argument 546 rmc_delete_class(struct rm_ifdat *ifd, struct rm_class *cl) argument 671 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 751 struct rm_ifdat *ifd = cl->ifdat_; local 816 rmc_tl_satisfied(struct rm_ifdat *ifd, struct timeval *now) argument 879 struct rm_ifdat *ifd = cl->ifdat_; local 957 _rmc_wrr_dequeue_next(struct rm_ifdat *ifd, int op) argument 1113 _rmc_prr_dequeue_next(struct rm_ifdat *ifd, int op) argument 1227 rmc_dequeue_next(struct rm_ifdat *ifd, int mode) argument 1251 rmc_update_class_util(struct rm_ifdat *ifd) argument 1432 struct rm_ifdat *ifd = cl->ifdat_; local 1442 struct rm_ifdat *ifd = cl->ifdat_; local 1556 struct rm_ifdat *ifd = cl->ifdat_; local [all...] |
/freebsd-13-stable/usr.sbin/bsnmpd/modules/snmp_bridge/ |
H A D | bridge_sys.c | 138 struct ifdrv ifd; local 141 strlcpy(ifd.ifd_name, bif->bif_name, IFNAMSIZ); 142 ifd.ifd_len = sizeof(b_param); 143 ifd.ifd_data = &b_param; 146 ifd.ifd_cmd = BRDGGPRI; 147 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) { 156 ifd.ifd_cmd = BRDGGMA; 157 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 0) { 167 ifd.ifd_cmd = BRDGGHT; 168 if (ioctl(sock, SIOCGDRVSPEC, &ifd) < 225 struct ifdrv ifd; local 284 struct ifdrv ifd; local 327 struct ifdrv ifd; local 349 struct ifdrv ifd; local 371 struct ifdrv ifd; local 393 struct ifdrv ifd; local 415 struct ifdrv ifd; local 437 struct ifdrv ifd; local 462 struct ifdrv ifd; local 748 struct ifdrv ifd; local 776 struct ifdrv ifd; local 818 struct ifdrv ifd; local 851 struct ifdrv ifd; local 902 struct ifdrv ifd; local 946 struct ifdrv ifd; local 991 struct ifdrv ifd; local 1024 struct ifdrv ifd; local 1062 struct ifdrv ifd; local 1111 struct ifdrv ifd; local 1322 struct ifdrv ifd; local [all...] |
/freebsd-13-stable/contrib/smbfs/lib/smb/ |
H A D | nb_net.c | 105 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-13-stable/contrib/elftoolchain/libelftc/ |
H A D | elftc_copyfile.c | 43 * Copy the contents referenced by 'ifd' to 'ofd'. Returns 0 on 48 elftc_copyfile(int ifd, int ofd) argument 57 if (fstat(ifd, &sb) < 0) 72 buf = mmap(NULL, file_size, PROT_READ, MAP_SHARED, ifd, (off_t) 0); 88 if ((nr = read(ifd, b, n)) < 0) {
|
/freebsd-13-stable/lib/libifconfig/ |
H A D | libifconfig_bridge.c | 54 struct ifdrv ifd = { 0 }; local 57 strlcpy(ifd.ifd_name, name, sizeof(ifd.ifd_name)); 58 ifd.ifd_cmd = cmd; 59 ifd.ifd_data = arg; 60 ifd.ifd_len = arglen; 62 return (ifconfig_ioctlwrap(h, AF_LOCAL, req, &ifd));
|
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/stride_dd/ |
H A D | stride_dd.c | 126 int ifd; local 133 ifd = open(ifile, O_RDONLY); 134 if (ifd == -1) { 166 c = read(ifd, buf, bsize); 198 if (lseek(ifd, (stride - 1) * bsize, SEEK_CUR) == -1) { 211 (void) close(ifd);
|
/freebsd-13-stable/contrib/mandoc/ |
H A D | dbm_map.c | 51 static int ifd; variable 65 if ((ifd = open(fname, O_RDONLY)) == -1) 67 if (fstat(ifd, &st) == -1) 79 ifd, 0)) == MAP_FAILED) 122 close(ifd); 132 if (close(ifd) == -1)
|
/freebsd-13-stable/lib/libopenbsd/ |
H A D | imsg.c | 60 struct imsg_fd *ifd; local 72 if ((ifd = calloc(1, sizeof(struct imsg_fd))) == NULL) 80 free(ifd); 108 if (ifd != NULL) { 109 ifd->fd = fd; 110 TAILQ_INSERT_TAIL(&ibuf->fds, ifd, 112 ifd = NULL; 121 free(ifd); 275 struct imsg_fd *ifd; local 277 if ((ifd [all...] |
/freebsd-13-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_ttyconv.c | 84 prompt_tty(int ifd, int ofd, const char *message, char *response, int echo) argument 100 if (tcgetattr(ifd, &tcattr) != 0) { 106 if (tcsetattr(ifd, TCSAFLUSH, &tcattr) != 0) { 145 pfd.fd = ifd; 170 if ((ret = read(ifd, &ch, 1)) < 0) { 187 if (tcsetattr(ifd, 0, &tcattr) != 0) { 291 int ifd, ofd, ret; local 298 ifd = STDIN_FILENO; 301 if ((ifd = open("/dev/tty", O_RDWR)) < 0) 304 ofd = ifd; [all...] |
/freebsd-13-stable/tools/tools/intel-ucode-split/ |
H A D | intel-ucode-split.c | 126 int c, ifd, ofd; local 148 ifd = open(argv[0], O_RDONLY); 149 if (ifd < 0) 158 rv = read(ifd, &hdr, sizeof(hdr)); 178 if (lseek(ifd, resid, SEEK_CUR) == -1) 201 rv = read(ifd, buf, len);
|
/freebsd-13-stable/lib/libusb/ |
H A D | libusb10_desc.c | 104 struct libusb_interface_descriptor *ifd; local 177 ifd = (libusb_interface_descriptor *) (pconfd->interface + nif); 178 endd = (libusb_endpoint_descriptor *) (ifd + nalt); 202 pconfd->interface[i].altsetting = ifd; 203 ifd->endpoint = endd; 205 ifd++; 208 ifd->endpoint = endd; 210 ifd++; 222 ifd = &pconfd->interface[i].altsetting[j]; 223 ifd [all...] |
/freebsd-13-stable/usr.bin/split/ |
H A D | split.c | 72 static int ifd = -1, ofd = -1; /* Input/output file descriptors. */ variable 159 ifd = STDIN_FILENO; 160 else if ((ifd = open(*argv, O_RDONLY, 0)) < 0) 183 if (ifd == -1) /* Stdin by default. */ 184 ifd = 0; 214 switch ((len = read(ifd, bfr, MAXBSIZE))) { 271 if ((infp = fdopen(ifd, "r")) == NULL) 321 if (fstat(ifd, &sb) == -1) {
|
/freebsd-13-stable/sys/dev/ofw/ |
H A D | ofw_disk.c | 143 ihandle_t ifd; local 157 ifd = OF_open(path); 158 if (ifd == -1) { 167 sc->ofwd_instance = ifd;
|
/freebsd-13-stable/contrib/ipfilter/samples/ |
H A D | relay.c | 31 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-13-stable/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 47 create_binary(int ifd, int ofd) argument 57 if ((e = elf_begin(ifd, ELF_C_READ, NULL)) == NULL) 139 create_elf_from_binary(struct elfcopy *ecp, int ifd, const char *ifn) argument 157 if (fstat(ifd, &sb) == -1) 163 if (read(ifd, content, sb.st_size) != sb.st_size)
|
H A D | archive.c | 51 static void ac_read_objs(struct elfcopy *ecp, int ifd); 342 ac_detect_ar(int ifd) argument 352 if (archive_read_open_fd(a, ifd, 10240) == ARCHIVE_OK) 361 ac_create_ar(struct elfcopy *ecp, int ifd, int ofd) argument 364 ac_read_objs(ecp, ifd); 371 ac_read_objs(struct elfcopy *ecp, int ifd) argument 382 if (lseek(ifd, 0, SEEK_SET) == -1) 387 AC(archive_read_open_fd(a, ifd, 10240));
|
/freebsd-13-stable/usr.bin/ar/ |
H A D | acpyacc.y | 64 static int arscp_copy(int ifd, int ofd); 275 int ifd, ofd; 295 if ((ifd = open(in, O_RDONLY)) < 0) { 299 if (arscp_copy(ifd, ofd)) { 303 close(ifd); 329 arscp_copy(int ifd, int ofd) 336 if (fstat(ifd, &sb) < 0) { 340 if ((p = mmap(NULL, sb.st_size, PROT_READ, MAP_SHARED, ifd,
|
/freebsd-13-stable/contrib/ntp/util/ |
H A D | tickadj.c | 835 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-13-stable/sbin/nvmecontrol/ |
H A D | passthru.c | 161 int fd = -1, ifd = -1; local 174 if (*opt.ifn && (ifd = open(opt.ifn, O_RDONLY)) == -1) { 196 (bytes_read = read(ifd, data, opt.data_len)) != 261 if (ifd > -1) 262 close(ifd);
|
/freebsd-13-stable/usr.bin/patch/ |
H A D | inp.c | 140 int ifd, statfailed; local 186 if ((ifd = open(filename, O_RDONLY)) < 0) 190 i_womp = mmap(NULL, i_size, PROT_READ, MAP_PRIVATE, ifd, 0); 194 close(ifd); 201 close(ifd);
|
/freebsd-13-stable/sbin/ifconfig/ |
H A D | ifbridge.c | 90 struct ifdrv ifd; local 92 memset(&ifd, 0, sizeof(ifd)); 94 strlcpy(ifd.ifd_name, ifr.ifr_name, sizeof(ifd.ifd_name)); 95 ifd.ifd_cmd = op; 96 ifd.ifd_len = argsize; 97 ifd.ifd_data = arg; 99 return (ioctl(sock, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));
|
H A D | ifvxlan.c | 78 struct ifdrv ifd; local 80 bzero(&ifd, sizeof(ifd)); 82 strlcpy(ifd.ifd_name, ifr.ifr_name, sizeof(ifd.ifd_name)); 83 ifd.ifd_cmd = op; 84 ifd.ifd_len = argsize; 85 ifd.ifd_data = arg; 87 return (ioctl(sock, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd));
|
/freebsd-13-stable/usr.bin/sdiff/ |
H A D | sdiff.c | 152 int ifd, ofd; local 157 ifd = open(source_file, O_RDONLY, 0); 159 if (ifd != -1) { 160 if (fstat(ifd, &sb) == -1) 165 close(ifd); 171 ifd = STDIN_FILENO; 183 while ((rcount = read(ifd, buf, sizeof(buf))) != -1 && 198 close(ifd);
|
/freebsd-13-stable/sbin/decryptcore/ |
H A D | decryptcore.c | 129 int ifd, kfd, olen, privkeysize; local 162 ifd = open(input, O_RDONLY); 163 if (ifd == -1) { 269 bytes = read(ifd, buf, sizeof(buf));
|
/freebsd-13-stable/contrib/elftoolchain/ar/ |
H A D | acpyacc.y | 277 int ifd, ofd; 297 if ((ifd = open(in, O_RDONLY)) < 0 || 298 elftc_copyfile(ifd, ofd) < 0) { 301 if (ifd != -1) 302 (void) close(ifd); 305 (void) close(ifd);
|