[haiku-commits] Re: haiku: hrev51548 - src/system/libroot/posix/sys headers/posix/sys

  • From: kallisti5 <kallisti5@xxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 16 Nov 2017 07:40:22 -0600

On 2017-11-16 06:01, Jérôme Duval wrote:

Hi Alexander,

Am 16.11.2017 7:41 vorm. schrieb <kallisti5@xxxxxxxxxxx>:

hrev51548 adds 1 changeset to branch 'master'
old head: f69a80b4bbce9117b743e9a10004e337869311b5
new head: be149e8ccf9ecfc71a4aea33a4685534142d5e55
overview:

http://cgit.haiku-os.org/haiku/log/?qt=range&q=be149e8ccf9e+%5Ef69a80b4bbce
[1]


----------------------------------------------------------------------------

be149e8ccf9e: libroot/posix: Add lutimes for better posix
compatibility

Please factorise with utimes.

 lutimes is not POSIX and should be moved to headers/bsd/sys/time.h,
protected by _BSD_SOURCE.

Bye
Jérome

Wah, Wahhh. You're right.

As for the _BSD_SOURCE, libc checks for _USE_MISC:

https://sourceware.org/git/?p=glibc.git;a=blob;f=time/sys/time.h;hb=7b0fb8706c07a38c8bb9999bd4c4563f07e2495f#l138

A little research shows that _BSD_SOURCE fell out of favor
for _USE_MISC recentlyish:

https://sourceware.org/ml/libc-alpha/2014-02/msg00362.html

Do we ever plan to emulate this?

 -- Alex

Other related posts: