diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-10-17 15:51:42 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-10-18 09:19:57 +0200 |
commit | 00af065057a0e9c10ce6a6475acc47920790c2a9 (patch) | |
tree | 8b9888fd3a07a6090ef4edf8e0634281326400d9 /include/linux | |
parent | f956e92bb5a5fa3268835f472b92c8d84c807db0 (diff) |
fs: expose `getdelim()` functionality through `fd.read()`
When `fd.read()` is invoked with a single-character string argument,
invoke `getdelim()` internally to read the input until the give character
or EOF. This is useful for reading character delimited input data.
For example `fd.read('\n')` will read any data up to the first newline
(or EOF) while `fd.read('\0x00')` will read until the first null byte.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions