#endif
if (params->type == FB_MMAP && (mode & O_ACCMODE) == O_WRONLY)
mode = (mode & ~O_ACCMODE) | O_RDWR;
- int fd = sh_open(name, mode, 0666);
+ int fd = ucw_open(name, mode, 0666);
if (fd < 0)
if (try)
return NULL;
}
struct fastbuf *
-bopen_fd(int fd, struct fb_params *params)
+bopen_fd_name(int fd, struct fb_params *params, const char *name)
{
- return bopen_fd_internal(fd, params ? : &fbpar_def, ~0U, NULL);
+ return bopen_fd_internal(fd, params ? : &fbpar_def, ~0U, name);
}
/* Function for use by individual file back-ends */