Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
6281d094
Commit
6281d094
authored
Apr 16, 2003
by
Niels Möller
Browse files
* src/io.c (io_read_file): Deleted unused function.
Rev: src/io.c:1.192 Rev: src/io.h:1.105
parent
c00bf212
Changes
2
Show whitespace changes
Inline
Side-by-side
src/io.c
View file @
6281d094
...
...
@@ -2162,17 +2162,6 @@ io_write_file(const char *fname, int flags, int mode,
block_size
,
c
);
}
struct
lsh_fd
*
io_read_file
(
const
char
*
fname
,
struct
exception_handler
*
e
)
{
int
fd
=
open
(
fname
,
O_RDONLY
);
if
(
fd
<
0
)
return
NULL
;
return
make_lsh_fd
(
fd
,
"read-only file"
,
e
);
}
void
close_fd
(
struct
lsh_fd
*
fd
)
{
...
...
src/io.h
View file @
6281d094
...
...
@@ -388,10 +388,6 @@ io_write_file(const char *fname, int flags,
struct
lsh_callback
*
c
,
struct
exception_handler
*
e
);
struct
lsh_fd
*
io_read_file
(
const
char
*
fname
,
struct
exception_handler
*
e
);
int
lsh_make_pipe
(
int
*
fds
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment