Clean up some misinformation around prctl.

prctl shouldn't be in <unistd.h>.

Change-Id: I29609fc91c033e1ad143b75d9b4eb17aefbd63d6
This commit is contained in:
Elliott Hughes
2014-07-18 15:55:41 -07:00
parent 3c2b71ad56
commit 9c07aee83b
3 changed files with 4 additions and 13 deletions

View File

@@ -25,20 +25,16 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef _SYS_PRCTL_H
#define _SYS_PRCTL_H
#include <linux/prctl.h>
#include <sys/cdefs.h>
#include <linux/prctl.h>
__BEGIN_DECLS
/* IMPORTANT NOTE: This function is declared as taking a variable number
* of arguments to match the GLibc definition. However
* its declaration inside SYSCALLS.TXT *must* make it
* take 6 arguments to ensure consistency with the kernel
* implementation.
*/
extern int prctl(int option, ...);
__END_DECLS