// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ // // Copyright (c) 2001-2003, OpenBeOS // // This software is part of the OpenBeOS distribution and is covered // by the OpenBeOS license. // // // File: rmattr.cpp // Author: Jérôme Duval // Description: remove an attribute from a file // // ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ #include #include #include // For O_WRONLY in BeOS R5 headers. #include int main(int32 argc, const char **argv) { // Make sure we have the minimum number of arguments. if (argc < 3) { printf("usage: %s attr filename1 [filename2...]\n", argv[0]); printf(" attr is the name of an attribute of the file\n"); exit(0); } for(int32 i=2; i