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

Function SetFlags

util/network/socket.cpp:1127–1131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1125}
1126
1127static inline void SetFlags(int fd, int flags) {
1128 if (fcntl(fd, F_SETFL, flags) == -1) {
1129 ythrow TSystemError() << "can not set fd flags";
1130 }
1131}
1132
1133static inline void EnableFlag(int fd, int flag) {
1134 const int oldf = GetFlags(fd);

Callers 4

BindMethod · 0.85
BindMethod · 0.85
EnableFlagFunction · 0.85
DisableFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected