File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -448,6 +448,7 @@ STA_PPSTIME
448448STA_PPSWANDER
449449STA_RONLY
450450STA_UNSYNC
451+ SUN_LEN
451452ST_RELATIME
452453SYSFS_MAGIC
453454TCA_CHAIN
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ RWF_DSYNC
3636RWF_HIPRI
3737RWF_NOWAIT
3838RWF_SYNC
39+ SUN_LEN
3940USER_PROCESS
4041_CS_V6_ENV
4142_CS_V7_ENV
Original file line number Diff line number Diff line change @@ -6053,6 +6053,17 @@ f! {
60536053 pub fn ELF64_R_INFO ( sym: Elf64_Xword , t: Elf64_Xword ) -> Elf64_Xword {
60546054 sym << 32 + t
60556055 }
6056+
6057+ #[ cfg( target_env = "gnu" ) ]
6058+ pub fn SUN_LEN ( s: crate :: sockaddr_un) -> usize {
6059+ core:: mem:: offset_of!( crate :: sockaddr_un, sun_path) +
6060+ unsafe { crate :: strlen( s. sun_path. as_ptr( ) ) }
6061+ }
6062+
6063+ #[ cfg( target_env = "musl" ) ]
6064+ pub fn SUN_LEN ( s: crate :: sockaddr_un) -> usize {
6065+ 2 * ( unsafe { crate :: strlen( s. sun_path. as_ptr( ) ) } )
6066+ }
60566067}
60576068
60586069safe_f ! {
You can’t perform that action at this time.
0 commit comments