MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / inet_ioctlsocket

Function inet_ioctlsocket

components/net/sal/impl/af_inet_lwip.c:228–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228int inet_ioctlsocket(int socket, long cmd, void *arg)
229{
230 int flags;
231
232 switch (cmd)
233 {
234 case F_GETFL:
235 case F_SETFL:
236 flags = (int)(size_t)arg;
237#ifdef O_LARGEFILE
238 flags &= ~O_LARGEFILE;
239#endif
240 return lwip_fcntl(socket, cmd, flags);
241
242 default:
243 return lwip_ioctl(socket, cmd, arg);
244 }
245}
246
247#ifdef SAL_USING_POSIX
248static int inet_poll(struct dfs_file *file, struct rt_pollreq *req)

Callers

nothing calls this directly

Calls 2

lwip_fcntlFunction · 0.50
lwip_ioctlFunction · 0.50

Tested by

no test coverage detected