repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
ssp
/
readlink
/
readlink.c
blob
c0ffbebf32823ffafea548732046f2176b416726
1
#include <sys/param.h>
2
#include <stdio.h>
3
#include <unistd.h>
4
#include <stdlib.h>
5
6
int
7
main
(
int
argc
,
char
*
argv
[])
8
{
9
char
b
[
MAXPATHLEN
];
10
size_t
len
=
atoi
(
argv
[
1
]);
11
(
void
)
readlink
(
"/"
,
b
,
len
);
12
(
void
)
printf
(
"%s
\n
"
,
b
);
13
return
0
;
14
}