Back to index

glibc  2.9
vdprintf_chk.c File Reference
#include <libioP.h>
#include <stdio_ext.h>

Go to the source code of this file.


int __vdprintf_chk (int d, int flags, const char *format, va_list arg)

Function Documentation

int __vdprintf_chk ( int  d,
int  flags,
const char *  format,
va_list  arg 

Definition at line 33 of file vdprintf_chk.c.

  struct _IO_FILE_plus tmpfil;
  struct _IO_wide_data wd;
  int done;

#ifdef _IO_MTSAFE_IO
  tmpfil.file._lock = NULL;
  _IO_no_init (&tmpfil.file, _IO_USER_LOCK, 0, &wd, &_IO_wfile_jumps);
  _IO_JUMPS (&tmpfil) = &_IO_file_jumps;
  INTUSE(_IO_file_init) (&tmpfil);
  tmpfil.vtable = NULL;
  if (INTUSE(_IO_file_attach) (&tmpfil.file, d) == NULL)
      INTUSE(_IO_un_link) (&tmpfil);
      return EOF;
  tmpfil.file._IO_file_flags =
    (_IO_mask_flags (&tmpfil.file, _IO_NO_READS,

  /* For flags > 0 (i.e. __USE_FORTIFY_LEVEL > 1) request that %n
     can only come from read-only format strings.  */
  if (flags > 0)
    tmpfil.file._flags2 |= _IO_FLAGS2_FORTIFY;

  done = INTUSE(_IO_vfprintf) (&tmpfil.file, format, arg);

  _IO_FINISH (&tmpfil.file);

  return done;

Here is the call graph for this function:

Here is the caller graph for this function: