Need an internal name for asprintf(3).

This commit is contained in:
kleink 2001-04-13 14:18:09 +00:00
parent 6eda18ef7f
commit 3432ed7203
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: namespace.h,v 1.62 2001/03/31 18:58:41 kleink Exp $ */
/* $NetBSD: namespace.h,v 1.63 2001/04/13 14:18:09 kleink Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -93,6 +93,7 @@
#define alarm _alarm
#define alphasort _alphasort
#define asctime_r _asctime_r
#define asprintf _asprintf
#define atoll _atoll
#define authnone_create _authnone_create
#define authunix_create _authunix_create

View File

@ -1,4 +1,4 @@
/* $NetBSD: asprintf.c,v 1.7 2000/01/21 19:51:36 mycroft Exp $ */
/* $NetBSD: asprintf.c,v 1.8 2001/04/13 14:18:09 kleink Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@ -29,9 +29,10 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: asprintf.c,v 1.7 2000/01/21 19:51:36 mycroft Exp $");
__RCSID("$NetBSD: asprintf.c,v 1.8 2001/04/13 14:18:09 kleink Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
@ -42,6 +43,10 @@ __RCSID("$NetBSD: asprintf.c,v 1.7 2000/01/21 19:51:36 mycroft Exp $");
#include <varargs.h>
#endif
#ifdef __weak_alias
__weak_alias(asprintf, _asprintf)
#endif
int
#if __STDC__
asprintf(char **str, char const *fmt, ...)