HDF5  1.12.0
H5system.c File Reference

Functions

 H5_GCC_DIAG_OFF (format-nonliteral) int HDfprintf(FILE *stream
 
 HDassert (stream)
 
 HDassert (fmt)
 
 HDva_start (ap, fmt)
 
 if ('%'==fmt[0] &&'%'==fmt[1])
 
 HDva_end (ap)
 
 H5_GCC_DIAG_ON (format-nonliteral) int64_t HDstrtoll(const char *s
 
 if (!s||(base &&(base< 2||base >36)))
 
 while (HDisspace(*s)) s++
 
 if ('+'==*s)
 
else if ('-'==*s)
 
 if (0==base && '0'==*s &&('x'==s[1]|| 'X'==s[1]))
 
 while ((base<=10 &&*s >='0' &&*s< '0'+base)||(base >10 &&((*s >='0' &&*s<='9')||(*s >='a' &&*s< 'a'+base-10)||(*s >='A' &&*s< 'A'+base-10))))
 
 if (overflow)
 
acc * if (rest)
 
void HDsrand (unsigned int seed)
 
int Pflock (int fd, int operation)
 
int H5_ATTR_CONST Nflock (int H5_ATTR_UNUSED fd, int H5_ATTR_UNUSED operation)
 
time_t H5_make_time (struct tm *tm)
 
int Wgettimeofday (struct timeval *tv, struct timezone *tz)
 
int Wsetenv (const char *name, const char *value, int overwrite)
 
char * Wgetlogin ()
 
int c99_snprintf (char *str, size_t size, const char *format,...)
 
int c99_vsnprintf (char *str, size_t size, const char *format, va_list ap)
 
int Wflock (int H5_ATTR_UNUSED fd, int H5_ATTR_UNUSED operation)
 

Variables

const char * fmt
 
const char int fwidth
 
const char int prec
 
int zerofill = 0
 
int leftjust = 0
 
int plussign = 0
 
int ldspace = 0
 
int prefix = 0
 
char modifier [8] = '\0'
 
int conv
 
char * rest
 
char format_templ [128]
 
int len
 
const char * s
 
va_list ap
 
 else
 
 nout
 
const char int base
 
hbool_t overflow = FALSE
 
 errno = 0
 

Function Documentation

◆ c99_snprintf()

int c99_snprintf ( char *  str,
size_t  size,
const char *  format,
  ... 
)

◆ c99_vsnprintf()

int c99_vsnprintf ( char *  str,
size_t  size,
const char *  format,
va_list  ap 
)

References ap, and size.

Referenced by c99_snprintf().

◆ H5_GCC_DIAG_OFF()

H5_GCC_DIAG_OFF ( format-  nonliteral)

◆ H5_GCC_DIAG_ON()

H5_GCC_DIAG_ON ( format-  nonliteral) const

◆ H5_make_time()

time_t H5_make_time ( struct tm *  tm)

References HDassert(), and ret_value.

◆ HDassert() [1/2]

HDassert ( fmt  )

◆ HDassert() [2/2]

HDassert ( stream  )

Referenced by H5_make_time(), and Wflock().

◆ HDsrand()

void HDsrand ( unsigned int  seed)

◆ HDva_end()

◆ HDva_start()

◆ if() [1/7]

if ( !s||  base &&(base< 2||base >36))

References rest, and s.

◆ if() [2/7]

else if ( '%'  = =fmt[0] && '%'==fmt[1])

References fmt, and nout.

◆ if() [3/7]

if ( '+'  = =*s)

References s.

◆ if() [4/7]

else if ( '-'  = =*s)

References s, and sign.

◆ if() [5/7]

if ( = =base && '0'==*s && ('x'==s[1] || 'X'==s[1]))

References base, and s.

◆ if() [6/7]

if ( overflow  )

References errno, and sign.

◆ if() [7/7]

acc* if ( rest  )

◆ Nflock()

int H5_ATTR_CONST Nflock ( int H5_ATTR_UNUSED  fd,
int H5_ATTR_UNUSED  operation 
)

◆ Pflock()

int Pflock ( int  fd,
int  operation 
)

◆ Wflock()

◆ Wgetlogin()

char* Wgetlogin ( )

◆ Wgettimeofday()

int Wgettimeofday ( struct timeval *  tv,
struct timezone tz 
)

◆ while() [1/2]

while ( (base<=10 &&*s >='0' &&*s< '0'+base)||(base >10 &&((*s >='0' &&*s<='9')||(*s >='a' &&*s< 'a'+base-10)||(*s >='A' &&*s< 'A'+base-10)))  )

References base, overflow, and s.

◆ while() [2/2]

while ( HDisspace *  s)

◆ Wsetenv()

int Wsetenv ( const char *  name,
const char *  value,
int  overwrite 
)

References name, and NULL.

Variable Documentation

◆ ap

◆ base

◆ conv

int conv

◆ else

else
Initial value:
{
HDputc(*fmt, stream)

◆ errno

errno = 0

Referenced by H5FD_s3comms_s3r_getsize(), if(), and main().

◆ fmt

while fmt
Initial value:
{
fwidth = prec = 0

Referenced by H5E_printf_stack(), H5Epush2(), and if().

◆ format_templ

char format_templ[128]

◆ fwidth

const char int fwidth
Initial value:
{
int n=0, nout = 0

◆ ldspace

ldspace = 0

◆ leftjust

leftjust = 0

◆ len

int len

◆ modifier

modifier[0] = '\0'

◆ nout

return nout

Referenced by if().

◆ overflow

hbool_t overflow = FALSE

Referenced by while().

◆ plussign

plussign = 0

◆ prec

const char int prec

Referenced by H5Tset_precision(), and if().

◆ prefix

prefix = 0

◆ rest

const char ** rest

Referenced by H5_trace(), and if().

◆ s

◆ zerofill

zerofill = 0
nout
nout
Definition: H5system.c:456
prec
const char int prec
Definition: H5system.c:115
fwidth
const char int fwidth
Definition: H5system.c:113
sign
H5T_sign_t sign
Definition: H5Tnative.c:550
fmt
const char * fmt
Definition: H5system.c:112
n
*s *s n
Definition: H5HLdbg.c:111
int64_t
int int64_t
Definition: H5public.h:259