#include #include #include #include #include int main(int argc,char **argv) { if(argc!=2) { printf("please input a file name to act as the ID of the sem!\n"); exit(1); } sem_unlink(argv[1]); //撤销指定的信号量 exit(0); }