cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Help on usinig Curl on vxwrks

From: Igor Novoseltsev <IgorN_at_radvision.com>
Date: Wed, 3 Jun 2009 18:13:33 +0300

> +#ifdef HAVE_OPEN_3
> + fd = open(real_path, O_RDONLY, conn->data->set.new_file_perms);
> +#else
>
> What is the third parameter used for in the read-only case? Why not
simply
> pass 0 there?

The third parameter is taken in account only for file creation (O_CREAT)
or modification (O_RDWR, O_WRONLY). Therefore zero should work.
I can't test it right now. Do you want to wait until I'll get back the
VxWorks device?
Received on 2009-06-03