svn commit: r188251 - head/sys/fs/udf

Christoph Mallon christoph.mallon at gmx.de
Sat Feb 7 13:23:04 PST 2009


John Baldwin schrieb:
> Modified: head/sys/fs/udf/ecma167-udf.h
> ==============================================================================
> --- head/sys/fs/udf/ecma167-udf.h	Fri Feb  6 22:22:08 2009	(r188250)
> +++ head/sys/fs/udf/ecma167-udf.h	Fri Feb  6 22:24:03 2009	(r188251)
> @@ -354,6 +354,18 @@ struct file_entry {
>  #define	UDF_FENTRY_PERM_GRP_MASK	0xE0
>  #define	UDF_FENTRY_PERM_OWNER_MASK	0x1C00
>  
> +/* Path Component [4/14.16.1] */
> +struct path_component {
> +	uint8_t			type;
> +	uint8_t			length;
> +	uint16_t		version;
> +	uint8_t			identifier[0];
> +} __packed;

[0] is a GCCism. The standard way to declare a flexible array member is 
[] (cf. ISO/IEC 9899:1999 (E) §6.7.2.1:16).


More information about the svn-src-all mailing list