comparison dep/animia/src/fd/bsd.cc @ 150:ffa535b6d630

*: avoid usage of std::[pair,tuple] https://arne-mertz.de/2017/03/smelly-pair-tuple/ it's better to use real structures and such where variables are easily known... also apparently using [] on structs is actually valid? I had no idea.
author Paper <mrpapersonic@gmail.com>
date Tue, 14 Nov 2023 16:27:33 -0500
parents aa4df5a84338
children 54744a48a7d7
comparison
equal deleted inserted replaced
149:e41505d24733 150:ffa535b6d630
107 /* this doesn't work! 107 /* this doesn't work!
108 if (vnodeInfo.pfi.fi_openflags & O_WRONLY || vnodeInfo.pfi.fi_openflags & O_RDWR) 108 if (vnodeInfo.pfi.fi_openflags & O_WRONLY || vnodeInfo.pfi.fi_openflags & O_RDWR)
109 continue; 109 continue;
110 */ 110 */
111 111
112 files.push_back({pid, vnodeInfo.pvip.vip_path}); 112 OpenFile file;
113 file.pid = pid;
114 file.path = vnodeInfo.pvip.vip_path;
115
116 files.push_back(file);
113 } 117 }
114 } 118 }
115 } 119 }
116 return true; 120 return true;
117 } 121 }