forked from Imagelibrary/rtems
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/shell/pwcache.c: Include "internal.h". Make user_from_uid non-static.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
* libmisc/shell/pwcache.c: Include "internal.h".
|
||||
Make user_from_uid non-static.
|
||||
* libmisc/shell/internal.h: Add user_from_uid, group_from_gid.
|
||||
|
||||
2011-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||
|
||||
@@ -43,14 +43,15 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/pwcache.c,v 1.11 2007/01/09 00:27:55 imp Ex
|
||||
#include <pwd.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
//#include <utmp.h>
|
||||
|
||||
#include "internal.h"
|
||||
|
||||
#define UT_NAMESIZE 64
|
||||
|
||||
#define NCACHE 64 /* power of 2 */
|
||||
#define MASK (NCACHE - 1) /* bits to store with */
|
||||
|
||||
static const char *
|
||||
const char *
|
||||
user_from_uid(uid_t uid, int nouser)
|
||||
{
|
||||
static struct ncache {
|
||||
|
||||
Reference in New Issue
Block a user