* inherit umask of calling process to images loaded via exec...()

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40071 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2011-01-02 19:12:19 +00:00
parent 5c9b247667
commit db03311342
6 changed files with 20 additions and 10 deletions
+2 -1
View File
@@ -137,7 +137,8 @@ extern status_t _kern_wait_for_team(team_id team, status_t *_returnCode);
extern thread_id _kern_wait_for_child(thread_id child, uint32 flags,
int32 *_reason, status_t *_returnCode);
extern status_t _kern_exec(const char *path, const char* const* flatArgs,
size_t flatArgsSize, int32 argCount, int32 envCount);
size_t flatArgsSize, int32 argCount, int32 envCount,
mode_t umask);
extern thread_id _kern_fork(void);
extern pid_t _kern_process_info(pid_t process, int32 which);
extern pid_t _kern_setpgid(pid_t process, pid_t group);
+1
View File
@@ -28,6 +28,7 @@ struct user_space_program_args {
int env_count;
char **args;
char **env;
mode_t umask; // (mode_t)-1 means not set
};
#endif /* KERNEL_USER_RUNTIME_H_ */