@@ -147,6 +147,62 @@ mod arch {
147147 }
148148}
149149
150+ #[ cfg( target_arch = "hexagon" ) ]
151+ mod arch {
152+ use crate :: os:: raw:: { c_long, c_int, c_longlong, culonglong} ;
153+
154+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type blkcnt_t = c_longlong ;
155+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type blksize_t = c_long ;
156+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type ino_t = c_ulonglong ;
157+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type nlink_t = c_uint ;
158+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type off_t = c_longlong ;
159+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ] pub type time_t = c_long ;
160+
161+ #[ repr( C ) ]
162+ #[ derive( Clone ) ]
163+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
164+ pub struct stat {
165+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
166+ pub st_dev : :: dev_t ,
167+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
168+ pub st_ino : :: c_ulonglong ,
169+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
170+ pub st_mode : :: c_uint ,
171+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
172+ pub st_nlink : :: c_uint ,
173+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
174+ pub st_uid : :: c_uint ,
175+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
176+ pub st_gid : :: c_uint ,
177+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
178+ pub st_rdev : :: c_ulonglong ,
179+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
180+ pub __pad1 : :: c_ulong ,
181+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
182+ pub st_size : :: c_longlong ,
183+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
184+ pub st_blksize : :: blksize_t ,
185+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
186+ pub __pad2 : :: c_int ,
187+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
188+ pub st_blocks : :: blkcnt_t ,
189+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
190+ pub st_atime : :: time_t ,
191+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
192+ pub st_atime_nsec : :: c_long ,
193+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
194+ pub st_mtime : :: time_t ,
195+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
196+ pub st_mtime_nsec : :: c_long ,
197+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
198+ pub st_ctime : :: time_t ,
199+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
200+ pub st_ctime_nsec : :: c_long ,
201+ #[ stable( feature = "raw_ext" , since = "1.1.0" ) ]
202+ pub __pad3 : [ :: c_int ; 2 ] ,
203+ }
204+ }
205+
150206#[ cfg( any( target_arch = "mips64" ,
151207 target_arch = "s390x" ,
152208 target_arch = "sparc64" ) ) ]
0 commit comments