Need internal names for snprintf() and vsnprintf().

This commit is contained in:
kleink 1998-10-13 14:19:21 +00:00
parent 8b3da7b7a8
commit ee1afe8b7c
6 changed files with 27 additions and 13 deletions

View File

@ -1,7 +1,7 @@
/* $NetBSD: namespace.h,v 1.12 1998/10/13 14:07:04 kleink Exp $ */
/* $NetBSD: namespace.h,v 1.13 1998/10/13 14:19:21 kleink Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -282,6 +282,7 @@
#define sl_free _sl_free
#define sl_init _sl_init
#define sleep _sleep
#define snprintf _snprintf
#define sradixsort _sradixsort
#define srand48 _srand48
#define srandom _srandom
@ -345,6 +346,7 @@
#define utime _utime
#define valloc _valloc
#define vis _vis
#define vsnprintf _vsnprintf
#define vsyslog _vsyslog
#define wait _wait
#define wait3 _wait3

View File

@ -1,4 +1,4 @@
/* $NetBSD: setlocale.c,v 1.13 1998/07/26 11:17:28 mycroft Exp $ */
/* $NetBSD: setlocale.c,v 1.14 1998/10/13 14:19:21 kleink Exp $ */
/*
* Copyright (c) 1991, 1993
@ -41,12 +41,13 @@
#if 0
static char sccsid[] = "@(#)setlocale.c 8.1 (Berkeley) 7/4/93";
#else
__RCSID("$NetBSD: setlocale.c,v 1.13 1998/07/26 11:17:28 mycroft Exp $");
__RCSID("$NetBSD: setlocale.c,v 1.14 1998/10/13 14:19:21 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#define _CTYPE_PRIVATE
#include "namespace.h"
#include <sys/localedef.h>
#include <ctype.h>
#include <limits.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: snprintf.c,v 1.7 1997/12/19 14:08:43 kleink Exp $ */
/* $NetBSD: snprintf.c,v 1.8 1998/10/13 14:19:21 kleink Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -41,10 +41,11 @@
#if 0
static char sccsid[] = "@(#)snprintf.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: snprintf.c,v 1.7 1997/12/19 14:08:43 kleink Exp $");
__RCSID("$NetBSD: snprintf.c,v 1.8 1998/10/13 14:19:21 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <stdio.h>
#if __STDC__
#include <stdarg.h>
@ -52,6 +53,10 @@ __RCSID("$NetBSD: snprintf.c,v 1.7 1997/12/19 14:08:43 kleink Exp $");
#include <varargs.h>
#endif
#ifdef __weak_alias
__weak_alias(snprintf,_snprintf);
#endif
int
#if __STDC__
snprintf(char *str, size_t n, char const *fmt, ...)

View File

@ -1,4 +1,4 @@
/* $NetBSD: tempnam.c,v 1.11 1998/07/27 16:39:11 mycroft Exp $ */
/* $NetBSD: tempnam.c,v 1.12 1998/10/13 14:19:21 kleink Exp $ */
/*
* Copyright (c) 1988, 1993
@ -38,10 +38,11 @@
#if 0
static char sccsid[] = "@(#)tempnam.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: tempnam.c,v 1.11 1998/07/27 16:39:11 mycroft Exp $");
__RCSID("$NetBSD: tempnam.c,v 1.12 1998/10/13 14:19:21 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <sys/param.h>
#include <errno.h>
#include <stdio.h>

View File

@ -1,4 +1,4 @@
/* $NetBSD: tmpnam.c,v 1.10 1998/07/27 16:39:11 mycroft Exp $ */
/* $NetBSD: tmpnam.c,v 1.11 1998/10/13 14:19:21 kleink Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@ -41,12 +41,12 @@
#if 0
static char sccsid[] = "@(#)tmpnam.c 8.3 (Berkeley) 3/28/94";
#else
__RCSID("$NetBSD: tmpnam.c,v 1.10 1998/07/27 16:39:11 mycroft Exp $");
__RCSID("$NetBSD: tmpnam.c,v 1.11 1998/10/13 14:19:21 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>
#include "local.h"

View File

@ -1,4 +1,4 @@
/* $NetBSD: vsnprintf.c,v 1.8 1997/12/19 14:08:47 kleink Exp $ */
/* $NetBSD: vsnprintf.c,v 1.9 1998/10/13 14:19:21 kleink Exp $ */
/*-
* Copyright (c) 1990, 1993
@ -41,12 +41,17 @@
#if 0
static char sccsid[] = "@(#)vsnprintf.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: vsnprintf.c,v 1.8 1997/12/19 14:08:47 kleink Exp $");
__RCSID("$NetBSD: vsnprintf.c,v 1.9 1998/10/13 14:19:21 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
#include <stdio.h>
#ifdef __weak_alias
__weak_alias(vsnprintf,_vsnprintf);
#endif
int
vsnprintf(str, n, fmt, ap)
char *str;