]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/fb-param.c
ucw docs: Hash routines
[libucw.git] / ucw / fb-param.c
index bde4b58f352765878cbadfb473fb14fb712e9a14..dafd23edde9f05c026621f8dfe18d7fa5400da11 100644 (file)
@@ -108,7 +108,7 @@ bopen_file_internal(const char *name, int mode, struct fb_params *params, int tr
 #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;
@@ -134,9 +134,9 @@ bopen_file_try(const char *name, int mode, struct fb_params *params)
 }
 
 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 */