1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:37:35 +00:00

ProcFS: Make a new nifty /proc/net directory

And move /proc/netadapters and /proc/net_tcp there. Now they're
/proc/net/adapters and /proc/net/tcp respectively, with more to come ^)
This commit is contained in:
Sergey Bugaev 2019-08-09 13:10:26 +03:00 committed by Andreas Kling
parent 7e309e27dd
commit 84a54c7cf7
3 changed files with 29 additions and 7 deletions

View file

@ -5,7 +5,7 @@
void NetworkAdapterModel::update()
{
CFile file("/proc/netadapters");
CFile file("/proc/net/adapters");
if (!file.open(CIODevice::ReadOnly)) {
dbg() << "Unable to open " << file.filename();
return;

View file

@ -5,7 +5,7 @@
void SocketModel::update()
{
CFile file("/proc/net_tcp");
CFile file("/proc/net/tcp");
if (!file.open(CIODevice::ReadOnly)) {
dbg() << "Unable to open " << file.filename();
return;