Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
file_wrappers.h File Reference
#include <wireshark.h>
#include "wtap.h"
#include <wsutil/file_util.h>

Go to the source code of this file.

Functions

FILE_T file_open (const char *path)
 
FILE_T file_fdopen (int fildes)
 
void file_set_random_access (FILE_T stream, bool random_flag, GPtrArray *seek)
 
WS_DLL_PUBLIC int64_t file_seek (FILE_T stream, int64_t offset, int whence, int *err)
 
WS_DLL_PUBLIC int64_t file_tell (FILE_T stream)
 
int64_t file_tell_raw (FILE_T stream)
 
int file_fstat (FILE_T stream, ws_statb64 *statb, int *err)
 
WS_DLL_PUBLIC bool file_iscompressed (FILE_T stream)
 
WS_DLL_PUBLIC int file_read (void *buf, unsigned int count, FILE_T file)
 
WS_DLL_PUBLIC int file_peekc (FILE_T stream)
 
WS_DLL_PUBLIC int file_getc (FILE_T stream)
 
WS_DLL_PUBLIC char * file_gets (char *buf, int len, FILE_T stream)
 
WS_DLL_PUBLIC char * file_getsp (char *buf, int len, FILE_T stream)
 
WS_DLL_PUBLIC int file_eof (FILE_T stream)
 
WS_DLL_PUBLIC int file_error (FILE_T fh, char **err_info)
 
void file_clearerr (FILE_T stream)
 
void file_fdclose (FILE_T file)
 
bool file_fdreopen (FILE_T file, const char *path)
 
void file_close (FILE_T file)
 

Detailed Description

Wiretap Library Copyright (c) 1998 by Gilbert Ramirez gram@.nosp@m.alum.nosp@m.ni.ri.nosp@m.ce.e.nosp@m.du

SPDX-License-Identifier: GPL-2.0-or-later