File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,7 @@ STA_PPSTIME
450450STA_PPSWANDER
451451STA_RONLY
452452STA_UNSYNC
453+ SUN_LEN
453454ST_RELATIME
454455SYSFS_MAGIC
455456TCA_CHAIN
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ RWF_HIPRI
3838RWF_NOAPPEND
3939RWF_NOWAIT
4040RWF_SYNC
41+ SUN_LEN
4142USER_PROCESS
4243UT_HOSTSIZE
4344UT_LINESIZE
Original file line number Diff line number Diff line change @@ -5877,6 +5877,16 @@ f! {
58775877 pub fn ELF64_R_INFO ( sym: Elf64_Xword , t: Elf64_Xword ) -> Elf64_Xword {
58785878 sym << ( 32 + t)
58795879 }
5880+
5881+ #[ cfg( target_env = "gnu" ) ]
5882+ pub fn SUN_LEN ( s: crate :: sockaddr_un) -> usize {
5883+ offset_of!( crate :: sockaddr_un, sun_path) + crate :: strlen( s. sun_path. as_ptr( ) )
5884+ }
5885+
5886+ #[ cfg( target_env = "musl" ) ]
5887+ pub fn SUN_LEN ( s: crate :: sockaddr_un) -> usize {
5888+ 2 * crate :: strlen( s. sun_path. as_ptr( ) )
5889+ }
58805890}
58815891
58825892safe_f ! {
You can’t perform that action at this time.
0 commit comments