MCPcopy Create free account
hub / github.com/ElementsProject/lightning / close_noerr

Function close_noerr

ccan/ccan/noerr/noerr.c:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <stdlib.h>
6
7int close_noerr(int fd)
8{
9 int saved_errno = errno, ret;
10
11 if (close(fd) != 0)
12 ret = errno;
13 else
14 ret = 0;
15
16 errno = saved_errno;
17 return ret;
18}
19
20int fclose_noerr(FILE *fp)
21{

Callers 9

websocket_connection_inFunction · 0.85
make_listen_fdFunction · 0.85
gossip_store_readonly_fdFunction · 0.85
pipecmdarrFunction · 0.85
mainFunction · 0.85
grabFunction · 0.85
create_childFunction · 0.85
grab_fileFunction · 0.85
subdFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68