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: Remove __FAVOR_BSD


On Tue, Jan 7, 2014 at 3:08 AM, Joseph S. Myers <joseph@codesourcery.com> wrote:
> On Mon, 6 Jan 2014, Michael Kerrisk wrote:
>
>> First of all, would this revised test for the feature_test_macros(7)
>> page be correct:
>>
>>        _BSD_SOURCE
>>               Defining this macro with any value causes  header  files
>>               to expose BSD-derived definitions.  In glibc versions up
>>               to and including 2.18, defining this macro  also  causes
>>               BSD definitions to be preferred in some situations where
>>               standards conflict, unless one or more of  _SVID_SOURCE,
>>               _POSIX_SOURCE,      _POSIX_C_SOURCE,      _XOPEN_SOURCE,
>>               _XOPEN_SOURCE_EXTENDED, or _GNU_SOURCE  is  defined,  in
>>               which  case BSD definitions are disfavored.  Since glibc
>>               2.19, _BSD_SOURCE no longer causes BSD definitions to be
>>               preferred in case of conflicts.
>
> Yes.
>
>> What do (admittedly, strange) programs that employ the BSD getpgrp()
>> and setpgrp() interfaces now do? It looks as though they'll require
>> source code changes to call a different API, right?
>
> Yes.  Programs using BSD getpgrp, setpgrp, setjmp and sigpause will need
> source code changes.

Thanks for the info!

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/


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