+2004-01-18 Simon Josefsson <jas@extundo.com>
+
+ * strdup.h: New file.
+ * strdup.c: Include it.
+ * path-concat.c: Include strdup.h. Drop strdup declaration.
+ * userspec.c: Include strdup.h. Drop strdup declaration.
+
2004-02-06 Karl Berry <karl@gnu.org>
* config.charset: update from gettext 0.14.1.
/* path-concat.c -- concatenate two arbitrary pathnames
- Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free
Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
# include <config.h>
#endif
+/* Specification. */
+#include "path-concat.h"
+
#ifndef HAVE_MEMPCPY
# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
#endif
# include <unistd.h>
#endif
-#ifndef strdup
-char *strdup ();
-#endif
-
+#include "strdup.h"
#include "dirname.h"
#include "xalloc.h"
-#include "path-concat.h"
/* Concatenate two pathname components, DIR and BASE, in
newly-allocated storage and return the result. Return 0 if out of
-/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003 Free Software
+/* Copyright (C) 1991, 1996, 1997, 1998, 2002, 2003, 2004 Free Software
Foundation, Inc.
This file is part of the GNU C Library.
# include <config.h>
#endif
+#ifndef _LIBC
+/* Get specification. */
+#include "strdup.h"
+#endif
+
#include <stdlib.h>
#include <string.h>
/* userspec.c -- Parse a user and group string.
- Copyright (C) 1989-1992, 1997-1998, 2000, 2002-2003 Free Software
+ Copyright (C) 1989-1992, 1997-1998, 2000, 2002-2004 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
#include <alloca.h>
+/* Specification. */
+#include "userspec.h"
+
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
# include <unistd.h>
#endif
-#include "userspec.h"
+#include "strdup.h"
#include "posixver.h"
#include "xalloc.h"
#include "xstrtol.h"
of `digit' even when the host does not conform to POSIX. */
#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
-#ifndef strdup
-char *strdup ();
-#endif
-
/* Return nonzero if STR represents an unsigned decimal integer,
otherwise return 0. */