MCPcopy Create free account
hub / github.com/catboost/catboost / GetFlags

Function GetFlags

util/network/socket.cpp:1117–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1115
1116#if defined(_unix_)
1117static inline int GetFlags(int fd) {
1118 const int ret = fcntl(fd, F_GETFL);
1119
1120 if (ret == -1) {
1121 ythrow TSystemError() << "can not get fd flags";
1122 }
1123
1124 return ret;
1125}
1126
1127static inline void SetFlags(int fd, int flags) {
1128 if (fcntl(fd, F_SETFL, flags) == -1) {

Callers 3

EnableFlagFunction · 0.85
DisableFlagFunction · 0.85
FlagsAreEnabledFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected