MCPcopy Create free account
hub / github.com/axboe/liburing / close_files

Function close_files

test/file-update.c:16–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include "liburing.h"
15
16static void close_files(int *files, int nr_files, int add)
17{
18 char fname[32];
19 int i;
20
21 for (i = 0; i < nr_files; i++) {
22 if (files)
23 close(files[i]);
24 if (!add)
25 sprintf(fname, ".reg.%d", i);
26 else
27 sprintf(fname, ".add.%d", i + add);
28 unlink(fname);
29 }
30 if (files)
31 free(files);
32}
33
34static int *open_files(int nr_files, int extra, int add)
35{

Callers 1

test_update_multiringFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_update_multiringFunction · 0.56