mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-19 18:20:22 +02:00
*** empty log message ***
This commit is contained in:
parent
c2da26487a
commit
264e9cbc93
1 changed files with 28 additions and 1 deletions
29
NEWS
29
NEWS
|
@ -217,6 +217,33 @@ Guile.
|
|||
|
||||
Instead, use scm_c_memq or scm_memq, scm_memv, scm_member.
|
||||
|
||||
** New function: read-string!/partial str [port_or_fdes [start [end]]]
|
||||
|
||||
Read characters from an fport or file descriptor into a string
|
||||
STR. This procedure is scsh-compatible and can efficiently read
|
||||
large strings. It will:
|
||||
|
||||
* attempt to fill the entire string, unless the START and/or
|
||||
END arguments are supplied. i.e., START defaults to 0 and
|
||||
END defaults to `(string-length str)'
|
||||
|
||||
* use the current input port if PORT_OR_FDES is not supplied.
|
||||
|
||||
* read any characters that are currently available, without
|
||||
waiting for the rest (short reads are possible).
|
||||
|
||||
* wait for as long as it needs to for the first character to
|
||||
become available, unless the port is in non-blocking mode
|
||||
|
||||
* return `#f' if end-of-file is encountered before reading any
|
||||
characters, otherwise return the number of characters read.
|
||||
|
||||
* return 0 if the port is in non-blocking mode and no characters
|
||||
are immediately available.
|
||||
|
||||
* return 0 if the request is for 0 bytes, with no end-of-file
|
||||
check
|
||||
|
||||
** New function: port? X
|
||||
|
||||
Returns a boolean indicating whether X is a port. Equivalent to
|
||||
|
@ -233,7 +260,7 @@ A simple wrapper for the `dup2' system call. Copies the file
|
|||
descriptor OLDFD to descriptor number NEWFD, replacing the
|
||||
previous meaning of NEWFD. Both OLDFD and NEWFD must be integers.
|
||||
Unlike for dup->fdes or primitive-move->fdes, no attempt is made
|
||||
to move away ports which are using NEWFD\n". The return value is
|
||||
to move away ports which are using NEWFD. The return value is
|
||||
unspecified.
|
||||
|
||||
** New function: close-fdes fd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue