-/* Copyright (C) 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
#include <stdlib.h>
#include <utmp.h>
-#ifndef _LIBC
-#define __set_errno(val) errno = (val)
-#endif
/* Return the result of ttyname in the buffer pointed to by TTY, which should
be of length BUF_LEN. If it is too long to fit in this buffer, a
__set_errno (ENOMEM);
break;
}
+ buf = new_buf;
}
if (rv == 0)