Re: sbrk vs mmap

2007-01-11 Thread Suleiman Souhlal
darran kartaschew wrote: Hi Guys, I'm having some issues with rewriting a simple malloc() function to be with FreeBSD (AMD64). This is part of porting an application from Linux to FreeBSD. After pulling my hair out for a while, I've found that the sbrk() system call just

sbrk vs mmap

2007-01-10 Thread darran kartaschew
Hi Guys, I'm having some issues with rewriting a simple malloc() function to be with FreeBSD (AMD64). This is part of porting an application from Linux to FreeBSD. After pulling my hair out for a while, I've found that the sbrk() system call just returns 45 - Operation Not

Re: sbrk vs mmap

2007-01-10 Thread John Baldwin
On Wednesday 10 January 2007 01:22, darran kartaschew wrote: Hi Guys, I'm having some issues with rewriting a simple malloc() function to be with FreeBSD (AMD64). This is part of porting an application from Linux to FreeBSD. After pulling my hair out for a while, I've

Re: sbrk vs mmap

2007-01-10 Thread darran kartaschew
Is there a particular reason you have to use assembly and not C? The whole application is in assembly (some of us still enjoy coding in assembly), and rather not link to libc if I don't have to. (There are about 5 syscalls for the entire application, porting between each OS's