|
Message-ID: <0100017c78b013a5-f8641dc7-a829-41eb-9a24-746239135dad-000000@email.amazonses.com> Date: Wed, 13 Oct 2021 08:06:17 +0000 From: "(GalaxyMaster)" <galaxy@...nwall.com.au> To: musl@...ts.openwall.com Subject: Re: errno on writing to read-only files Dmitry, On Wed, Oct 13, 2021 at 10:25:12AM +0300, Dmitry V. Levin wrote: > > errno = 0; > > i = fputs("should not be written", f); > > printf("i = %d (should be negative [EOF = %d])\n", i, EOF); > > printf("errno = %d\n", errno); > > Note that the first "printf" invocation is allowed to clobber errno > and this is not musl-specific. Thanks, noted. I will ensure that in my future test cases I will put printing errno right after the function I am checking. -- (GM)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.