forked from Imagelibrary/rtems
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:
@@ -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>
|
2011-07-12 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
* malloc04/init.c, malloc04/malloc04.scn: Remove test cases which are
|
* malloc04/init.c, malloc04/malloc04.scn: Remove test cases which are
|
||||||
|
|||||||
@@ -61,6 +61,15 @@ getuid_SOURCES = getuid.c
|
|||||||
check_PROGRAMS += htonl
|
check_PROGRAMS += htonl
|
||||||
htonl_SOURCES = htonl.c
|
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
|
check_PROGRAMS += lseek
|
||||||
lseek_SOURCES = lseek.c
|
lseek_SOURCES = lseek.c
|
||||||
|
|
||||||
|
|||||||
30
testsuites/libtests/POSIX/iconv.c
Normal file
30
testsuites/libtests/POSIX/iconv.c
Normal 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;
|
||||||
|
}
|
||||||
24
testsuites/libtests/POSIX/iconv_close.c
Normal file
24
testsuites/libtests/POSIX/iconv_close.c
Normal 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;
|
||||||
|
}
|
||||||
23
testsuites/libtests/POSIX/iconv_open.c
Normal file
23
testsuites/libtests/POSIX/iconv_open.c
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user