Lines Matching defs:filename
267 if (strncmp(dev->filename, new->filename,
268 sizeof (dev->filename)) == 0) {
298 usb_dprintf(DEBUG_DETAILED, "%d: %s\n", i, dev->filename);
1382 char *filename, *statfilename, cfg_num[16], alt_num[16];
1420 if ((filename = malloc(PATH_MAX+1)) == NULL) {
1425 free(filename);
1433 /* create filename */
1448 (void) snprintf(filename, PATH_MAX, "%s/%s/%sif%d%s%s%d",
1449 hdl->device->bus->dirname, hdl->device->filename,
1455 "usb_check_device_and_status_open: %s\n", filename);
1461 (void) snprintf(statfilename, PATH_MAX, "%sstat", filename);
1478 filename, errno);
1479 free(filename);
1490 filename, errno);
1491 free(filename);
1502 free(filename);
1510 if ((fd = open(filename, mode)) == -1) {
1512 filename, errno);
1514 free(filename);
1520 free(filename);
1552 char *filename;
1570 if ((filename = malloc(PATH_MAX+1)) == NULL) {
1575 (void) snprintf(filename, PATH_MAX, "%s/%s/cntrl0",
1576 hdl->device->bus->dirname, hdl->device->filename);
1578 usb_dprintf(DEBUG_DETAILED, "opening %s\n", filename);
1580 hdl->info->ep_fd[0] = open(filename, O_RDWR);
1584 free(filename);
1589 (void) snprintf(filename, PATH_MAX, "%s/%s/cntrl0stat",
1590 hdl->device->bus->dirname, hdl->device->filename);
1592 usb_dprintf(DEBUG_DETAILED, "opening %s\n", filename);
1594 hdl->info->ep_status_fd[0] = open(filename, O_RDONLY);
1596 free(filename);
1608 free(filename);
2312 char *device, *filename;
2324 if ((filename = malloc(PATH_MAX+1)) == NULL) {
2332 free(filename);
2392 free(filename);
2402 free(filename);
2413 (void) snprintf(dev->filename, PATH_MAX, "%s/%s",
2417 (void) snprintf(filename, PATH_MAX, "%s/%s/devstat",
2418 bus->dirname, dev->filename);
2420 usb_dprintf(DEBUG_DETAILED, "filename %s\n", filename);
2421 usb_dprintf(DEBUG_DETAILED, "dev filename %s\n",
2422 dev->filename);
2424 if ((fd = open(filename, O_RDONLY|O_EXCL)) < 0) {
2427 filename);
2435 dev->filename);
2450 free(filename);