Searched refs:openmode (Results 1 – 2 of 2) sorted by relevance
121 int openmode; in createfile() local126 openmode = GetAccess(); in createfile()133 if ((openmode == -1) || opened() || (strlen(path) == 0)) in createfile()156 desc = open(path, openmode | O_CREAT | O_TRUNC, 0666); in createfile()218 int openmode; in OpenPath() local222 openmode = GetAccess(); in OpenPath()227 if ((openmode == -1) || opened() || (strlen(filename) == 0)) in OpenPath()236 err = tryopen(filename, openmode); in OpenPath()268 err = tryopen(pathname, openmode); in OpenPath()280 return (RaiseError(tryopen(filename, openmode))); in OpenPath()[all …]
764 int openmode; in main() local910 openmode = O_RDONLY; in main()912 openmode = O_RDWR|O_CREAT; in main()914 if ((Dev = open(Dfltdev, openmode, 0666)) == -1) { in main()