Android-cuttlefish cvd tool
Classes | Macros | Functions
fibmap.c File Reference
#include <f2fs_fs.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <libgen.h>
#include <inttypes.h>
Include dependency graph for fibmap.c:

Classes

struct  file_ext
 

Macros

#define _XOPEN_SOURCE   600
 
#define _DARWIN_C_SOURCE
 
#define _GNU_SOURCE
 
#define O_LARGEFILE   0
 
#define FIBMAP   _IO(0x00, 1) /* bmap access */
 

Functions

void print_ext (struct file_ext *ext)
 
void print_stat (struct stat *st)
 
static void stat_bdev (struct stat *st, unsigned int *start_lba)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ _DARWIN_C_SOURCE

#define _DARWIN_C_SOURCE

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ _XOPEN_SOURCE

#define _XOPEN_SOURCE   600

◆ FIBMAP

#define FIBMAP   _IO(0x00, 1) /* bmap access */

◆ O_LARGEFILE

#define O_LARGEFILE   0

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ print_ext()

void print_ext ( struct file_ext ext)

◆ print_stat()

void print_stat ( struct stat *  st)

◆ stat_bdev()

static void stat_bdev ( struct stat *  st,
unsigned int *  start_lba 
)
static