[OpenBIOS] code

Ronald G. Minnich rminnich at lanl.gov
Wed Feb 16 12:49:38 CET 2000


On Wed, 16 Feb 2000, Marcel Wijlaars wrote:
> tbootfile.c: In function `bootfile':
> tbootfile.c:7: `SYS_bootfile' undeclared (first use this function)
> tbootfile.c:7: (Each undeclared identifier is reported only once
> tbootfile.c:7: for each function it appears in.)

Here's my code:
#include <stdio.h>
#include <errno.h>
#include <syscall.h>

#define __NR_bootfile 191 

_syscall1(int, bootfile, char *, name);

int 
main(int argc, char *argv[])
{
  char *name =  "test";
  if (argc > 1)
    name = argv[1];
  printf("name is %p\n", name);
  bootfile(name);
} 


I just compiled this without error. Here's my gcc:
> gcc -v -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
> 

Here's my linux:

> uname -a
Linux mini 2.2.13 #1 SMP Thu Dec 2 12:52:17 MST 1999 i686 unknown
> 


Try the stuff I pasted into this message, although I just loaded it from
the web page and it worked fine.

ron

-
To unsubscribe: send mail to majordomo at freiburg.linux.de
with 'unsubscribe openbios' in the body of the message



More information about the openbios mailing list