In the file /usr/include/dirent.h of MacOSX10.14 I see this line:
struct _telldir; /* forward reference */
In the same file the identifier is used:
struct _telldir *__dd_td;
Nowhere else in the include files is _telldir defined but in the same file the function telldir is declared:
long telldir(DIR *) __DARWIN_ALIAS_I(telldir);
I see the __DARWIN_ALIAS_I macro is defined as
#define __DARWIN_ALIAS_I(sym) __asm("_" __STRING(sym) __DARWIN_SUF_64_BIT_INO_T __DARWIN_SUF_UNIX03)**
I understand this is "inline assembler" and that this defines _telldir but I would like to know more about this definition.
Thanks in advance