Lines Matching +full:n +full:- +full:1
25 printf("ERROR: USBDEVFS_DROP_PRIVILEGES returned %d\n", res); in drop_privileges()
27 printf("OK: privileges dropped!\n"); in drop_privileges()
36 printf("OK: USBDEVFS_RESET succeeded\n"); in reset_device()
38 printf("ERROR: reset failed! (%d - %s)\n", in reset_device()
39 -res, strerror(-res)); in reset_device()
49 printf("OK: claimed if %d\n", i); in claim_some_intf()
51 printf("ERROR claiming if %d (%d - %s)\n", in claim_some_intf()
52 i, -res, strerror(-res)); in claim_some_intf()
61 fd = open(argv[1], O_RDWR); in main()
63 printf("Failed to open file\n"); in main()
73 printf("DROP_PRIVILEGES not supported\n"); in main()
81 drop_privileges(fd, -1U); in main()
83 printf("Available options:\n" in main()
84 "[0] Exit now\n" in main()
85 "[1] Reset device. Should fail if device is in use\n" in main()
86 "[2] Claim 4 interfaces. Should succeed where not in use\n" in main()
87 "[3] Narrow interface permission mask\n" in main()
90 while (scanf("%d", &c) == 1) { in main()
94 case 1: in main()
106 printf("I don't recognize that\n"); in main()
119 return 1; in main()