Parrot_io_open_unix() Question

NotFound julian.notfound at gmail.com
Fri Feb 20 11:58:17 UTC 2009


> but this code appears to try to open a file descriptor for writing, reading
> and writing, and appending as the first step toward seeing if the open()
> system call can succeed:
>        /* Try open with no create first */
>        while ((fd = open(spath, oflags & (O_WRONLY | O_RDWR | O_APPEND),
>                                 DEFAULT_OPEN_MODE))
>                < 0 && errno == EINTR)
>                errno = 0;

No, it masks with that values the oflags previously obtained with
convert_flags_to_unix, to avoid the create and truncate parts

-- 
Salu2


More information about the parrot-dev mailing list