]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
Remove inclusion of uk/user.h RELEASE-0.10.0
authorMarc Rittinghaus <marc.rittinghaus@kit.edu>
Thu, 11 Aug 2022 06:50:01 +0000 (08:50 +0200)
committerUnikraft <monkey@unikraft.io>
Fri, 19 Aug 2022 08:24:27 +0000 (08:24 +0000)
commit357b2a3afdae1adecc84f581cf555f9fe6caf0bf
tree4e4e5ae1910c654b7f4dcefa1c2d886d2d13e4fd
parente452cc1cfcf2358e853496e8ffd26116a4cbccdb
Remove inclusion of uk/user.h

Currently, we include uk/user.h from the core's posix-user library to
declare signatures for get/setresuid and get/setresgid. However,
these definitions should be part of the C library and not Unikraft.
This commit removes the dependency on the uk/user.h header
and moves the function declaration into the unistd.h directly. It also
adds the missing _GNU_SOURCE guard.

Signed-off-by: Marc Rittinghaus <marc.rittinghaus@kit.edu>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #22
include/sys/unistd.h