utmpx.c raw

   1  #define _GNU_SOURCE
   2  #include <utmpx.h>
   3  #include <stddef.h>
   4  #include <errno.h>
   5  
   6  void endutxent(void)
   7  {
   8  }
   9  
  10  void setutxent(void)
  11  {
  12  }
  13  
  14  struct utmpx *getutxent(void)
  15  {
  16  	return NULL;
  17  }
  18  
  19  struct utmpx *getutxid(const struct utmpx *ut)
  20  {
  21  	return NULL;
  22  }
  23  
  24  struct utmpx *getutxline(const struct utmpx *ut)
  25  {
  26  	return NULL;
  27  }
  28  
  29  struct utmpx *pututxline(const struct utmpx *ut)
  30  {
  31  	return NULL;
  32  }
  33  
  34  void updwtmpx(const char *f, const struct utmpx *u)
  35  {
  36  }
  37  
  38  static int __utmpxname(const char *f)
  39  {
  40  	errno = ENOTSUP;
  41  	return -1;
  42  }
  43  
  44  weak_alias(endutxent, endutent);
  45  weak_alias(setutxent, setutent);
  46  weak_alias(getutxent, getutent);
  47  weak_alias(getutxid, getutid);
  48  weak_alias(getutxline, getutline);
  49  weak_alias(pututxline, pututline);
  50  weak_alias(updwtmpx, updwtmp);
  51  weak_alias(__utmpxname, utmpname);
  52  weak_alias(__utmpxname, utmpxname);
  53