>>>>> "Dan" == Dan O'Reilly <dano@stripped> writes:
Dan> Working on the VMS port of MYSQL, version 3.22.25. I need the definition
Dan> of the following macros:
Dan> FN_C_ROOT_DIR
Dan> FN_C_BEFORE_DIR
Dan> FN_C_AFTER_DIR
Dan> FN_C_DIR_SEP
Dan> FN_C_PARENT_DIR
Dan> This is in some code that somebody has attempted to conditionalize, and
Dan> has left in a funky state for me to figure this out!
Here is the constants we used when we ported UNIREG to VMS a long time
ago.
/* General constants */
#define FN_LEN 33 /* Max file name len */
#define FN_HEADLEN 33 /* Max length of filepart of file name */
#define FN_EXTLEN 33 /* Max length of extension (part of FN_LEN) */
#define FN_REFLEN 101 /* Max length of full path-name */
#define FN_LIBCHAR '/'
#define FN_EXTCHAR '.'
#define FN_HOMELIB '~' /* ~/ is used as abbrev for home dir */
#define FN_CURLIB '.' /* ./ is used as abbrev for current dir */
#define FN_DEVCHAR ':'
#define FN_HOSTDEF "::" /* Hostname is before this string */
#define FN_PARENTDIR ".." /* Parentdirectory; Must be a string */
#define FN_ROOTDIR "/"
#define MY_NFILE _NFILE
#define ETP_HOME "REGGEN_USER_DISK:"
#define FN_C_BEFORE_DIR '[' /* When converting from/to unix filenames */
#define FN_C_AFTER_DIR ']'
#define FN_C_BEFORE_DIR_2 '<'
#define FN_C_AFTER_DIR_2 '>'
#define FN_C_DIR_SEP '.'
#define FN_C_ROOT_DIR "000000"
#define FN_C_DIR_EXT ".DIR"
#define FN_C_PARENT_DIR "-"
#define EXT_IN_LIBNAME
#define FN_NO_CASE_SENCE
#define FN_UPPER_CASE TRUE
Hope this helps.
Regards,
Monty
PS: developer@stripped is probably a better list for porting
questions
| Thread |
|---|
| • FN_C_*_DIR* et al | Dan O'Reilly | 17 Sep |
| • FN_C_*_DIR* et al | Michael Widenius | 19 Sep |