MySQL  8.0.18
Source Code Documentation
my_dir.h File Reference
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "my_inttypes.h"

Go to the source code of this file.

Classes

struct  fileinfo
 
struct  MY_DIR
 

Macros

#define MY_S_IFMT   S_IFMT /* type of file */
 
#define MY_S_IFDIR   S_IFDIR /* directory */
 
#define MY_S_IFCHR   S_IFCHR /* character special */
 
#define MY_S_IFBLK   S_IFBLK /* block special */
 
#define MY_S_IFREG   S_IFREG /* regular */
 
#define MY_S_IFIFO   S_IFIFO /* fifo */
 
#define MY_S_ISUID   S_ISUID /* set user id on execution */
 
#define MY_S_ISGID   S_ISGID /* set group id on execution */
 
#define MY_S_ISVTX   S_ISVTX /* save swapped text even after use */
 
#define MY_S_IREAD   S_IREAD /* read permission, owner */
 
#define MY_S_IWRITE   S_IWRITE /* write permission, owner */
 
#define MY_S_IEXEC   S_IEXEC /* execute/search permission, owner */
 
#define MY_S_ISDIR(m)   (((m)&MY_S_IFMT) == MY_S_IFDIR)
 
#define MY_S_ISCHR(m)   (((m)&MY_S_IFMT) == MY_S_IFCHR)
 
#define MY_S_ISBLK(m)   (((m)&MY_S_IFMT) == MY_S_IFBLK)
 
#define MY_S_ISREG(m)   (((m)&MY_S_IFMT) == MY_S_IFREG)
 
#define MY_S_ISFIFO(m)   (((m)&MY_S_IFMT) == MY_S_IFIFO)
 
#define MY_DONT_SORT   512 /* my_lib; Don't sort files */
 
#define MY_WANT_STAT   1024 /* my_lib; stat files */
 
#define MY_STAT   struct stat /* Orginal struct have what we need */
 

Typedefs

typedef struct fileinfo FILEINFO
 

Functions

MY_DIRmy_dir (const char *path, myf MyFlags)
 
void my_dirend (MY_DIR *buffer)
 
MY_STATmy_stat (const char *path, MY_STAT *stat_area, myf my_flags)
 
int my_fstat (int filenr, MY_STAT *stat_area)
 

Macro Definition Documentation

◆ MY_DONT_SORT

#define MY_DONT_SORT   512 /* my_lib; Don't sort files */

◆ MY_S_IEXEC

#define MY_S_IEXEC   S_IEXEC /* execute/search permission, owner */

◆ MY_S_IFBLK

#define MY_S_IFBLK   S_IFBLK /* block special */

◆ MY_S_IFCHR

#define MY_S_IFCHR   S_IFCHR /* character special */

◆ MY_S_IFDIR

#define MY_S_IFDIR   S_IFDIR /* directory */

◆ MY_S_IFIFO

#define MY_S_IFIFO   S_IFIFO /* fifo */

◆ MY_S_IFMT

#define MY_S_IFMT   S_IFMT /* type of file */

◆ MY_S_IFREG

#define MY_S_IFREG   S_IFREG /* regular */

◆ MY_S_IREAD

#define MY_S_IREAD   S_IREAD /* read permission, owner */

◆ MY_S_ISBLK

#define MY_S_ISBLK (   m)    (((m)&MY_S_IFMT) == MY_S_IFBLK)

◆ MY_S_ISCHR

#define MY_S_ISCHR (   m)    (((m)&MY_S_IFMT) == MY_S_IFCHR)

◆ MY_S_ISDIR

#define MY_S_ISDIR (   m)    (((m)&MY_S_IFMT) == MY_S_IFDIR)

◆ MY_S_ISFIFO

#define MY_S_ISFIFO (   m)    (((m)&MY_S_IFMT) == MY_S_IFIFO)

◆ MY_S_ISGID

#define MY_S_ISGID   S_ISGID /* set group id on execution */

◆ MY_S_ISREG

#define MY_S_ISREG (   m)    (((m)&MY_S_IFMT) == MY_S_IFREG)

◆ MY_S_ISUID

#define MY_S_ISUID   S_ISUID /* set user id on execution */

◆ MY_S_ISVTX

#define MY_S_ISVTX   S_ISVTX /* save swapped text even after use */

◆ MY_S_IWRITE

#define MY_S_IWRITE   S_IWRITE /* write permission, owner */

◆ MY_STAT

#define MY_STAT   struct stat /* Orginal struct have what we need */

◆ MY_WANT_STAT

#define MY_WANT_STAT   1024 /* my_lib; stat files */

Typedef Documentation

◆ FILEINFO

typedef struct fileinfo FILEINFO

Function Documentation

◆ my_dir()

MY_DIR* my_dir ( const char *  path,
myf  MyFlags 
)

◆ my_dirend()

void my_dirend ( MY_DIR buffer)

◆ my_fstat()

int my_fstat ( int  filenr,
MY_STAT stat_area 
)

◆ my_stat()

MY_STAT* my_stat ( const char *  path,
MY_STAT stat_area,
myf  my_flags 
)