]> Dogcows Code - chaz/tar/blobdiff - src/names.c
Initial revision
[chaz/tar] / src / names.c
index acd7857f671a25b548f6e106d6cf261c6f9eeae5..26a8e63f90a915f6e41e8b1d8d98471c867f964e 100644 (file)
@@ -1,5 +1,5 @@
 /* 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.
 
@@ -22,15 +22,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  *
  * 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>
 
@@ -59,9 +60,7 @@ finduname(uname, uid)
        int     uid;
 {
        struct passwd   *pw;
-#ifndef HAVE_GETPWUID
        extern struct passwd *getpwuid ();
-#endif
 
        if (uid != saveuid) {
                saveuid = uid;
@@ -100,9 +99,7 @@ findgname(gname, gid)
        int     gid;
 {
        struct group    *gr;
-#ifndef HAVE_GETGRGID
        extern struct group *getgrgid ();
-#endif
 
        if (gid != savegid) {
                savegid = gid;
This page took 0.021109 seconds and 4 git commands to generate.