MySQL 8.0.30
Source Code Documentation File Reference
#include "my_config.h"
#include <string>
#include <string.h>
#include "m_string.h"
#include "my_dbug.h"
#include "my_getpwnam.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_sys.h"
#include "mysys/my_static.h"


static std::string expand_tilde (char **path)
 Expand tilde to home or user-directory. More...
size_t cleanup_dirname (char *to, const char *from)
 Remove unwanted chars from dirname. More...
size_t normalize_dirname (char *to, const char *from)
 Convert a directory name to a format which can be compared as strings. More...
size_t unpack_dirname (char *to, const char *from)
 Fixes a directory name so that can be used by open(). More...
size_t unpack_filename (char *to, const char *from)
 Fix filename so it can be used by open, create. More...
size_t system_filename (char *to, const char *from)
 Convert filename (unix standard) to system standard Used before system command's like open(), create() More...
char * intern_filename (char *to, const char *from)
 Fix a filename to intern (UNIX format). More...

Function Documentation

◆ expand_tilde()

static std::string expand_tilde ( char **  path)

Expand tilde to home or user-directory.

Path is reset to point at FN_LIBCHAR after ~xxx

pathpointer to path containing tilde.
home directory.