File: pwd.c

package info (click to toggle)
cvs 1.10.7-1.99.slink.y2k.1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,892 kB
  • ctags: 5,463
  • sloc: ansic: 68,307; sh: 17,664; makefile: 1,640; perl: 902; yacc: 826; csh: 181; lisp: 7
file content (20 lines) | stat: -rw-r--r-- 509 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "pwd.h"
#include <stdio.h>
#include <unixlib.h>

static struct passwd pw;

/* This is only called from one relevant place, lock.c.  In that context
   the code is really trying to figure out who owns a directory.  Nothing
   which has anything to do with getpwuid or anything of the sort can help
   us on VMS (getuid returns only the group part of the UIC).  */
struct passwd *getpwuid(unsigned int uid)
{
    return NULL;
}

char *getlogin()
{
  static char login[256];
  return cuserid(login);
}