Publish asprintf and vasprintf

This commit is contained in:
deadwood 2024-04-23 20:27:07 +02:00
parent 370f79daf2
commit 596906f125
6 changed files with 12 additions and 6 deletions

View File

@ -10,6 +10,7 @@
#include <assert.h>
#include <setjmp.h>
#include <stdio.h>
#include <aros/debug.h>

View File

@ -11,10 +11,13 @@
#include <limits.h>
#include <stdint.h>
#include <stdio.h>
#include <sys/stat.h>
#include <pwd.h>
/* don't include stdio.h as it will make it include in each .c file before defines can take action */
struct __sFILE;
typedef struct __sFILE FILE;
struct PosixCBase
{
FILE *_stdin, *_stdout, *_stderr;

View File

@ -1,5 +1,5 @@
##begin config
version 3.2
version 3.3
basename Crt
libbasetypeextern struct Library
libbasetype struct CrtIntBase
@ -1285,4 +1285,7 @@ int scandir (const char *dir, struct dirent ***namelist, int (*select)(const str
int fstat(int fd, struct stat *sb)
int lstat(const char * restrict path, struct stat * restrict sb)
int stat(const char * restrict path, struct stat * restrict sb)
.version 3
int asprintf(char **restrict str, const char *restrict format, ...)
int vasprintf(char **restrict s, const char * restrict format, va_list arg)
##end functionlist

View File

@ -714,6 +714,7 @@ CRT := \
../stdc/_exit \
../stdc/abort \
../stdc/asctime \
../stdc/asprintf \
../stdc/atexit \
../stdc/calloc \
../stdc/clock \
@ -738,7 +739,8 @@ CRT := \
../stdc/strtoul \
../stdc/strtoull \
../stdc/strtoll \
../stdc/strtoumax
../stdc/strtoumax \
../stdc/vasprintf
CRT_LINKLIB := \
../posixc/getopt \

View File

@ -6,8 +6,6 @@
#define _GNU_SOURCE
#include <libraries/stdcio.h>
#include <aros/debug.h>
#if DEBUG
#include <aros/libcall.h>

View File

@ -3,7 +3,6 @@
GNU function vasprintf().
*/
#include <libraries/stdcio.h>
#include <aros/debug.h>
#if DEBUG