sync with OpenBSD -current
This commit is contained in:
parent
bc7421a947
commit
4cca26dc5a
120 changed files with 4168 additions and 640 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: exec_elf.c,v 1.186 2024/04/02 08:39:16 deraadt Exp $ */
|
||||
/* $OpenBSD: exec_elf.c,v 1.188 2024/07/14 11:36:54 jca Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 Per Fogelstrom
|
||||
|
@ -89,6 +89,7 @@
|
|||
|
||||
#include <machine/reg.h>
|
||||
#include <machine/exec.h>
|
||||
#include <machine/elf.h>
|
||||
|
||||
int elf_load_file(struct proc *, char *, struct exec_package *,
|
||||
struct elf_args *);
|
||||
|
@ -923,6 +924,14 @@ bad:
|
|||
return (error);
|
||||
}
|
||||
|
||||
#ifdef __HAVE_CPU_HWCAP
|
||||
unsigned long hwcap;
|
||||
#endif /* __HAVE_CPU_HWCAP */
|
||||
|
||||
#ifdef __HAVE_CPU_HWCAP2
|
||||
unsigned long hwcap2;
|
||||
#endif /* __HAVE_CPU_HWCAP2 */
|
||||
|
||||
/*
|
||||
* Phase II of load. It is now safe to load the interpreter. Info collected
|
||||
* when loading the program is available for setup of the interpreter.
|
||||
|
@ -995,6 +1004,18 @@ exec_elf_fixup(struct proc *p, struct exec_package *epp)
|
|||
a->au_v = ap->arg_entry;
|
||||
a++;
|
||||
|
||||
#ifdef __HAVE_CPU_HWCAP
|
||||
a->au_id = AUX_hwcap;
|
||||
a->au_v = hwcap;
|
||||
a++;
|
||||
#endif /* __HAVE_CPU_HWCAP */
|
||||
|
||||
#ifdef __HAVE_CPU_HWCAP2
|
||||
a->au_id = AUX_hwcap2;
|
||||
a->au_v = hwcap2;
|
||||
a++;
|
||||
#endif /* __HAVE_CPU_HWCAP2 */
|
||||
|
||||
a->au_id = AUX_openbsd_timekeep;
|
||||
a->au_v = p->p_p->ps_timekeep;
|
||||
a++;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: uipc_socket.c,v 1.337 2024/07/12 17:20:18 mvs Exp $ */
|
||||
/* $OpenBSD: uipc_socket.c,v 1.338 2024/07/14 15:42:23 bluhm Exp $ */
|
||||
/* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -1690,7 +1690,7 @@ somove(struct socket *so, int wait)
|
|||
* Move only a partial mbuf at maximum splice length or
|
||||
* if the drain buffer is too small for this large mbuf.
|
||||
*/
|
||||
if (!maxreached && so->so_snd.sb_datacc > 0) {
|
||||
if (!maxreached && sosp->so_snd.sb_datacc > 0) {
|
||||
len -= size;
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue