Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210427195550.GK2799122@port70.net>
Date: Tue, 27 Apr 2021 21:55:50 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: Matus Kysel <mkysel@...hyum.com>
Cc: musl@...ts.openwall.com
Subject: Re: libc-test issue with sem_close

* Matus Kysel <mkysel@...hyum.com> [2021-04-26 09:49:35 +0000]:
> Hi Szabolcs,
> 
> I am using your library as part of my validation suite and recently I have updated it to latest master, but the sem_close test is not buildable for me as it is missing fcntl.h header. I have attached possible fix, because I did not found how to contribute to you repo.

ccing musl, libc-test is mostly discussed there.

posix says

"Inclusion of the <semaphore.h> header may make visible symbols defined in the <fcntl.h> and <time.h> headers."

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/semaphore.h.html

which sounds optional, not guaranteed visibility of O_ open flags in
semaphore.h, but sem_open is expected to be usable with only semaphore.h

https://pubs.opengroup.org/onlinepubs/9699919799/functions/sem_open.html

i'm not sure what is the strict standard requirement here, without
clarification i consider it a libc header issue if an api is not usable
with just the header where it is declared.

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.