From 4e8b0938d90793d6e1e200d6b25e6581b72bd4d0 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 20 Jun 2012 22:16:47 -0400 Subject: proper error handling for fcntl F_GETOWN on modern kernels on old kernels, there's no way to detect errors; we must assume negative syscall return values are pgrp ids. but if the F_GETOWN_EX fcntl works, we can get a reliable answer. --- arch/arm/bits/fcntl.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'arch/arm') diff --git a/arch/arm/bits/fcntl.h b/arch/arm/bits/fcntl.h index fc65ebcc..9595f9ca 100644 --- a/arch/arm/bits/fcntl.h +++ b/arch/arm/bits/fcntl.h @@ -31,3 +31,6 @@ #define F_GETLK 12 #define F_SETLK 13 #define F_SETLKW 14 + +#define F_SETOWN_EX 15 +#define F_GETOWN_EX 16 -- cgit v1.2.1