-void encode_stat (char *buf, struct stat *statp, int32_t LinkFI, int data_stream);
-int decode_stat (char *buf, struct stat *statp, int32_t *LinkFI);
-int32_t decode_LinkFI (char *buf, struct stat *statp);
+void encode_stat (char *buf, struct stat *statp, int stat_size, int32_t LinkFI, int data_stream);
+int decode_stat (char *buf, struct stat *statp, int stat_size, int32_t *LinkFI);
+int32_t decode_LinkFI (char *buf, struct stat *statp, int stat_size);