The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Typedefs | Functions
fopencookie.h File Reference

Provide missing types for fopencookie on systems that don't support it. More...

#include <stdio.h>
+ Include dependency graph for fopencookie.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  cookie_io_functions_t
 

Macros

#define HAVE_FOPENCOOKIE   1
 

Typedefs

typedef int(* cookie_close_function_t) (void *cookie)
 
typedef ssize_t(* cookie_read_function_t) (void *cookie, char *buf, size_t size)
 
typedef int(* cookie_seek_function_t) (void *cookie, off64_t *offset, int whence)
 
typedef ssize_t(* cookie_write_function_t) (void *cookie, const char *buf, size_t size)
 

Functions

FILE * fopencookie (void *cookie, const char *mode, cookie_io_functions_t io_funcs)
 

Detailed Description

Provide missing types for fopencookie on systems that don't support it.

You should always include this file when using fopencookie

Definition in file fopencookie.h.


Data Structure Documentation

◆ cookie_io_functions_t

struct cookie_io_functions_t

Macro Definition Documentation

◆ HAVE_FOPENCOOKIE

#define HAVE_FOPENCOOKIE   1

Definition at line 36 of file fopencookie.h.

Typedef Documentation

◆ cookie_close_function_t

typedef int(* cookie_close_function_t) (void *cookie)

Definition at line 49 of file fopencookie.h.

◆ cookie_read_function_t

typedef ssize_t(* cookie_read_function_t) (void *cookie, char *buf, size_t size)

Definition at line 43 of file fopencookie.h.

◆ cookie_seek_function_t

typedef int(* cookie_seek_function_t) (void *cookie, off64_t *offset, int whence)

Definition at line 47 of file fopencookie.h.

◆ cookie_write_function_t

typedef ssize_t(* cookie_write_function_t) (void *cookie, const char *buf, size_t size)

Definition at line 45 of file fopencookie.h.

Function Documentation

◆ fopencookie()

FILE* fopencookie ( void *  cookie,
const char *  mode,
cookie_io_functions_t  io_funcs 
)

Definition at line 99 of file fopencookie.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: