Oleg Drokin wrote: > Also it adds AT_STAT_SELF flag to mean that the stat should be executed not > on a path, but on the passed filedecriptor itself. Do you think this is more attractive? ret = fstatat(fd, 0, &stat, AT_STAT_SELF|AT_STAT_TYPE|AT_STAT_SIZE); Or this? ret = fstatat(fd, 0, &stat, AT_STAT_TYPE|AT_STAT_SIZE); Where 0 in the path automatically means AT_STAT_SELF. Or this? ret = fstatat(fd, AT_STAT_SELF, &stat, AT_STAT_TYPE|AT_STAT_SIZE); Where AT_STAT_SELF is defined as (const char *)-1 in system headers, to better catch null pointer application bugs. -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html