git.annexia.org
/
wrappi.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Test example program.
[wrappi.git]
/
APIs
/
mknod.api
1
entry_point
2
void mknod_char (pathname path, fileperm perm, uint64 major, uint64 minor)
3
<<
4
if (mknod (path, S_IFCHR | perm, makedev (major, minor)) == -1) {
5
error_errno ("mknod: %s", path);
6
return -1;
7
}
8
return 0;
9
>>
10
11
;;
12
13
(*
14
mknod_block
15
mkfifo
16
mknod_socket
17
*)