Re: sbrk

[email protected]
Newsgroups gmane.os.freebsd.devel.arm
Message-ID <949f8f16-1219-4f4a-abf6-f9727c95681b@Spark>
Yes, it’s no longer included. It’s long been deprecated, but that does make porting things like the original vi a bit challenging.

Is there a particular project you’re trying to use it for?

--
Joseph Holsten
On Nov 25, 2023 at 19:41 -0800, Bakul Shah <[email protected]>, wrote:
> Does sbrk not exist on FreeBSD-14 on arm64? Is this by design?
>
> $ cat sb.c
> #include <unistd.h>
> #include <stdio.h>
> int main(int c, char**v) {
>         void *x = sbrk(102400);
>         printf("%p\n", x);
> }
> $ cc sb.c
> ld: error: undefined symbol: sbrk
> >>> referenced by sb.c
> >>>               /tmp/sb-e97caf.o:(main)
> cc: error: linker command failed with exit code 1 (use -v to see invocation)
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.