Consolidate non cancellable fcntl call
commit7369800c04f3c0fb9fb15821feb10a7976425aca
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 3 Jul 2017 18:37:16 +0000 (3 15:37 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 21 Aug 2017 18:37:45 +0000 (21 15:37 -0300)
tree3fe16adef74746757be6e3b8e524355798611e25
parent19926de954bf89feb443aadd4db47a4e912b97b1
Consolidate non cancellable fcntl call

This patch consolidates all the non cancellable fcntl calls to use
the __fcntl_nocancel identifier.  For non cancellable targets it will
be just a macro to call the default respective symbol while on Linux
will be a internal one.

Since its prototype is already defined at internal fcntl.h header, it
is removed from not-cancel.h one.

Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu.

* login/utmp_file.c (timeout_handler): Replace fcntl_not_cancel with
__fcntl_nocancel.
* sysdeps/generic/not-cancel.h (fcntl_not_cancel): Remove macro.
* sysdeps/unix/sysv/linux/not-cancel.h (fcntl_not_cancel): Likewise.
ChangeLog
login/utmp_file.c
sysdeps/generic/not-cancel.h
sysdeps/unix/sysv/linux/not-cancel.h