Subject: How to print "Hello" using system call?
To: None <tech-kern@NetBSD.org>
From: Keichii Moto <keichiitoyota@yahoo.com>
List: tech-kern
Date: 07/15/2003 07:43:26
Hi,
I'm trying to print "Hello" via system call.
Here is my code:
/* I don't know what header files I should add */
int
sys_hello(struct lwp *l, void *v, register_t *retval)
{
struct sys_hello_args /* {
syscallarg(int) rval;
} */ *uap = v;
printf("Hello\n");
return (0);
}
I'm not sure that using printf. In Linux, I can
use printk(), I don't know how to use in NetBSD.
Would anyone tell me? Thanks.
Regards,
Keichii.
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com