Back to index

glibc  2.9
uname.c File Reference
#include <unistd.h>
#include <sys/utsname.h>
#include <hurd.h>
#include <hurd/startup.h>

Go to the source code of this file.


int __uname (struct utsname *uname)

Function Documentation

int __uname ( struct utsname uname)

Definition at line 25 of file uname.c.

  error_t err;

  if (err = __USEPORT (PROC, __proc_uname (port, uname)))
    return __hurd_fail (err);

  /* Fill in the hostname, which the proc server doesn't know.  */
  err = errno;
  if (__gethostname (uname->nodename, sizeof uname->nodename) < 0)
      if (errno == ENAMETOOLONG)
       /* Ignore the error of the buffer being too small.
          It is of fixed size, nothing to do about it.  */
       errno = err;
       return -1;

  return 0;

Here is the call graph for this function:

Here is the caller graph for this function: