Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 4972 → Rev 4973

/programs/develop/libraries/menuetlibc/src/libc/posix/grp/getgrent.c
0,0 → 1,35
/* 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;
}