Skip to content

Commit

Permalink
Correct return type for sys_personality
Browse files Browse the repository at this point in the history
  • Loading branch information
krystophny committed Feb 17, 2020
1 parent e223d8e commit 4b0c896
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel/calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ dword_t sys_getcwd(addr_t buf_addr, dword_t size);
dword_t sys_chdir(addr_t path_addr);
dword_t sys_chroot(addr_t path_addr);
dword_t sys_fchdir(fd_t f);
dword_t sys_personality(dword_t pers);
int_t sys_personality(dword_t pers);
int task_set_thread_area(struct task *task, addr_t u_info);
int sys_set_thread_area(addr_t u_info);
int sys_set_tid_address(addr_t blahblahblah);
Expand Down
2 changes: 1 addition & 1 deletion kernel/getset.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ int_t sys_capset(addr_t header_addr, addr_t data_addr) {
}

// minimal version according to Linux sys/personality.h
dword_t sys_personality(dword_t pers) {
int_t sys_personality(dword_t pers) {
if (pers == 0xffffffff) // get personality, return default (Linux)
return 0x00000000;
if (pers == 0x00000000) // set personality to Linux
Expand Down

0 comments on commit 4b0c896

Please sign in to comment.