+1999-05-12 Martin Baulig <martin@home-of-linux.org>
+
+ * canonicalize.c: Use `set_errno' instead of `__set_errno' and
+ define `set_errno' here.
+
1999-03-27 Raja R Harinath <harinath@cs.umn.edu>
* Makefile.am (supportexecincludedir): Rename from
that cannot be resolved. If the path can be resolved, RESOLVED
holds the same value as the value returned. */
+#ifdef _LIBC
+#define set_errno(e) __set_errno(e)
+#else
+#define set_errno(e) errno = (e)
+#endif
+
static char *
canonicalize (const char *name, char *resolved)
{
{
if (resolved)
{
- __set_errno (ENAMETOOLONG);
+ set_errno (ENAMETOOLONG);
goto error;
}
new_size = rpath_limit - rpath;
if (++num_links > MAXSYMLINKS)
{
- __set_errno (ELOOP);
+ set_errno (ELOOP);
goto error;
}
if ((long int) (n + strlen (end)) >= path_max)
{
- __set_errno (ENAMETOOLONG);
+ set_errno (ENAMETOOLONG);
goto error;
}
{
if (resolved == NULL)
{
- __set_errno (EINVAL);
+ set_errno (EINVAL);
return NULL;
}