On 02/19/2013 02:17 AM, [email protected] wrote:
> Hi!
>> +static void setup1(struct testcase_t *t, int i)
>> +{
>> + t->ns_type = ns_types[i];
>> + t->fd = open("dummy", O_CREAT);
>
> While I tried to compile this code, I've got error as open with O_CREAT
> is required to pass the mode.
Applied with this line change to:
+ t->fd = open("dummy", O_RDWR|O_CREAT, 0600);
Thanks,
Wanlong Gao
>
>> + if (t->fd == -1)
>> + tst_brkm(TFAIL|TERRNO, cleanup, "setup1:open failed");
>> + unlink("dummy");
>> +}
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list