MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
File Instrumentation
Collaboration diagram for File Instrumentation:

Classes

struct  st_mysql_file

Macros

#define mysql_file_register(P1, P2, P3)   inline_mysql_file_register(P1, P2, P3)
#define mysql_file_fgets(P1, P2, F)   inline_mysql_file_fgets(P1, P2, F)
#define mysql_file_fgetc(F)   inline_mysql_file_fgetc(F)
#define mysql_file_fputs(P1, F)   inline_mysql_file_fputs(P1, F)
#define mysql_file_fputc(P1, F)   inline_mysql_file_fputc(P1, F)
#define mysql_file_fprintf   inline_mysql_file_fprintf
#define mysql_file_vfprintf(F, P1, P2)   inline_mysql_file_vfprintf(F, P1, P2)
#define mysql_file_fflush(F)   inline_mysql_file_fflush(F)
#define mysql_file_feof(F)   inline_mysql_file_feof(F)
#define mysql_file_fstat(FN, S, FL)   inline_mysql_file_fstat(FN, S, FL)
#define mysql_file_stat(K, FN, S, FL)   inline_mysql_file_stat(FN, S, FL)
#define mysql_file_chsize(F, P1, P2, P3)   inline_mysql_file_chsize(F, P1, P2, P3)
#define mysql_file_fopen(K, N, F1, F2)   inline_mysql_file_fopen(N, F1, F2)
#define mysql_file_fclose(FD, FL)   inline_mysql_file_fclose(FD, FL)
#define mysql_file_fread(FD, P1, P2, P3)   inline_mysql_file_fread(FD, P1, P2, P3)
#define mysql_file_fwrite(FD, P1, P2, P3)   inline_mysql_file_fwrite(FD, P1, P2, P3)
#define mysql_file_fseek(FD, P, W, F)   inline_mysql_file_fseek(FD, P, W, F)
#define mysql_file_ftell(FD, F)   inline_mysql_file_ftell(FD, F)
#define mysql_file_create(K, N, F1, F2, F3)   inline_mysql_file_create(N, F1, F2, F3)
#define mysql_file_create_temp(K, T, D, P, M, F)   inline_mysql_file_create_temp(T, D, P, M, F)
#define mysql_file_open(K, N, F1, F2)   inline_mysql_file_open(N, F1, F2)
#define mysql_file_close(FD, F)   inline_mysql_file_close(FD, F)
#define mysql_file_read(FD, B, S, F)   inline_mysql_file_read(FD, B, S, F)
#define mysql_file_write(FD, B, S, F)   inline_mysql_file_write(FD, B, S, F)
#define mysql_file_pread(FD, B, S, O, F)   inline_mysql_file_pread(FD, B, S, O, F)
#define mysql_file_pwrite(FD, B, S, O, F)   inline_mysql_file_pwrite(FD, B, S, O, F)
#define mysql_file_seek(FD, P, W, F)   inline_mysql_file_seek(FD, P, W, F)
#define mysql_file_tell(FD, F)   inline_mysql_file_tell(FD, F)
#define mysql_file_delete(K, P1, P2)   inline_mysql_file_delete(P1, P2)
#define mysql_file_rename(K, P1, P2, P3)   inline_mysql_file_rename(P1, P2, P3)
#define mysql_file_create_with_symlink(K, P1, P2, P3, P4, P5)   inline_mysql_file_create_with_symlink(P1, P2, P3, P4, P5)
#define mysql_file_delete_with_symlink(K, P1, P2)   inline_mysql_file_delete_with_symlink(P1, P2)
#define mysql_file_rename_with_symlink(K, P1, P2, P3)   inline_mysql_file_rename_with_symlink(P1, P2, P3)
#define mysql_file_sync(P1, P2)   inline_mysql_file_sync(P1, P2)

Typedefs

typedef struct st_mysql_file MYSQL_FILE

Detailed Description

Macro Definition Documentation

#define mysql_file_chsize (   F,
  P1,
  P2,
  P3 
)    inline_mysql_file_chsize(F, P1, P2, P3)

Instrumented chsize. mysql_file_chsize is a replacement for my_chsize.

Definition at line 184 of file mysql_file.h.

#define mysql_file_close (   FD,
 
)    inline_mysql_file_close(FD, F)

Instrumented close. mysql_file_close is a replacement for my_close.

Definition at line 321 of file mysql_file.h.

#define mysql_file_create (   K,
  N,
  F1,
  F2,
  F3 
)    inline_mysql_file_create(N, F1, F2, F3)

Instrumented create. mysql_file_create is a replacement for my_create.

Definition at line 282 of file mysql_file.h.

#define mysql_file_create_temp (   K,
  T,
  D,
  P,
  M,
 
)    inline_mysql_file_create_temp(T, D, P, M, F)

Instrumented create_temp_file. mysql_file_create_temp is a replacement for create_temp_file.

Definition at line 295 of file mysql_file.h.

#define mysql_file_create_with_symlink (   K,
  P1,
  P2,
  P3,
  P4,
  P5 
)    inline_mysql_file_create_with_symlink(P1, P2, P3, P4, P5)

Instrumented create with symbolic link. mysql_file_create_with_symlink is a replacement for my_create_with_symlink.

Definition at line 440 of file mysql_file.h.

#define mysql_file_delete (   K,
  P1,
  P2 
)    inline_mysql_file_delete(P1, P2)

Instrumented delete. mysql_file_delete is a replacement for my_delete.

Definition at line 412 of file mysql_file.h.

#define mysql_file_delete_with_symlink (   K,
  P1,
  P2 
)    inline_mysql_file_delete_with_symlink(P1, P2)

Instrumented delete with symbolic link. mysql_file_delete_with_symlink is a replacement for my_delete_with_symlink.

Definition at line 454 of file mysql_file.h.

#define mysql_file_fclose (   FD,
  FL 
)    inline_mysql_file_fclose(FD, FL)

Instrumented fclose. mysql_file_fclose is a replacement for my_fclose. Without the instrumentation, this call will have the same behavior as the undocumented and possibly platform specific my_fclose(NULL, ...) behavior. With the instrumentation, mysql_fclose(NULL, ...) will safely return 0, which is an extension compared to my_fclose and is therefore compliant. mysql_fclose is on purpose not implementing

DBUG_ASSERT(file != NULL)

, since doing so could introduce regressions.

Definition at line 217 of file mysql_file.h.

#define mysql_file_feof (   F)    inline_mysql_file_feof(F)

Instrumented feof. mysql_file_feof is a replacement for feof.

Definition at line 147 of file mysql_file.h.

#define mysql_file_fflush (   F)    inline_mysql_file_fflush(F)

Instrumented fflush. mysql_file_fflush is a replacement for fflush.

Definition at line 138 of file mysql_file.h.

#define mysql_file_fgetc (   F)    inline_mysql_file_fgetc(F)

Instrumented fgetc. mysql_file_fgetc is a replacement for fgetc.

Definition at line 80 of file mysql_file.h.

#define mysql_file_fgets (   P1,
  P2,
 
)    inline_mysql_file_fgets(P1, P2, F)

Instrumented fgets. mysql_file_fgets is a replacement for fgets.

Definition at line 68 of file mysql_file.h.

#define mysql_file_fopen (   K,
  N,
  F1,
  F2 
)    inline_mysql_file_fopen(N, F1, F2)

Instrumented fopen. mysql_file_fopen is a replacement for my_fopen.

Definition at line 197 of file mysql_file.h.

#define mysql_file_fprintf   inline_mysql_file_fprintf

Instrumented fprintf. mysql_file_fprintf is a replacement for fprintf.

Definition at line 114 of file mysql_file.h.

#define mysql_file_fputc (   P1,
 
)    inline_mysql_file_fputc(P1, F)

Instrumented fputc. mysql_file_fputc is a replacement for fputc.

Definition at line 105 of file mysql_file.h.

#define mysql_file_fputs (   P1,
 
)    inline_mysql_file_fputs(P1, F)

Instrumented fputs. mysql_file_fputs is a replacement for fputs.

Definition at line 92 of file mysql_file.h.

#define mysql_file_fread (   FD,
  P1,
  P2,
  P3 
)    inline_mysql_file_fread(FD, P1, P2, P3)

Instrumented fread. mysql_file_fread is a replacement for my_fread.

Definition at line 230 of file mysql_file.h.

#define mysql_file_fseek (   FD,
  P,
  W,
 
)    inline_mysql_file_fseek(FD, P, W, F)

Instrumented fseek. mysql_file_fseek is a replacement for my_fseek.

Definition at line 256 of file mysql_file.h.

#define mysql_file_fstat (   FN,
  S,
  FL 
)    inline_mysql_file_fstat(FN, S, FL)

Instrumented fstat. mysql_file_fstat is a replacement for my_fstat.

Definition at line 158 of file mysql_file.h.

#define mysql_file_ftell (   FD,
 
)    inline_mysql_file_ftell(FD, F)

Instrumented ftell. mysql_file_ftell is a replacement for my_ftell.

Definition at line 269 of file mysql_file.h.

#define mysql_file_fwrite (   FD,
  P1,
  P2,
  P3 
)    inline_mysql_file_fwrite(FD, P1, P2, P3)

Instrumented fwrite. mysql_file_fwrite is a replacement for my_fwrite.

Definition at line 243 of file mysql_file.h.

#define mysql_file_open (   K,
  N,
  F1,
  F2 
)    inline_mysql_file_open(N, F1, F2)

Instrumented open. mysql_file_open is a replacement for my_open.

Definition at line 308 of file mysql_file.h.

#define mysql_file_pread (   FD,
  B,
  S,
  O,
 
)    inline_mysql_file_pread(FD, B, S, O, F)

Instrumented pread. mysql_pread is a replacement for my_pread.

Definition at line 360 of file mysql_file.h.

#define mysql_file_pwrite (   FD,
  B,
  S,
  O,
 
)    inline_mysql_file_pwrite(FD, B, S, O, F)

Instrumented pwrite. mysql_file_pwrite is a replacement for my_pwrite.

Definition at line 373 of file mysql_file.h.

#define mysql_file_read (   FD,
  B,
  S,
 
)    inline_mysql_file_read(FD, B, S, F)

Instrumented read. mysql_read is a replacement for my_read.

Definition at line 334 of file mysql_file.h.

#define mysql_file_register (   P1,
  P2,
  P3 
)    inline_mysql_file_register(P1, P2, P3)

File registration.

Definition at line 56 of file mysql_file.h.

#define mysql_file_rename (   K,
  P1,
  P2,
  P3 
)    inline_mysql_file_rename(P1, P2, P3)

Instrumented rename. mysql_file_rename is a replacement for my_rename.

Definition at line 425 of file mysql_file.h.

#define mysql_file_rename_with_symlink (   K,
  P1,
  P2,
  P3 
)    inline_mysql_file_rename_with_symlink(P1, P2, P3)

Instrumented rename with symbolic link. mysql_file_rename_with_symlink is a replacement for my_rename_with_symlink.

Definition at line 468 of file mysql_file.h.

#define mysql_file_seek (   FD,
  P,
  W,
 
)    inline_mysql_file_seek(FD, P, W, F)

Instrumented seek. mysql_file_seek is a replacement for my_seek.

Definition at line 386 of file mysql_file.h.

#define mysql_file_stat (   K,
  FN,
  S,
  FL 
)    inline_mysql_file_stat(FN, S, FL)

Instrumented stat. mysql_file_stat is a replacement for my_stat.

Definition at line 171 of file mysql_file.h.

#define mysql_file_sync (   P1,
  P2 
)    inline_mysql_file_sync(P1, P2)

Instrumented file sync. mysql_file_sync is a replacement for my_sync.

Definition at line 481 of file mysql_file.h.

#define mysql_file_tell (   FD,
 
)    inline_mysql_file_tell(FD, F)

Instrumented tell. mysql_file_tell is a replacement for my_tell.

Definition at line 399 of file mysql_file.h.

#define mysql_file_vfprintf (   F,
  P1,
  P2 
)    inline_mysql_file_vfprintf(F, P1, P2)

Instrumented vfprintf. mysql_file_vfprintf is a replacement for vfprintf.

Definition at line 125 of file mysql_file.h.

#define mysql_file_write (   FD,
  B,
  S,
 
)    inline_mysql_file_write(FD, B, S, F)

Instrumented write. mysql_file_write is a replacement for my_write.

Definition at line 347 of file mysql_file.h.

Typedef Documentation

typedef struct st_mysql_file MYSQL_FILE

Type of an instrumented file. MYSQL_FILE is a drop-in replacement for FILE.

See Also
mysql_file_open

Definition at line 506 of file mysql_file.h.