Files
scan/inc/type_definitions.h
T
2026-10-08 14:10:10 +02:00

31 lines
502 B
C

#ifndef __TYPE_DEFINITIONS_H
#define __TYPE_DEFINITIONS_H
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 700
#endif
#include <linux/limits.h>
#include <sys/stat.h>
#include <sys/types.h>
// type definitions
typedef enum {
type_directory,
type_character,
type_block,
type_regular,
type_fifo,
type_link,
type_socket,
} entry_type_t;
typedef struct {
char name[ NAME_MAX ];
char* extension;
struct stat stats;
entry_type_t type;
} directory_entry_t;
#endif