previous | start | next

The no_sys function

  PUBLIC int no_sys()
  {
     /* Somebody has used an illegal system call number */
     return(EINVAL);
  }

PUBLIC and PRIVATE are preprocessor macros defined in

  /usr/src/include/minix/const.h

    #define PUBLIC   
    #define PRIVATE  static

If a function is defined in a file such as utility.c, and has the static modifier, it is not visible to the linker.

So it can't be called from any other files.

Consequently for static functions, each file can have its own 'private' version of a function.



previous | start | next