This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v2 1/2][BZ #16274] Fix shm_open.


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]