bsd-user: spelling fixes: necesary, agrument, undocummented
Fixes:a99d740347
"bsd-user: Implement do_obreak function" Fixes:8632729060
"bsd-user: Implement freebsd_exec_common, used in implementing execve/fexecve." Fixes:bf14f13d8b
"bsd-user: Implement stat related syscalls" Reviewed-by: Warner Losh <imp@bsdimp.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
parent
4061c3346e
commit
9bfba08a1f
@ -235,7 +235,7 @@ static inline abi_long do_obreak(abi_ulong brk_val)
|
|||||||
return target_brk;
|
return target_brk;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Release heap if necesary */
|
/* Release heap if necessary */
|
||||||
if (new_brk < old_brk) {
|
if (new_brk < old_brk) {
|
||||||
target_munmap(new_brk, old_brk - new_brk);
|
target_munmap(new_brk, old_brk - new_brk);
|
||||||
|
|
||||||
|
@ -115,7 +115,7 @@ abi_long freebsd_exec_common(abi_ulong path_or_fd, abi_ulong guest_argp,
|
|||||||
}
|
}
|
||||||
|
|
||||||
qarg0 = argp = g_new0(char *, argc + 9);
|
qarg0 = argp = g_new0(char *, argc + 9);
|
||||||
/* save the first agrument for the emulator */
|
/* save the first argument for the emulator */
|
||||||
*argp++ = (char *)getprogname();
|
*argp++ = (char *)getprogname();
|
||||||
qargp = argp;
|
qargp = argp;
|
||||||
*argp++ = (char *)getprogname();
|
*argp++ = (char *)getprogname();
|
||||||
|
@ -146,7 +146,7 @@ static inline abi_long do_freebsd_fstatat(abi_long arg1, abi_long arg2,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* undocummented nstat(char *path, struct nstat *ub) syscall */
|
/* undocumented nstat(char *path, struct nstat *ub) syscall */
|
||||||
static abi_long do_freebsd11_nstat(abi_long arg1, abi_long arg2)
|
static abi_long do_freebsd11_nstat(abi_long arg1, abi_long arg2)
|
||||||
{
|
{
|
||||||
abi_long ret;
|
abi_long ret;
|
||||||
@ -162,7 +162,7 @@ static abi_long do_freebsd11_nstat(abi_long arg1, abi_long arg2)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* undocummented nfstat(int fd, struct nstat *sb) syscall */
|
/* undocumented nfstat(int fd, struct nstat *sb) syscall */
|
||||||
static abi_long do_freebsd11_nfstat(abi_long arg1, abi_long arg2)
|
static abi_long do_freebsd11_nfstat(abi_long arg1, abi_long arg2)
|
||||||
{
|
{
|
||||||
abi_long ret;
|
abi_long ret;
|
||||||
@ -175,7 +175,7 @@ static abi_long do_freebsd11_nfstat(abi_long arg1, abi_long arg2)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* undocummented nlstat(char *path, struct nstat *ub) syscall */
|
/* undocumented nlstat(char *path, struct nstat *ub) syscall */
|
||||||
static abi_long do_freebsd11_nlstat(abi_long arg1, abi_long arg2)
|
static abi_long do_freebsd11_nlstat(abi_long arg1, abi_long arg2)
|
||||||
{
|
{
|
||||||
abi_long ret;
|
abi_long ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user