repo.or.cz
/
dragonfly.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
amd64: declare initializecpu outside of SMP
[dragonfly.git]
/
test
/
debug
/
revoke.c
blob
b2ab2439ab23a35d6f20b9021bece375d4984f46
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
}