aruu

[MIRROR] Actual replacement for Busybox | suckless
git clone https://git.daat.foo/aruu.git
Log | Files | Refs | README | LICENSE

session_posix.c (608B)


      1 /* see LICENSE file for copyright and license details */
      2 #include "../session.h"
      3 
      4 #include <errno.h>
      5 
      6 /* no login records: who and last have nothing to read */
      7 #if !defined(__linux__) || defined(ARUU_FORCE_POSIX)
      8 void
      9 session_record(const char *user)
     10 {
     11   (void)user;
     12 }
     13 
     14 int
     15 session_each(const char *path, session_fn *fn, void *arg)
     16 {
     17   (void)path;
     18   (void)fn;
     19   (void)arg;
     20   errno = ENOTSUP;
     21   return -1;
     22 }
     23 
     24 void
     25 session_clear(const char *line)
     26 {
     27   (void)line;
     28 }
     29 
     30 int
     31 session_lastlog(FILE *fp, uid_t uid, struct SessionEntry *e)
     32 {
     33   (void)fp;
     34   (void)uid;
     35   (void)e;
     36   errno = ENOTSUP;
     37   return -1;
     38 }
     39 #endif