bsd-user: spelling fixes
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Kyle Evans <kevans@FreeBSD.org> Reviewed-by: Warner Losh <imp@bsdimp.com>
This commit is contained in:
parent
e6a19a6477
commit
944399ffb2
@ -149,7 +149,7 @@
|
|||||||
#define TARGET_ELAST 90 /* Must be equal largest errno */
|
#define TARGET_ELAST 90 /* Must be equal largest errno */
|
||||||
|
|
||||||
/* Internal errors: */
|
/* Internal errors: */
|
||||||
#define TARGET_EJUSTRETURN 254 /* Just return without modifing regs */
|
#define TARGET_EJUSTRETURN 254 /* Just return without modifying regs */
|
||||||
#define TARGET_ERESTART 255 /* Restart syscall */
|
#define TARGET_ERESTART 255 /* Restart syscall */
|
||||||
|
|
||||||
#include "special-errno.h"
|
#include "special-errno.h"
|
||||||
|
@ -72,7 +72,7 @@ typedef struct target_siginfo {
|
|||||||
int32_t _mqd;
|
int32_t _mqd;
|
||||||
} _mesgp;
|
} _mesgp;
|
||||||
|
|
||||||
/* SIGPOLL -- Not really genreated in FreeBSD ??? */
|
/* SIGPOLL -- Not really generated in FreeBSD ??? */
|
||||||
struct {
|
struct {
|
||||||
int _band; /* POLL_IN, POLL_OUT, POLL_MSG */
|
int _band; /* POLL_IN, POLL_OUT, POLL_MSG */
|
||||||
} _poll;
|
} _poll;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "qemu/guest-random.h"
|
#include "qemu/guest-random.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The inital FreeBSD stack is as follows:
|
* The initial FreeBSD stack is as follows:
|
||||||
* (see kern/kern_exec.c exec_copyout_strings() )
|
* (see kern/kern_exec.c exec_copyout_strings() )
|
||||||
*
|
*
|
||||||
* Hi Address -> char **ps_argvstr (struct ps_strings for ps, w, etc.)
|
* Hi Address -> char **ps_argvstr (struct ps_strings for ps, w, etc.)
|
||||||
@ -59,7 +59,7 @@ static inline int setup_initial_stack(struct bsd_binprm *bprm,
|
|||||||
/* Save some space for ps_strings. */
|
/* Save some space for ps_strings. */
|
||||||
p -= sizeof(struct target_ps_strings);
|
p -= sizeof(struct target_ps_strings);
|
||||||
|
|
||||||
/* Add machine depedent sigcode. */
|
/* Add machine dependent sigcode. */
|
||||||
p -= TARGET_SZSIGCODE;
|
p -= TARGET_SZSIGCODE;
|
||||||
if (setup_sigtramp(p, (unsigned)offsetof(struct target_sigframe, sf_uc),
|
if (setup_sigtramp(p, (unsigned)offsetof(struct target_sigframe, sf_uc),
|
||||||
TARGET_FREEBSD_NR_sigreturn)) {
|
TARGET_FREEBSD_NR_sigreturn)) {
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
struct target_priority {
|
struct target_priority {
|
||||||
uint8_t pri_class; /* Scheduling class. */
|
uint8_t pri_class; /* Scheduling class. */
|
||||||
uint8_t pri_level; /* Normal priority level. */
|
uint8_t pri_level; /* Normal priority level. */
|
||||||
uint8_t pri_native; /* Priority before propogation. */
|
uint8_t pri_native; /* Priority before propagation. */
|
||||||
uint8_t pri_user; /* User priority based on p_cpu and p_nice. */
|
uint8_t pri_user; /* User priority based on p_cpu and p_nice. */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ extern const char *qemu_uname_release;
|
|||||||
/*
|
/*
|
||||||
* TARGET_ARG_MAX defines the number of bytes allocated for arguments
|
* TARGET_ARG_MAX defines the number of bytes allocated for arguments
|
||||||
* and envelope for the new program. 256k should suffice for a reasonable
|
* and envelope for the new program. 256k should suffice for a reasonable
|
||||||
* maxiumum env+arg in 32-bit environments, bump it up to 512k for !ILP32
|
* maximum env+arg in 32-bit environments, bump it up to 512k for !ILP32
|
||||||
* platforms.
|
* platforms.
|
||||||
*/
|
*/
|
||||||
#if TARGET_ABI_BITS > 32
|
#if TARGET_ABI_BITS > 32
|
||||||
|
@ -49,11 +49,11 @@ void target_to_host_sigset(sigset_t *d, const target_sigset_t *s);
|
|||||||
* union in target_siginfo is valid. This only applies between
|
* union in target_siginfo is valid. This only applies between
|
||||||
* host_to_target_siginfo_noswap() and tswap_siginfo(); it does not appear
|
* host_to_target_siginfo_noswap() and tswap_siginfo(); it does not appear
|
||||||
* either within host siginfo_t or in target_siginfo structures which we get
|
* either within host siginfo_t or in target_siginfo structures which we get
|
||||||
* from the guest userspace program. Linux kenrels use this internally, but BSD
|
* from the guest userspace program. Linux kernels use this internally, but BSD
|
||||||
* kernels don't do this, but its a useful abstraction.
|
* kernels don't do this, but its a useful abstraction.
|
||||||
*
|
*
|
||||||
* The linux-user version of this uses the top 16 bits, but FreeBSD's SI_USER
|
* The linux-user version of this uses the top 16 bits, but FreeBSD's SI_USER
|
||||||
* and other signal indepenent SI_ codes have bit 16 set, so we only use the top
|
* and other signal independent SI_ codes have bit 16 set, so we only use the top
|
||||||
* byte instead.
|
* byte instead.
|
||||||
*
|
*
|
||||||
* For FreeBSD, we have si_pid, si_uid, si_status, and si_addr always. Linux and
|
* For FreeBSD, we have si_pid, si_uid, si_status, and si_addr always. Linux and
|
||||||
|
@ -44,7 +44,7 @@ static inline int sas_ss_flags(TaskState *ts, unsigned long sp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The BSD ABIs use the same singal numbers across all the CPU architectures, so
|
* The BSD ABIs use the same signal numbers across all the CPU architectures, so
|
||||||
* (unlike Linux) these functions are just the identity mapping. This might not
|
* (unlike Linux) these functions are just the identity mapping. This might not
|
||||||
* be true for XyzBSD running on AbcBSD, which doesn't currently work.
|
* be true for XyzBSD running on AbcBSD, which doesn't currently work.
|
||||||
*/
|
*/
|
||||||
@ -241,7 +241,7 @@ static inline void host_to_target_siginfo_noswap(target_siginfo_t *tinfo,
|
|||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* Unsure that this can actually be generated, and our support for
|
* Unsure that this can actually be generated, and our support for
|
||||||
* capsicum is somewhere between weak and non-existant, but if we get
|
* capsicum is somewhere between weak and non-existent, but if we get
|
||||||
* one, then we know what to save.
|
* one, then we know what to save.
|
||||||
*/
|
*/
|
||||||
#ifdef QEMU_SI_CAPSICUM
|
#ifdef QEMU_SI_CAPSICUM
|
||||||
@ -319,7 +319,7 @@ int block_signals(void)
|
|||||||
/*
|
/*
|
||||||
* It's OK to block everything including SIGSEGV, because we won't run any
|
* It's OK to block everything including SIGSEGV, because we won't run any
|
||||||
* further guest code before unblocking signals in
|
* further guest code before unblocking signals in
|
||||||
* process_pending_signals(). We depend on the FreeBSD behaivor here where
|
* process_pending_signals(). We depend on the FreeBSD behavior here where
|
||||||
* this will only affect this thread's signal mask. We don't use
|
* this will only affect this thread's signal mask. We don't use
|
||||||
* pthread_sigmask which might seem more correct because that routine also
|
* pthread_sigmask which might seem more correct because that routine also
|
||||||
* does odd things with SIGCANCEL to implement pthread_cancel().
|
* does odd things with SIGCANCEL to implement pthread_cancel().
|
||||||
|
Loading…
Reference in New Issue
Block a user