/* Look up user and/or group names.
- Copyright (C) 1988, 1992 Free Software Foundation
+ Copyright (C) 1988 Free Software Foundation
This file is part of GNU Tar.
*
* This file should be modified for non-unix systems to do something
* reasonable.
+ *
+ * @(#)names.c 1.3 10/30/87 - gnu
*/
-
#include <sys/types.h>
#include "tar.h"
-#include "port.h"
+
+extern char *strncpy();
#ifndef NONAMES
/* Whole module goes away if NONAMES defined. Otherwise... */
-#include <stdio.h>
#include <pwd.h>
#include <grp.h>
int uid;
{
struct passwd *pw;
-#ifndef HAVE_GETPWUID
extern struct passwd *getpwuid ();
-#endif
if (uid != saveuid) {
saveuid = uid;
int gid;
{
struct group *gr;
-#ifndef HAVE_GETGRGID
extern struct group *getgrgid ();
-#endif
if (gid != savegid) {
savegid = gid;