HomeSort by: relevance | last modified time | path
    Searched defs:ifd (Results 1 - 25 of 50) sorted by relevancy

1 2

  /src/sys/arch/ews4800mips/stand/common/
inckern.c 41 FILE *ifd, *ofd; local in function:main
47 ifd = stdin;
52 if ((optarg == 0) || (ifd != stdin))
59 (ifd = fopen(optarg, "r")) == 0)
78 while ((n = fread(buf, 1, TMPBUF_SIZE, ifd)) > 0) {
94 if (ifd != stdin)
95 fclose(ifd);
inckern.c 41 FILE *ifd, *ofd; local in function:main
47 ifd = stdin;
52 if ((optarg == 0) || (ifd != stdin))
59 (ifd = fopen(optarg, "r")) == 0)
78 while ((n = fread(buf, 1, TMPBUF_SIZE, ifd)) > 0) {
94 if (ifd != stdin)
95 fclose(ifd);
  /src/sys/arch/pmax/stand/smallnet/setnetimage/
setnetimage.c 79 int ifd, ofd, i, nsegs; local in function:main
99 if ((ifd = open(kernel, O_RDONLY)) < 0)
130 i = read(ifd, (char *)&ehdr, sizeof(ehdr));
140 if (lseek(ifd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
142 if (read(ifd, &phdr, sizeof(phdr)) != sizeof(phdr))
174 printf("lseek(ifd, %d, 0)\n", seglist[i].f_offset);
176 if (lseek(ifd, (off_t)seglist[i].f_offset, 0) < 0)
179 printf("read(ifd, %p, %d)\n", \
183 if (read(ifd, uncomp_kernel + seglist[i].addr - lowaddr,
187 close(ifd);
    [all...]
setnetimage.c 79 int ifd, ofd, i, nsegs; local in function:main
99 if ((ifd = open(kernel, O_RDONLY)) < 0)
130 i = read(ifd, (char *)&ehdr, sizeof(ehdr));
140 if (lseek(ifd, (off_t) ehdr.e_phoff + i * sizeof(phdr), 0) < 0)
142 if (read(ifd, &phdr, sizeof(phdr)) != sizeof(phdr))
174 printf("lseek(ifd, %d, 0)\n", seglist[i].f_offset);
176 if (lseek(ifd, (off_t)seglist[i].f_offset, 0) < 0)
179 printf("read(ifd, %p, %d)\n", \
183 if (read(ifd, uncomp_kernel + seglist[i].addr - lowaddr,
187 close(ifd);
    [all...]
  /src/sys/rump/net/lib/libvirtif/
if_virt.c 200 struct ifdrv *ifd; local in function:virtif_ioctl
208 ifd = data;
216 if (ifd->ifd_cmd == IFLINKSTR_QUERYLEN) {
217 ifd->ifd_len = linkstrlen;
221 if (ifd->ifd_cmd != 0) {
227 ifd->ifd_data, MIN(ifd->ifd_len,linkstrlen), NULL);
235 ifd = data;
237 if (ifd->ifd_cmd == IFLINKSTR_UNSET) {
239 } else if (ifd->ifd_cmd != 0)
    [all...]
if_virt.c 200 struct ifdrv *ifd; local in function:virtif_ioctl
208 ifd = data;
216 if (ifd->ifd_cmd == IFLINKSTR_QUERYLEN) {
217 ifd->ifd_len = linkstrlen;
221 if (ifd->ifd_cmd != 0) {
227 ifd->ifd_data, MIN(ifd->ifd_len,linkstrlen), NULL);
235 ifd = data;
237 if (ifd->ifd_cmd == IFLINKSTR_UNSET) {
239 } else if (ifd->ifd_cmd != 0)
    [all...]
  /src/usr.bin/split/
split.c 60 static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ variable in typeref:typename:int
140 (ifd = open(*argv, O_RDONLY, 0)) < 0)
188 switch (len = read(ifd, bfr, MAXBSIZE)) {
255 switch (len = read(ifd, bfr, MAXBSIZE)) {
296 if (fstat(ifd, &sb) == -1) {
split.c 60 static int ifd = STDIN_FILENO, ofd = -1; /* Input/output file descriptors. */ variable in typeref:typename:int
140 (ifd = open(*argv, O_RDONLY, 0)) < 0)
188 switch (len = read(ifd, bfr, MAXBSIZE)) {
255 switch (len = read(ifd, bfr, MAXBSIZE)) {
296 if (fstat(ifd, &sb) == -1) {
  /src/sbin/canconfig/
canconfig.c 429 struct ifdrv ifd; local in function:do_cmd2
432 memset(&ifd, 0, sizeof(ifd));
434 strlcpy(ifd.ifd_name, canifname, sizeof(ifd.ifd_name));
435 ifd.ifd_cmd = op;
436 ifd.ifd_len = argsize;
437 ifd.ifd_data = arg;
439 error = ioctl(sock, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd);
442 *outsizep = ifd.ifd_len
    [all...]
canconfig.c 429 struct ifdrv ifd; local in function:do_cmd2
432 memset(&ifd, 0, sizeof(ifd));
434 strlcpy(ifd.ifd_name, canifname, sizeof(ifd.ifd_name));
435 ifd.ifd_cmd = op;
436 ifd.ifd_len = argsize;
437 ifd.ifd_data = arg;
439 error = ioctl(sock, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd);
442 *outsizep = ifd.ifd_len
    [all...]
  /src/sys/arch/amiga/stand/bootblock/elf2bb/
elf2bb.c 94 int ifd, ofd; local in function:main
139 ifd = open(argv[0], O_RDONLY, 0);
140 if (ifd < 0)
143 image = mmap(0, 65536, PROT_READ, MAP_FILE|MAP_PRIVATE, ifd, 0);
elf2bb.c 94 int ifd, ofd; local in function:main
139 ifd = open(argv[0], O_RDONLY, 0);
140 if (ifd < 0)
143 image = mmap(0, 65536, PROT_READ, MAP_FILE|MAP_PRIVATE, ifd, 0);
  /src/usr.bin/patch/
inp.c 144 int ifd, statfailed, devnull, pstat; local in function:plan_a
292 if ((ifd = open(filename, O_RDONLY)) < 0)
296 i_womp = mmap(NULL, i_size, PROT_READ, MAP_PRIVATE, ifd, 0);
300 close(ifd);
307 close(ifd);
inp.c 144 int ifd, statfailed, devnull, pstat; local in function:plan_a
292 if ((ifd = open(filename, O_RDONLY)) < 0)
296 i_womp = mmap(NULL, i_size, PROT_READ, MAP_PRIVATE, ifd, 0);
300 close(ifd);
307 close(ifd);
  /src/sys/dev/usb/
usbdi_util.c 455 usb_interface_descriptor_t *ifd = usbd_get_interface_descriptor(iface); local in function:usbd_set_idle
462 if (ifd == NULL)
468 USETW(req.wIndex, ifd->bInterfaceNumber);
527 usb_interface_descriptor_t *ifd = usbd_get_interface_descriptor(iface); local in function:usbd_set_report
534 if (ifd == NULL)
540 USETW(req.wIndex, ifd->bInterfaceNumber);
549 usb_interface_descriptor_t *ifd = usbd_get_interface_descriptor(iface); local in function:usbd_get_report
555 if (ifd == NULL)
561 USETW(req.wIndex, ifd->bInterfaceNumber);
usbdi_util.c 455 usb_interface_descriptor_t *ifd = usbd_get_interface_descriptor(iface); local in function:usbd_set_idle
462 if (ifd == NULL)
468 USETW(req.wIndex, ifd->bInterfaceNumber);
527 usb_interface_descriptor_t *ifd = usbd_get_interface_descriptor(iface); local in function:usbd_set_report
534 if (ifd == NULL)
540 USETW(req.wIndex, ifd->bInterfaceNumber);
549 usb_interface_descriptor_t *ifd = usbd_get_interface_descriptor(iface); local in function:usbd_get_report
555 if (ifd == NULL)
561 USETW(req.wIndex, ifd->bInterfaceNumber);
  /src/sys/arch/mips/adm5120/dev/
if_admsw.c 738 struct ifdrv *ifd; local in function:admsw_ioctl
754 ifd = (struct ifdrv *) data;
755 if (ifd->ifd_cmd != 0 || ifd->ifd_len != sizeof(vlan_matrix)) {
760 error = copyout(vlan_matrix, ifd->ifd_data,
763 error = copyin(ifd->ifd_data, vlan_matrix,
if_admsw.c 738 struct ifdrv *ifd; local in function:admsw_ioctl
754 ifd = (struct ifdrv *) data;
755 if (ifd->ifd_cmd != 0 || ifd->ifd_len != sizeof(vlan_matrix)) {
760 error = copyout(vlan_matrix, ifd->ifd_data,
763 error = copyin(ifd->ifd_data, vlan_matrix,
  /src/common/dist/zlib/test/
minigzip.c 311 int ifd = fileno(in); local in function:gz_compress_mmap
317 if (fstat(ifd, &sb) < 0) return Z_ERRNO;
322 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
minigzip.c 311 int ifd = fileno(in); local in function:gz_compress_mmap
317 if (fstat(ifd, &sb) < 0) return Z_ERRNO;
322 buf = mmap((caddr_t) 0, buf_len, PROT_READ, MAP_SHARED, ifd, (off_t)0);
  /src/usr.bin/gencat/
gencat.c 150 int ofd, ifd; local in function:main
203 if ((ifd = open(*argv, O_RDONLY)) < 0)
207 MCParse(ifd);
208 close(ifd);
  /src/usr.bin/sdiff/
sdiff.c 100 int ifd, ofd; local in function:mktmpcpy
105 ifd = open(source_file, O_RDONLY, 0);
107 if (ifd != -1) {
108 if (fstat(ifd, &sb) == -1)
117 ifd = STDIN_FILENO;
129 while ((rcount = read(ifd, buf, sizeof(buf))) != -1 &&
144 close(ifd);
  /src/usr.sbin/ifwatchd/
ifwatchd.c 319 struct interface_data *ifd = NULL; local in function:check_addrs
333 if ((ifd = find_interface(li->sdl_index)) == NULL) {
346 if (ifa != NULL && ifd != NULL) {
350 invoke_script(ifd->ifname, ev, ifa, brd);
500 do_announce(struct interface_data *ifd,
506 ifd->index = index;
507 invoke_script(ifd->ifname, ARRIVAL, NULL, NULL);
510 ifd->index = -1;
511 ifd->last_carrier_status = -1;
512 invoke_script(ifd->ifname, DEPARTURE, NULL, NULL)
563 struct interface_data * ifd; local in function:run_initial_ups
    [all...]
  /src/sbin/brconfig/
brconfig.c 513 struct ifdrv ifd; local in function:do_cmd2
516 memset(&ifd, 0, sizeof(ifd));
518 strlcpy(ifd.ifd_name, bridge, sizeof(ifd.ifd_name));
519 ifd.ifd_cmd = op;
520 ifd.ifd_len = argsize;
521 ifd.ifd_data = arg;
523 error = ioctl(sock, set ? SIOCSDRVSPEC : SIOCGDRVSPEC, &ifd);
526 *outsizep = ifd.ifd_len
    [all...]
  /src/sys/rump/net/lib/libshmif/
if_shmem.c 485 struct ifdrv *ifd; local in function:shmif_ioctl
492 ifd = data;
499 ifd->ifd_len = sc->sc_backfilelen;
500 if (ifd->ifd_cmd == IFLINKSTR_QUERYLEN) {
505 if (ifd->ifd_cmd != 0) {
510 rv = copyoutstr(sc->sc_backfile, ifd->ifd_data,
511 MIN(sc->sc_backfilelen, ifd->ifd_len), NULL);
519 ifd = data;
520 if (ifd->ifd_cmd == IFLINKSTR_UNSET) {
526 } else if (ifd->ifd_cmd != 0)
    [all...]

Completed in 34 milliseconds

1 2