This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 1/2][BZ #16274] Fix shm_open.
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: OndÅej BÃlka <neleai at seznam dot cz>
- Cc: Carlos O'Donell <carlos at redhat dot com>, libc-alpha at sourceware dot org
- Date: Fri, 29 Nov 2013 19:15:58 +0100
- Subject: Re: [PATCH v2 1/2][BZ #16274] Fix shm_open.
- Authentication-results: sourceware.org; auth=none
- References: <20131129004016 dot GA19990 at domone dot podge> <5297F6B6 dot 5010609 at redhat dot com> <20131129180250 dot GA24922 at domone dot podge>
OndÅej BÃlka <neleai@seznam.cz> writes:
> @@ -143,12 +143,13 @@ do_test (void)
>
>
> /* Create the shared memory object. */
> - fd = shm_open ("/shm-test", O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600);
> + fd = shm_open ("/glibc-shm-test", O_RDWR | O_CREAT | O_TRUNC | O_EXCL, 0600);
> if (fd == -1)
> {
> - /* We don't regard this as a bug. Simply don't run the test. It could
> - means there is no such implementation or the object is already in
> - use in which case we don't want to disturb. */
> + /* If shm_open is unimplemented we skip a test. */
> + if (errno != ENOSYS)
> + error (EXIT_FAILURE, 0, "failed to open shared memory object: shm_open");
s/open/create/
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."