| 1125 | } |
| 1126 | |
| 1127 | static 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 | |
| 1133 | static inline void EnableFlag(int fd, int flag) { |
| 1134 | const int oldf = GetFlags(fd); |
no outgoing calls
no test coverage detected