aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-04-26 23:17:17 +0000
committerJason Evans <jasone@FreeBSD.org>2000-04-26 23:17:17 +0000
commit51289fd6db7886387985748c693783c4e09b3d2b (patch)
tree563fee41536a9015e3fbd6a7b4893b618bead04a /lib
parenta618cffeb85ef22f1998cbe1c0c56636bb1f9545 (diff)
downloadsrc-51289fd6db7886387985748c693783c4e09b3d2b.tar.gz
src-51289fd6db7886387985748c693783c4e09b3d2b.zip
Remove cancellation point propagation.
Notes
Notes: svn path=/head/; revision=59666
Diffstat (limited to 'lib')
-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 78429cfe4f6c..e437940ba881 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);
}
}