nant's projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Merge branch 'vendor/GCC'
[dragonfly.git]
/
test
/
debug
/
revoke.c
1
/*
2
* cc -Wall revoke.c -o /tmp/revoke
3
*/
4
#include <sys/types.h>
5
#include <sys/socket.h>
6
#include <sys/wait.h>
7
#include <sys/uio.h>
8
#include <sys/stat.h>
9
#include <stdio.h>
10
#include <stdlib.h>
11
#include <unistd.h>
12
#include <string.h>
13
#include <fcntl.h>
14
#include <errno.h>
15
16
int
17
main(int ac, char **av)
18
{
19
int i;
20
21
for (i = 1; i < ac; ++i) {
22
if (revoke(av[i]) < 0) {
23
fprintf(stderr, "revoke %s failed: %s\n",
24
av[i], strerror(errno));
25
}
26
}
27
return(0);
28
}