#define _CREDS_H_
/*
+ * Superuser's UID.
+ */
+#define _SYSIO_ROOT_UID 0
+
+/*
* Data structure for user credentials
*/
int creds_ngids;
};
+
+#ifdef _SYSIO_ROOT_UID
+/*
+ * Is caller the superuser?
+ */
+#define _sysio_is_root(_crp) \
+ ((_crp)->creds_uid == _SYSIO_ROOT_UID)
+#endif
#endif