Lines Matching refs:filename
92 void doAdd(const char* filename, PackageInfo* info) { in doAdd() argument
94 if (obb->readFrom(filename)) { in doAdd()
95 fprintf(stderr, "ERROR: %s: OBB signature already present\n", filename); in doAdd()
106 if (!obb->writeTo(filename)) { in doAdd()
108 filename, strerror(errno)); in doAdd()
115 void doRemove(const char* filename) { in doRemove() argument
117 if (!obb->readFrom(filename)) { in doRemove()
118 fprintf(stderr, "ERROR: %s: no OBB signature present\n", filename); in doRemove()
122 if (!obb->removeFrom(filename)) { in doRemove()
123 fprintf(stderr, "ERROR: %s: couldn't remove OBB signature\n", filename); in doRemove()
130 void doInfo(const char* filename) { in doInfo() argument
132 if (!obb->readFrom(filename)) { in doInfo()
133 fprintf(stderr, "ERROR: %s: couldn't read OBB signature\n", filename); in doInfo()
137 printf("OBB info for '%s':\n", filename); in doInfo()
268 const char* filename = argv[optind++]; in main() local
277 doAdd(filename, &package_info); in main()
281 doRemove(filename); in main()
285 doInfo(filename); in main()