patch-2.3.30 linux/include/linux/sched.h

Next file: linux/include/linux/slab.h
Previous file: linux/include/linux/quotaops.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/include/linux/sched.h linux/include/linux/sched.h
@@ -84,20 +84,20 @@
 #define TASK_EXCLUSIVE		32
 
 #define __set_task_state(tsk, state_value)		\
-	do { tsk->state = state_value; } while (0)
+	do { (tsk)->state = (state_value); } while (0)
 #ifdef __SMP__
 #define set_task_state(tsk, state_value)		\
-	set_mb(tsk->state, state_value)
+	set_mb((tsk)->state, (state_value))
 #else
 #define set_task_state(tsk, state_value)		\
-	__set_task_state(tsk, state_value)
+	__set_task_state((tsk), (state_value))
 #endif
 
 #define __set_current_state(state_value)			\
-	do { current->state = state_value; } while (0)
+	do { current->state = (state_value); } while (0)
 #ifdef __SMP__
 #define set_current_state(state_value)		\
-	set_mb(current->state, state_value)
+	set_mb(current->state, (state_value))
 #else
 #define set_current_state(state_value)		\
 	__set_current_state(state_value)
@@ -513,6 +513,7 @@
 #define wake_up_interruptible_sync(x)	__wake_up_sync((x),TASK_INTERRUPTIBLE)
 
 extern int in_group_p(gid_t);
+extern int in_egroup_p(gid_t);
 
 extern void flush_signals(struct task_struct *);
 extern void flush_signal_handlers(struct task_struct *);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)