2 expression f, path, options;
4 - f = fopen(path, options);
7 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
8 + r = fopen_unlocked(path, options, &f);
12 expression f, path, options;
14 - f = fopen(path, options);
16 - if (errno == ENOENT)
20 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
21 + r = fopen_unlocked(path, options, &f);
27 expression f, path, options;
29 - f = fopen(path, options);
31 - return errno == ENOENT ? -ESRCH : -errno;
32 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
33 + r = fopen_unlocked(path, options, &f);
39 expression f, path, p;
41 r = fopen_temporary(path, &f, &p);
44 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
46 expression f, g, path, p;
48 r = fopen_temporary_label(path, g, &f, &p);
51 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
53 expression f, fd, options;
55 - f = fdopen(fd, options);
56 + r = fdopen_unlocked(fd, options, &f);
63 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);
65 expression f, buf, sz;
67 - f = open_memstream(&buf, &sz);
68 + f = open_memstream_unlocked(&buf, &sz);
71 - (void) __fsetlocking(f, FSETLOCKING_BYCALLER);