2011-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>

* POSIX/iconv.c, POSIX/iconv_open.c, POSIX/iconv_close.c: New.
	* POSIX/Makefile.am: Add iconv, iconv_open, iconv_close.
This commit is contained in:
Ralf Corsepius
2011-07-29 13:59:42 +00:00
parent d4a0934bf4
commit ace38fb787
5 changed files with 91 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2011-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/iconv.c, POSIX/iconv_open.c, POSIX/iconv_close.c: New.
* POSIX/Makefile.am: Add iconv, iconv_open, iconv_close.
2011-07-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* malloc04/init.c, malloc04/malloc04.scn: Remove test cases which are

View File

@@ -61,6 +61,15 @@ getuid_SOURCES = getuid.c
check_PROGRAMS += htonl
htonl_SOURCES = htonl.c
check_PROGRAMS += iconv
iconv_SOURCES = iconv.c
check_PROGRAMS += iconv_close
iconv_close_SOURCES = iconv_close.c
check_PROGRAMS += iconv_open
iconv_open_SOURCES = iconv_open.c
check_PROGRAMS += lseek
lseek_SOURCES = lseek.c

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2011 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iconv.h>
int
main (void)
{
iconv_t cd = NULL;
char inbuf[42];
size_t isize;
char outbuf[42];
size_t osize;
size_t ret;
char *i = inbuf;
char *o = outbuf;
ret = iconv(cd, &i, &isize, &o, &osize);
return 0;
}

View File

@@ -0,0 +1,24 @@
/*
* Copyright (c) 2011 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iconv.h>
int
main (void)
{
iconv_t cd = NULL;
int ret;
ret = iconv_close(cd);
return 0;
}

View File

@@ -0,0 +1,23 @@
/*
* Copyright (c) 2011 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <iconv.h>
int
main (void)
{
iconv_t ret;
ret = iconv_open("utf8", "ascii" );
return 0;
}