Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Android/bionic/bionic/tests/headers/posix/   (Android Betriebssystem Version 17©)  Datei vom 26.5.2026 mit Größe 4 kB image not shown  

Quelle  stdlib_h.c

  Sprache: C
 

// Copyright (C) 2017 The Android Open Source Project
// SPDX-License-Identifier: BSD-2-Clause

#include <stdlib.h>

#include "header_checks.h"

static void stdlib_h() {
  MACRO(EXIT_FAILURE);
  MACRO_VALUE(EXIT_SUCCESS, 0);

  MACRO(RAND_MAX);

  MACRO(MB_CUR_MAX);

  MACRO(NULL);

  TYPE(div_t);
  TYPE(ldiv_t);
  TYPE(lldiv_t);
  TYPE(size_t);
  TYPE(wchar_t);

#if !defined(WEXITSTATUS)
#error WEXITSTATUS
#endif
#if !defined(WIFEXITED)
#error WIFEXITED
#endif
#if !defined(WIFSIGNALED)
#error WIFSIGNALED
#endif
#if !defined(WIFSTOPPED)
#error WIFSTOPPED
#endif
  MACRO(WNOHANG);
#if !defined(WSTOPSIG)
#error WSTOPSIG
#endif
#if !defined(WTERMSIG)
#error WTERMSIG
#endif
  MACRO(WUNTRACED);

  FUNCTION(_Exitvoid (*f)(int));
#if !defined(__BIONIC__)
  FUNCTION(a64l, long (*f)(const char*));
#endif
  FUNCTION(abort, void (*f)(void));
  FUNCTION(abs, int (*f)(int));
  FUNCTION(aligned_alloc, void* (*f)(size_t, size_t));
  FUNCTION(atexit, int (*f)(void (*)(void)));
  FUNCTION(atof, double (*f)(const char*));
  FUNCTION(atoi, int (*f)(const char*));
  FUNCTION(atol, long (*f)(const char*));
  FUNCTION(atoll, long long (*f)(const char*));
  FUNCTION(bsearch, void* (*f)(const void*, const void*, size_t, size_t, int (*)(const void*const void*)));
  FUNCTION(calloc, void* (*f)(size_t, size_t));
  FUNCTION(div, div_t (*f)(intint));
  FUNCTION(drand48, double (*f)(void));
  FUNCTION(erand48, double (*f)(unsigned short[3]));
  FUNCTION(exitvoid (*f)(int));
  FUNCTION(free, void (*f)(void*));
  FUNCTION(getenv, char* (*f)(const char*));
  FUNCTION(getsubopt, int (*f)(char**, charconst*, char**));
  FUNCTION(grantpt, int (*f)(int));
  FUNCTION(initstate, char* (*f)(unsignedchar*, size_t));
  FUNCTION(jrand48, long (*f)(unsigned short[3]));
#if !defined(__BIONIC__)
  FUNCTION(l64a, char* (*f)(long));
#endif
  FUNCTION(labs, long (*f)(long));
  FUNCTION(lcong48, void (*f)(unsigned short[7]));
  FUNCTION(ldiv, ldiv_t (*f)(longlong));
  FUNCTION(llabs, long long (*f)(long long));
  FUNCTION(lldiv, lldiv_t (*f)(long longlong long));
  FUNCTION(lrand48, long (*f)(void));
  FUNCTION(malloc, void* (*f)(size_t));
  FUNCTION(mblen, int (*f)(const char*, size_t));
  FUNCTION(mbstowcs, size_t (*f)(wchar_t*, const char*, size_t));
  FUNCTION(mbtowc, int (*f)(wchar_t*, const char*, size_t));
  FUNCTION(mkdtemp, char* (*f)(char*));
#if !defined(__GLIBC__) // Our glibc is too old.
  FUNCTION(mkostemp, int (*f)(char*, int));
#endif
  FUNCTION(mkstemp, int (*f)(char*));
  FUNCTION(mrand48, long (*f)(void));
  FUNCTION(nrand48, long (*f)(unsigned short[3]));
  FUNCTION(posix_memalign, int (*f)(void**, size_t, size_t));
  FUNCTION(posix_openpt, int (*f)(int));
  FUNCTION(ptsname, char* (*f)(int));
#if !defined(__GLIBC__) // Our glibc is too old.
  FUNCTION(ptsname_r, int (*f)(intchar*, size_t));
#endif
  FUNCTION(putenv, int (*f)(char*));
  FUNCTION(qsort, void (*f)(void*, size_t, size_t, int (*)(const void*, const void*)));
#if !defined(__GLIBC__) // Our glibc is too old.
  FUNCTION(qsort_r, void (*f)(void*, size_t, size_t, int (*)(const void*, const void*, void*), void*));
#endif
  FUNCTION(rand, int (*f)(void));
  FUNCTION(rand_r, int (*f)(unsigned*));
  FUNCTION(random, long (*f)(void));
  FUNCTION(realloc, void* (*f)(void*, size_t));
#if !defined(__GLIBC__) // Our glibc is too old.
  FUNCTION(reallocarray, void* (*f)(void*, size_t, size_t));
#endif
  FUNCTION(realpath, char* (*f)(const char*, char*));
  FUNCTION(seed48, unsigned short* (*f)(unsigned short[3]));
  FUNCTION(setenv, int (*f)(const char*, const char*, int));
#if !defined(__BIONIC__)
  FUNCTION(setkey, void (*f)(const char*));
#endif
  FUNCTION(setstate, char* (*f)(char*));
  FUNCTION(srand, void (*f)(unsigned));
  FUNCTION(srand48, void (*f)(long));
  FUNCTION(srandom, void (*f)(unsigned));
  FUNCTION(strtod, double (*f)(const char*, char**));
  FUNCTION(strtof, float (*f)(const char*, char**));
  FUNCTION(strtol, long (*f)(const char*, char**, int));
  FUNCTION(strtold, long double (*f)(const char*, char**));
  FUNCTION(strtoll, long long (*f)(const char*, char**, int));
  FUNCTION(strtoul, unsigned long (*f)(const char*, char**, int));
  FUNCTION(strtoull, unsigned long long (*f)(const char*, char**, int));
  FUNCTION(system, int (*f)(const char*));
  FUNCTION(unlockpt, int (*f)(int));
  FUNCTION(unsetenv, int (*f)(const char*));
  FUNCTION(wcstombs, size_t (*f)(char*, const wchar_t*, size_t));
  FUNCTION(wctomb, int (*f)(char*, wchar_t));
}

Messung V0.5 in Prozent
C=86 H=96 G=90

¤ Dauer der Verarbeitung: 0.13 Sekunden  (vorverarbeitet am  2026-06-28) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.