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:
Ralf Corsepius
2011-12-04 18:20:23 +00:00
parent 5383441cf7
commit d7417a517f
2 changed files with 5 additions and 2 deletions

View File

@@ -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>

View File

@@ -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 {