Page MenuHomeFreeBSD

D46953.id144290.diff
No OneTemporary

D46953.id144290.diff

diff --git a/lib/libsys/brk.2 b/lib/libsys/brk.2
--- a/lib/libsys/brk.2
+++ b/lib/libsys/brk.2
@@ -62,7 +62,6 @@
and
.Fn sbrk
depending on its configuration.
-This is always the case on the aarch64 and riscv architectures.
.Ef
.Pp
The
@@ -165,10 +164,17 @@
function appeared in
.At v7 .
.Fx 11.0
-introduced the arm64 and riscv architectures which do not support
+introduced the arm64 and riscv architectures which did not support
.Fn brk
or
.Fn sbrk .
+As of
+.Fx 15.0
+.Fn brk
+and
+.Fn sbrk
+are available for all architectures and are provided for backwards
+compatibility only.
.Sh BUGS
Mixing
.Fn brk
diff --git a/sys/vm/vm_unix.c b/sys/vm/vm_unix.c
--- a/sys/vm/vm_unix.c
+++ b/sys/vm/vm_unix.c
@@ -68,7 +68,6 @@
int
freebsd14_break(struct thread *td, struct freebsd14_break_args *uap)
{
-#if !defined(__aarch64__) && !defined(__riscv)
uintptr_t addr;
int error;
@@ -77,9 +76,6 @@
if (error == 0)
td->td_retval[0] = addr;
return (error);
-#else /* defined(__aarch64__) || defined(__riscv) */
- return (ENOSYS);
-#endif /* defined(__aarch64__) || defined(__riscv) */
}
#endif

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 23, 1:25 AM (20 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30150793
Default Alt Text
D46953.id144290.diff (1 KB)

Event Timeline