ocfs2: Mark system files as not subject to quota accounting
[deliverable/linux.git] / fs / signalfd.c
index 5441a4bca77247b02585ce0032ca1d47bb6ea494..9c39bc7f843137cf167476797554697ce5834da5 100644 (file)
@@ -211,6 +211,10 @@ asmlinkage long sys_signalfd4(int ufd, sigset_t __user *user_mask,
        sigset_t sigmask;
        struct signalfd_ctx *ctx;
 
+       /* Check the SFD_* constants for consistency.  */
+       BUILD_BUG_ON(SFD_CLOEXEC != O_CLOEXEC);
+       BUILD_BUG_ON(SFD_NONBLOCK != O_NONBLOCK);
+
        if (flags & ~(SFD_CLOEXEC | SFD_NONBLOCK))
                return -EINVAL;
 
This page took 0.025321 seconds and 5 git commands to generate.