1 // SPDX-License-Identifier: GPL-2.0
12 int main(int argc, char **argv)
19 fprintf(stderr, "usage: %s <path>\n", argv[0]);
25 /* create a test variable */
26 fd = open(path, O_RDWR | O_CREAT, 0600);
28 perror("open(O_WRONLY)");
32 rc = read(fd, buf, sizeof(buf));
34 fprintf(stderr, "Reading a new var should return EOF\n");