Lines Matching +full:open +full:- +full:source
7 # Redistribution and use in source and binary forms, with or without
10 # 1. Redistributions of source code must retain the above copyright
30 # Bug 202892 open with O_CREAT | O_DIRECTORY when path references a symlink.
38 sed '1,/^EOF/d' < $odir/$0 > $dir/open.c
39 mycc -o open -Wall -Wextra -O0 -g open.c || exit 1
40 rm -f open.c
42 wdir=/tmp/open.$$
43 rm -rf $wdir
44 mkdir -p $wdir
47 /tmp/open || { echo FAIL; status=$?; }
48 [ -f broken -o -f broken2 ] && { ls -l; echo FAIL; status=1; }
51 rm -rf /tmp/open $wdir
75 fd = open("broken", O_CREAT | O_DIRECTORY, 0600);
77 errx(1, "open(broken, O_CREAT | O_DIRECTORY) - no error");
79 fd = open("broken2", O_CREAT | O_DIRECTORY | O_EXCL, 0600);
80 if (fd != -1)
81 errx(1, "open() O_CREAT | O_DIRECTORY | O_EXCL");