unikraft / lib-newlib

Unikraft port of newlib, a C standard library
Other
5 stars 23 forks source link

Remove inclusion of uk/user.h #22

Closed marcrittinghaus closed 2 years ago

marcrittinghaus commented 2 years ago

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.

This PR is a prerequisite for https://github.com/unikraft/unikraft/pull/504

razvand commented 2 years ago

All OK. @StefanJum , please approve and use the ...-by message. I will then finalize the approval.