mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 03:08:13 +02:00
remove one of the functions just added, it was broken by design
This commit is contained in:
parent
9f06aa1a5c
commit
d6ed3f15d3
2 changed files with 4 additions and 13 deletions
|
|
@ -104,7 +104,7 @@ ply_write (int fd,
|
|||
return bytes_left_to_write == 0;
|
||||
}
|
||||
|
||||
static ssize_t
|
||||
ssize_t
|
||||
ply_read_some_bytes (int fd,
|
||||
void *buffer,
|
||||
size_t max_bytes)
|
||||
|
|
@ -152,16 +152,6 @@ ply_read (int fd,
|
|||
return ply_read_some_bytes (fd, buffer, number_of_bytes) == number_of_bytes;
|
||||
}
|
||||
|
||||
ssize_t
|
||||
ply_read_chunk (int fd,
|
||||
void *buffer)
|
||||
{
|
||||
assert (fd >= 0);
|
||||
assert (!ply_fd_may_block (fd));
|
||||
|
||||
return ply_read_some_bytes (fd, buffer, 4096);
|
||||
}
|
||||
|
||||
bool
|
||||
ply_fd_has_data (int fd)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -47,8 +47,9 @@ bool ply_write (int fd,
|
|||
bool ply_read (int fd,
|
||||
void *buffer,
|
||||
size_t number_of_bytes);
|
||||
ssize_t ply_read_chunk (int fd,
|
||||
void *chunk);
|
||||
ssize_t ply_read_some_bytes (int fd,
|
||||
void *buffer,
|
||||
size_t max_bytes);
|
||||
|
||||
bool ply_fd_has_data (int fd);
|
||||
bool ply_fd_can_take_data (int fd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue