Searched refs:openflags (Results 1 – 4 of 4) sorted by relevance
240 int openflags; in jas_stream_fopen() local253 openflags = O_RDWR; in jas_stream_fopen()255 openflags = O_RDONLY; in jas_stream_fopen()257 openflags = O_WRONLY; in jas_stream_fopen()259 openflags = 0; in jas_stream_fopen()262 openflags |= O_APPEND; in jas_stream_fopen()265 openflags |= O_BINARY; in jas_stream_fopen()268 openflags |= O_CREAT | O_TRUNC; in jas_stream_fopen()285 if ((obj->fd = open(filename, openflags, JAS_STREAM_PERMS)) < 0) { in jas_stream_fopen()299 int openflags; in jas_stream_freopen() local[all …]
43 int openflags;69 if (file) ffd = xopen(file, TT.openflags);84 if (device) lfd = open(device, TT.openflags);154 TT.openflags = (toys.optflags & FLAG_r) ? O_RDONLY : O_RDWR; in losetup_main()
255 int openflags = O_CREAT|O_WRONLY|O_TRUNC; in main() local263 openflags &= ~O_TRUNC; in main()264 openflags |= O_APPEND; in main()282 outfd = open(outfn, openflags, 0644); in main()323 outfd = open(outfn, openflags, 0644); in main()
210 int openflags; member