Re: sbrk
- Reply: Warner Losh : "Re: sbrk"
- In reply to: Bakul Shah : "sbrk"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 26 Nov 2023 03:44:10 UTC
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 <bakul@iitbombay.org>, 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)
>