Re: Best Way to Create String Variables in Assembly



Charles A. Crayne <ccrayne@xxxxxxxxxx> wrote:
> "bwaichu{at}yahoo.com" <bwaichu@xxxxxxxxx> wrote:
>
> :/usr/src/sys/kern $ cat syscalls.master | grep brk
> :69 STD { int sys_sbrk(int incr); }
>
> Interestingly enough, I don't have a "/usr/src/sys/kern"
> directory; I don't have a "syscalls.master" file in any
> directory; and my syscalls table shows that syscall 69 is
> 'ssetmask'. [snip] What are you running?

I suspect Brian is running FreeBSD. I get the same on
that system. Interestingly, on Linux, I get:

$ grep brk /usr/include/asm-i386/unistd.h
#define __NR_brk 45


It appears that *BSD has only the sbrk() syscall,
while Linux has only brk(). Slight difference.

-- Robert

.



Relevant Pages

  • Re: User-mode Linux (Was: modify syscall nr on-the-fly)
    ... User-mode Linux in it's start-up tests tries to modify syscall number (to be ... catches SIGTRAP it tries to modify EAX of child thread ... as well as copies the syscall arguments into the kernel address space. ...
    (freebsd-hackers)
  • TLS - implementing linux one in fbsd
    ... Linux and FreeBSD TLS implementation - comparison ... In kernel there's thr_newsyscall or thread_createsyscall. ...
    (freebsd-hackers)
  • Re: syscall cost freebsd vs linux ?
    ... On comparable hardware the syscall ... getppidtakes about 95ns on FreeBSD and 38ns on linux. ... Prof. Luigi RIZZO, rizzo@xxxxxxxxxxxx. ...
    (freebsd-current)
  • Re: modify syscall nr on-the-fly
    ... User-mode Linux in it's start-up tests tries to modify syscall number (to be ... catches SIGTRAP it tries to modify EAX of child thread ... as well as copies the syscall arguments into the kernel address space. ...
    (freebsd-hackers)
  • Re: Snapshot 5.37 of xina
    ... the open syscall behaves slightly differently on OSX cmp linux. ... The windows SAVE-SYSTEM has an index line ...
    (comp.lang.forth)