1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Mark the following interfaces as OBSOLETE_IN_6:

fgetrune(), fputrune(), fungetrune(), mbrune(), mbrrune(), mbmb(),
    setinvalidrune(), UTF2 encoding method.
These have been marked as being deprecated in their manual pages since 5.0,
and their use causes a linker warning.
This commit is contained in:
Tim J. Robbins 2003-06-13 07:13:54 +00:00
parent eac4bdcca4
commit 77156cb782
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116283
4 changed files with 16 additions and 4 deletions

View File

@ -34,10 +34,13 @@
* SUCH DAMAGE.
*/
/* f*rune() are obsolete in FreeBSD 6 -- use ANSI functions instead. */
#define OBSOLETE_IN_6
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)frune.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
__FBSDID("$FreeBSD$");
#include <limits.h>

View File

@ -34,10 +34,13 @@
* SUCH DAMAGE.
*/
/* mb*rune() and mbmb() are obsolete in FreeBSD 6. */
#define OBSOLETE_IN_6
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)mbrune.c 8.1 (Berkeley) 6/27/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
__FBSDID("$FreeBSD$");
#include <limits.h>

View File

@ -34,7 +34,10 @@
* SUCH DAMAGE.
*/
#include <sys/cdefs.h>
/* setinvalidrune() is obsolete in FreeBSD 6 -- use WEOF instead. */
#define OBSOLETE_IN_6
#include <sys/param.h>
__FBSDID("$FreeBSD$");
#include <rune.h>

View File

@ -34,10 +34,13 @@
* SUCH DAMAGE.
*/
/* UTF2 is obsolete and will be removed in FreeBSD 6 -- use UTF-8 instead. */
#define OBSOLETE_IN_6
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)utf2.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
#include <sys/cdefs.h>
#include <sys/param.h>
__FBSDID("$FreeBSD$");
#include <rune.h>