/[emacs]/emacs/src/mac.c
ViewVC logotype

Diff of /emacs/src/mac.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by miles, Mon Sep 1 15:45:56 2003 UTC revision 1.18 by lh, Sat Nov 22 23:00:59 2003 UTC
# Line 30  Boston, MA 02111-1307, USA.  */ Line 30  Boston, MA 02111-1307, USA.  */
30  #include <sys/stat.h>  #include <sys/stat.h>
31  #include <string.h>  #include <string.h>
32  #include <pwd.h>  #include <pwd.h>
33    #include <grp.h>
34  #include <sys/param.h>  #include <sys/param.h>
35  #include <stdlib.h>  #include <stdlib.h>
36  #include <fcntl.h>  #include <fcntl.h>
# Line 1164  static struct passwd my_passwd = Line 1165  static struct passwd my_passwd =
1165    my_passwd_dir,    my_passwd_dir,
1166  };  };
1167    
1168    static struct group my_group =
1169    {
1170      /* There are no groups on the mac, so we just return "root" as the
1171         group name.  */
1172      "root",
1173    };
1174    
1175    
1176  /* Initialized by main () in macterm.c to pathname of emacs directory.  */  /* Initialized by main () in macterm.c to pathname of emacs directory.  */
1177    
# Line 1258  getpwuid (uid_t uid) Line 1266  getpwuid (uid_t uid)
1266  }  }
1267    
1268    
1269    struct group *
1270    getgrgid (gid_t gid)
1271    {
1272      return &my_group;
1273    }
1274    
1275    
1276  struct passwd *  struct passwd *
1277  getpwnam (const char *name)  getpwnam (const char *name)
1278  {  {

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26