Back to index

glibc  2.9
getlogin_r.c File Reference
#include <errno.h>
#include <unistd.h>
#include <hurd.h>
#include <string.h>

Go to the source code of this file.


int getlogin_r (char *name, size_t name_len)

Function Documentation

int getlogin_r ( char *  name,
size_t  name_len 

Definition at line 29 of file getlogin_r.c.

  static char login[1024];  /* XXX */
  error_t err;

  if (err = __USEPORT (PROC, __proc_getlogin (port, login)))
    return errno = err;

  strncpy (name, login, name_len);
  return 0;

Here is the call graph for this function: