Print this page
7127  remove -Wno-missing-braces from Makefile.uts


  19  *
  20  * This file contains all the external entry points of klmops.
  21  * Basically, this is the "glue" to the BSD nlm code.
  22  */
  23 
  24 #include <sys/types.h>
  25 #include <sys/errno.h>
  26 #include <sys/modctl.h>
  27 #include <sys/flock.h>
  28 
  29 #include <nfs/lm.h>
  30 #include <rpcsvc/nlm_prot.h>
  31 #include "nlm_impl.h"
  32 
  33 
  34 static struct modlmisc modlmisc = {
  35         &mod_miscops, "lock mgr calls"
  36 };
  37 
  38 static struct modlinkage modlinkage = {
  39         MODREV_1, &modlmisc, NULL
  40 };
  41 
  42 
  43 
  44 /*
  45  * ****************************************************************
  46  * module init, fini, info
  47  */
  48 int
  49 _init()
  50 {
  51         return (mod_install(&modlinkage));
  52 }
  53 
  54 int
  55 _fini()
  56 {
  57         /* Don't unload. */
  58         return (EBUSY);
  59 }




  19  *
  20  * This file contains all the external entry points of klmops.
  21  * Basically, this is the "glue" to the BSD nlm code.
  22  */
  23 
  24 #include <sys/types.h>
  25 #include <sys/errno.h>
  26 #include <sys/modctl.h>
  27 #include <sys/flock.h>
  28 
  29 #include <nfs/lm.h>
  30 #include <rpcsvc/nlm_prot.h>
  31 #include "nlm_impl.h"
  32 
  33 
  34 static struct modlmisc modlmisc = {
  35         &mod_miscops, "lock mgr calls"
  36 };
  37 
  38 static struct modlinkage modlinkage = {
  39         MODREV_1, { &modlmisc, NULL }
  40 };
  41 
  42 
  43 
  44 /*
  45  * ****************************************************************
  46  * module init, fini, info
  47  */
  48 int
  49 _init()
  50 {
  51         return (mod_install(&modlinkage));
  52 }
  53 
  54 int
  55 _fini()
  56 {
  57         /* Don't unload. */
  58         return (EBUSY);
  59 }