+ /* Fix uid and gid types */
+ uid_t uid = (uid_t)uid_;
+ if ((jint)uid != uid_) {
+ return getStatus(env, 0, "UID does not fit in uid_t type.");
+ }
+ gid_t gid = (gid_t)gid_;
+ if ((jint)gid != gid_) {
+ return getStatus(env, 0, "GID does not fit in gid_t type.");
+ }