fd = open (fname, oflag, mode);
fd = open (fname, oflag | O_NOFOLLOW, mode);
shm_open (const char *name, int oflag, mode_t mode){  size_t namelen;  char *fname;  int fd;  /* Determine where the shmfs is mounted.  */  __libc_once (once, where_is_shmfs);  /* If we don't know the mount points there is nothing we can do.  Ever.  */  if (mountpoint.dir == NULL)    {      __set_errno (ENOSYS);      return -1;    }  /* Construct the filename.  */  while (name[0] == '/')    ++name;  if (name[0] == '\0')    {      /* The name "/" is not supported.  */      __set_errno (EINVAL);      return -1;    }  namelen = strlen (name);  fname = (char *) alloca (mountpoint.dirlen + namelen + 1);  __mempcpy (__mempcpy (fname, mountpoint.dir, mountpoint.dirlen),	     name, namelen + 1);  /* And get the file descriptor.     XXX Maybe we should test each descriptor whether it really is for a     file on the shmfs.  If this is what should be done the whole function     should be revamped since we can determine whether shmfs is available     while trying to open the file, all in one turn.  */  fd = open (fname, oflag, mode);  if (fd != -1)    {      /* We got a descriptor.  Now set the FD_CLOEXEC bit.  */      int flags = fcntl (fd, F_GETFD, 0);      if (__builtin_expect (flags, 0) >= 0)	{	  flags |= FD_CLOEXEC;	  flags = fcntl (fd, F_SETFD, flags);	}      if (flags == -1)	{	  /* Something went wrong.  We cannot return the descriptor.  */	  int save_errno = errno;	  close (fd);	  fd = -1;	  __set_errno (save_errno);	}    }  return fd;}