File descriptor type

I want to use a $fopen with file descriptors: fd = $fopen ( filename , type )

Can fd be any 32 bit packed array type? Can it be signed/unsigned, 2-state/4-state?

I most often see ‘integer’ being used in example, can I also use ‘int unsigned’ ?

In reply to NiLu:
It can be any integral type of at least 32-bits. int would be the best choice as there would be no conversions necessary. Signed or unsigned does not matter unless used in expression where it matters. :)