Don't implement break(2) at all on aarch64 and riscv.
This should have been done when they were removed from libc, but was overlooked in the runup to 11.0. No users should exist. Approved by: andrew Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D15539
This commit is contained in:
parent
49b2a5fede
commit
758d46cfb0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334168
@ -65,14 +65,10 @@ struct obreak_args {
|
||||
char *nsize;
|
||||
};
|
||||
#endif
|
||||
|
||||
/*
|
||||
* MPSAFE
|
||||
*/
|
||||
/* ARGSUSED */
|
||||
int
|
||||
sys_obreak(struct thread *td, struct obreak_args *uap)
|
||||
{
|
||||
#if !defined(__aarch64__) && !defined(__riscv__)
|
||||
struct vmspace *vm = td->td_proc->p_vmspace;
|
||||
vm_map_t map = &vm->vm_map;
|
||||
vm_offset_t new, old, base;
|
||||
@ -230,6 +226,9 @@ sys_obreak(struct thread *td, struct obreak_args *uap)
|
||||
VM_MAP_WIRE_USER|VM_MAP_WIRE_NOHOLES);
|
||||
|
||||
return (error);
|
||||
#else /* defined(__aarch64__) || defined(__riscv__) */
|
||||
return (ENOSYS);
|
||||
#endif /* defined(__aarch64__) || defined(__riscv__) */
|
||||
}
|
||||
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
|
Loading…
Reference in New Issue
Block a user