MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getMode

Method getMode

source/kernel/kunixsocket.cpp:428–428  ·  view source on GitHub ↗

DT_SOCK

Source from the content-addressed store, hash-verified

426 FsOpenNode* open(U32 flags) override {kwarn("unixsocket_open was called, this shouldn't happen. syscall_open should detect we have a kobject already"); return nullptr;}
427 U32 getType(bool checkForLink) override {return 12;} // DT_SOCK
428 U32 getMode() override {return K__S_IREAD | K__S_IWRITE | K_S_IFSOCK;}
429 U32 removeDir() override {kpanic("UnixSocket::removeDir not implemented"); return 0;}
430 U32 setTimes(U64 lastAccessTime, U32 lastAccessTimeNano, U64 lastModifiedTime, U32 lastModifiedTimeNano) override {klog("UnixSocket::setTimes not implemented"); return 0;}
431};

Callers 5

stat64Method · 0.45
lstat64Method · 0.45
statxMethod · 0.45
fstatat64Method · 0.45
statMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected