posix/bits/unistd.h: Clearly separate declaration from definitions
authorFrédéric Bérat <fberat@redhat.com>
Wed, 26 Apr 2023 09:45:11 +0000 (11:45 +0200)
committerFrédéric Bérat <fberat@redhat.com>
Wed, 5 Jul 2023 14:59:48 +0000 (16:59 +0200)
commit391f5e9619ef540eea00fb622f4381dae9d8cb44
treeb523bd13f26321fb3bf596829c9b24d2cd4a858d
parent64f9857507f6dbf9715350b75e83b465be9b8f03
posix/bits/unistd.h: Clearly separate declaration from definitions

This change is similar to what was done for bits/wchar2.h.
Routines declaration are moved into a dedicated bits/unistd-decl.h file
which is then included into the bits/unistd.h file.

This will allow to adapt the files so that PLT entries are not created when
_FORTIFY_SOURCE is enabled.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
include/bits/unistd-decl.h [new file with mode: 0644]
include/unistd.h
posix/Makefile
posix/bits/unistd-decl.h [new file with mode: 0644]
posix/bits/unistd.h