EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Defines | Functions | Variables

StdLib/LibC/Stdio/local.h File Reference

#include "wcio.h"
#include "fileext.h"

Go to the source code of this file.

Defines

#define cantwrite(fp)   ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp))
#define HASUB(fp)   (_UB(fp)._base != NULL)
#define FREEUB(fp)
#define HASLB(fp)   ((fp)->_lb._base != NULL)
#define FREELB(fp)

Functions

int __sflush (FILE *)
FILE__sfp (void)
int __srefill (FILE *)
int __sread (void *, char *, int)
int __swrite (void *, char const *, int)
fpos_t __sseek (void *, fpos_t, int)
int __sclose (void *)
void __sinit (void)
void _cleanup (void)
void __smakebuf (FILE *)
int __swhatbuf (FILE *, size_t *, int *)
int _fwalk (int(*)(FILE *))
char * _mktemp (char *)
int __swsetup (FILE *)
int __sflags (const char *, int *)
int __svfscanf (FILE *__restrict, const char *__restrict, va_list) __attribute__((__format__(__scanf__
int int __svfscanf_unlocked (FILE *__restrict, const char *__restrict, va_list) __attribute__((__format__(__scanf__
int int int __vfprintf_unlocked (FILE *__restrict, const char *__restrict, va_list)
int __gettemp (char *, int *, int)
wint_t __fgetwc_unlock (FILE *)
wint_t __fputwc_unlock (wchar_t, FILE *)
char * __fgetstr (FILE *__restrict, size_t *__restrict, int)
int __slbexpand (FILE *, size_t)
int __vfwprintf_unlocked (FILE *, const wchar_t *, va_list)
int __vfwscanf_unlocked (FILE *__restrict, const wchar_t *__restrict, va_list)
void __flockfile_internal (FILE *, int)
void __funlockfile_internal (FILE *, int)

Variables

int __sdidinit

Detailed Description

Information local to this implementation of stdio, in particular, function declarations and macros.

Copyright (c) 2010, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php.

THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.

Copyright (c) 1990, 1993 The Regents of the University of California. All rights reserved.

This code is derived from software contributed to Berkeley by Chris Torek.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

NetBSD: local.h,v 1.20 2005/05/14 23:51:02 christos Exp local.h 8.3 (Berkeley) 7/3/94

Definition in file local.h.


Define Documentation

#define cantwrite (   fp)    ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp))

Definition at line 89 of file local.h.

#define FREELB (   fp)
Value:
{ \
    free((char *)(fp)->_lb._base); \
    (fp)->_lb._base = NULL; \
  }

Definition at line 107 of file local.h.

#define FREEUB (   fp)
Value:
{ \
    if (_UB(fp)._base != (fp)->_ubuf) \
      free((char *)_UB(fp)._base); \
    _UB(fp)._base = NULL; \
  }

Definition at line 97 of file local.h.

#define HASLB (   fp)    ((fp)->_lb._base != NULL)

Definition at line 106 of file local.h.

#define HASUB (   fp)    (_UB(fp)._base != NULL)

Definition at line 96 of file local.h.


Function Documentation

char* __fgetstr ( FILE __restrict,
size_t __restrict,
int   
)

Definition at line 98 of file fgetstr.c.

wint_t __fgetwc_unlock ( FILE )

Definition at line 50 of file fgetwc.c.

void __flockfile_internal ( FILE ,
int   
)
wint_t __fputwc_unlock ( wchar_t  ,
FILE  
)

Definition at line 52 of file fputwc.c.

void __funlockfile_internal ( FILE ,
int   
)
int __gettemp ( char *  ,
int *  ,
int   
)
int __sclose ( void *  )

Definition at line 123 of file stdio.c.

int __sflags ( const char *  ,
int *   
)

Definition at line 63 of file flags.c.

int __sflush ( FILE )

Definition at line 83 of file fflush.c.

FILE* __sfp ( void  )

Definition at line 126 of file findfp.c.

void __sinit ( void  )

Definition at line 201 of file findfp.c.

int __slbexpand ( FILE ,
size_t   
)

Definition at line 68 of file fgetstr.c.

void __smakebuf ( FILE )

Definition at line 68 of file makebuf.c.

int __sread ( void *  ,
char *  ,
int   
)

Definition at line 61 of file stdio.c.

int __srefill ( FILE )

Definition at line 83 of file refill.c.

fpos_t __sseek ( void *  ,
fpos_t  ,
int   
)

Definition at line 101 of file stdio.c.

int __svfscanf ( FILE __restrict,
const char *  __restrict,
va_list   
)
int int __svfscanf_unlocked ( FILE __restrict,
const char *  __restrict,
va_list   
)
int __swhatbuf ( FILE ,
size_t ,
int *   
)

Definition at line 104 of file makebuf.c.

int __swrite ( void *  ,
char const *  ,
int   
)

Definition at line 83 of file stdio.c.

int __swsetup ( FILE )

Definition at line 60 of file wsetup.c.

int int int __vfprintf_unlocked ( FILE __restrict,
const char *  __restrict,
va_list   
)
int __vfwprintf_unlocked ( FILE ,
const wchar_t ,
va_list   
)
int __vfwscanf_unlocked ( FILE __restrict,
const wchar_t __restrict,
va_list   
)
void _cleanup ( void  )

Definition at line 191 of file findfp.c.

int _fwalk ( int(*)(FILE *)  )

Definition at line 56 of file fwalk.c.

char* _mktemp ( char *  )

Definition at line 54 of file mktemp.c.


Variable Documentation

Definition at line 56 of file findfp.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines