$./a.out Memory fault / gcc

Wood <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
Hi, can someone tell why this is not working on NetBSD?
(I'm running NetBSD/i386 3.1)

$cat test.c
#include<stdio.h>

void read(){
    printf("function: read\n");
}

void write(){
    printf("function: write\n");
}

int main(){
    read();
    write();

    return 1;
}

$gcc test.c
$
$./a.out
Memory fault
$


It works perfect on Linux and FreeBSD.

Is read and write protected words?
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.