aruu

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

accounts_posix.c (691B)


      1 /* see LICENSE file for copyright and license details */
      2 #include "../accounts.h"
      3 
      4 #include <errno.h>
      5 
      6 /* where accounts are kept some other way (a BSD's master.passwd and its
      7  * database): not here yet */
      8 #if !defined(__linux__) || defined(ARUU_FORCE_POSIX)
      9 int
     10 acct_add(const char *name, const char *home, const char *shell, const char *hash, uid_t *uid)
     11 {
     12   (void)name;
     13   (void)home;
     14   (void)shell;
     15   (void)hash;
     16   (void)uid;
     17   errno = ENOSYS;
     18   return -1;
     19 }
     20 
     21 int
     22 acct_remove(const char *name)
     23 {
     24   (void)name;
     25   errno = ENOSYS;
     26   return -1;
     27 }
     28 
     29 int
     30 acct_member(const char *group, const char *name, int in)
     31 {
     32   (void)group;
     33   (void)name;
     34   (void)in;
     35   errno = ENOSYS;
     36   return -1;
     37 }
     38 #endif