Go to most recent revision |
Blame |
Last modification |
View Log
| Download
| RSS feed
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
#include <grp.h>
#include <unistd.h>
static int tag = 0;
struct group *
getgrent(void)
{
if (tag == 0)
{
tag = 1;
return getgrgid(getgid());
}
return 0;
}
/* ARGSUSED */
struct group *
fgetgrent(void *f)
{
return getgrent();
}
void
setgrent(void)
{
tag = 0;
}
void
endgrent(void)
{
tag = 0;
}