struct fastbuf *bopen_file(const char *name, int mode, struct fb_params *params); /* Use params==NULL for defaults */
struct fastbuf *bopen_file_try(const char *name, int mode, struct fb_params *params);
struct fastbuf *bopen_tmp_file(struct fb_params *params);
-struct fastbuf *bopen_fd(int fd, struct fb_params *params);
+struct fastbuf *bopen_fd_name(int fd, struct fb_params *params, const char *name);
+static inline struct fastbuf *bopen_fd(int fd, struct fb_params *params)
+{
+ return bopen_fd_name(fd, params, NULL);
+}
/* FastIO on standard files (shortcuts for FB_STD) */
}
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 */