tuxillo's projects
/
dragonfly.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
testcases: Attempt to integrate POSIX IPC tests to dfregress(8)
[dragonfly.git]
/
test
/
testcases
/
posixipc
/
open_path_too_long
/
open_path_too_long.c
1
#include <common.h>
2
3
int
4
main(void) {
5
int retval = 0;
6
char *page;
7
8
page = malloc(MAXPATHLEN + 1);
9
memset(page, 'a', MAXPATHLEN);
10
page[0] = '/';
11
page[MAXPATHLEN] = '\0';
12
sem_open_should_fail(page, O_RDONLY, 0777, 1, ENAMETOOLONG);
13
free(page);
14
15
return retval;
16
}