summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/posixshm.c
diff options
context:
space:
mode:
authorjasone <jasone@FreeBSD.org>2000-04-26 23:17:17 +0000
committerjasone <jasone@FreeBSD.org>2000-04-26 23:17:17 +0000
commitdcf0db55cc801b71bbfc598d90288814b35f9c84 (patch)
tree29ef35d748f6b093b6ca681b62052e1967ee6fe7 /lib/libc/gen/posixshm.c
parentdc9d94db23c723fc06306a70505c702ca6b5485f (diff)
downloadFreeBSD-src-dcf0db55cc801b71bbfc598d90288814b35f9c84.zip
FreeBSD-src-dcf0db55cc801b71bbfc598d90288814b35f9c84.tar.gz
Remove cancellation point propagation.
Diffstat (limited to 'lib/libc/gen/posixshm.c')
-rw-r--r--lib/libc/gen/posixshm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/gen/posixshm.c b/lib/libc/gen/posixshm.c
index 78429cf..e437940 100644
--- a/lib/libc/gen/posixshm.c
+++ b/lib/libc/gen/posixshm.c
@@ -46,16 +46,16 @@ shm_open(const char *path, int flags, mode_t mode)
if ((flags & O_ACCMODE) == O_WRONLY)
return (EINVAL);
- fd = open(path, flags, mode);
+ fd = _open(path, flags, mode);
if (fd != -1) {
if (fstat(fd, &stab) != 0 || !S_ISREG(stab.st_mode)) {
- close(fd);
+ _close(fd);
errno = EINVAL;
return (-1);
}
- if (fcntl(fd, F_SETFL, (int)FPOSIXSHM) != 0) {
- close(fd);
+ if (_fcntl(fd, F_SETFL, (int)FPOSIXSHM) != 0) {
+ _close(fd);
return (-1);
}
}
OpenPOWER on IntegriCloud