File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,10 @@ impl AnonSocket {
7575
7676impl FileDescription for AnonSocket {
7777 fn name ( & self ) -> & ' static str {
78- // TODO: fix the name here later
79- "socketpair"
78+ match self . fd_type {
79+ AnonSocketType :: Socketpair => "socketpair" ,
80+ AnonSocketType :: PipeRead | AnonSocketType :: PipeWrite => "pipe" ,
81+ }
8082 }
8183
8284 fn close < ' tcx > (
@@ -154,7 +156,7 @@ impl FileDescription for AnonSocket {
154156 ecx : & mut MiriInterpCx < ' tcx > ,
155157 ) -> InterpResult < ' tcx , Scalar > {
156158 // FIXME: File access mode and file creation flags should be ignored.
157- // TODO: support flag unset
159+ // TODO: support flag unset
158160 if flag == ecx. eval_libc_i32 ( "O_NONBLOCK" ) {
159161 self . is_nonblock . set ( true ) ;
160162 } else {
You can’t perform that action at this time.
0 commit comments