Ignore:
Location:
tags/syscall-add-simple-foo/minix
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tags/syscall-add-simple-foo/minix/include/minix/callnr.h

    r10 r26  
    1 #define NCALLS            95    /* number of system calls allowed */
     1#define NCALLS            96    /* number of system calls allowed */
    22
    33#define EXIT               1
     
    8787#define TRUNCATE          93    /* to FS */
    8888#define FTRUNCATE         94    /* to FS */
     89#define FOO       95    /* to PM */
  • tags/syscall-add-simple-foo/minix/servers/fs/table.c

    r10 r26  
    113113        do_truncate,    /* 93 = truncate */
    114114        do_ftruncate,   /* 94 = truncate */
     115        no_sys,         /* 95 = foo */
    115116};
    116117/* This should not fail with "array size is negative": */
  • tags/syscall-add-simple-foo/minix/servers/pm/misc.c

    r10 r26  
    428428}
    429429
     430PUBLIC int do_foo()
     431{
     432        printf("Foo syscall called!\n");
     433        return OK;
     434}
  • tags/syscall-add-simple-foo/minix/servers/pm/proto.h

    r10 r26  
    5757
    5858/* misc.c */
     59_PROTOTYPE( int do_foo, (void)                                  );
    5960_PROTOTYPE( int do_reboot, (void)                                       );
    6061_PROTOTYPE( int do_procstat, (void)                                     );
  • tags/syscall-add-simple-foo/minix/servers/pm/table.c

    r10 r26  
    111111        no_sys,         /* 93 = truncate */
    112112        no_sys,         /* 94 = ftruncate */
     113        do_foo,         /* 95 = foo */
    113114};
    114115/* This should not fail with "array size is negative": */
Note: See TracChangeset for help on using the changeset viewer.