aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-09-28 04:54:04 +0000
committerUlrich Drepper <drepper@redhat.com>1999-09-28 04:54:04 +0000
commit9133b79b4fae126bbcd95dad6f2cac68329c8ff3 (patch)
treeb6ee5429a23ee0aa6c4a6cb9af1999fe305cd13b /manual
parent508d9ff8ac32ca869ed0f5b4139db1e9d877a462 (diff)
downloadglibc-9133b79b4fae126bbcd95dad6f2cac68329c8ff3.zip
glibc-9133b79b4fae126bbcd95dad6f2cac68329c8ff3.tar.gz
glibc-9133b79b4fae126bbcd95dad6f2cac68329c8ff3.tar.bz2
Update.
1999-09-27 Andreas Jaeger <aj@suse.de> * resolv/netdb.h: Remove declaration of getnodebyname. It has been renamed to getipnodebyname. Move flags around. 1999-09-27 Andreas Schwab <schwab@suse.de> * manual/message.texi (Locating gettext catalog): Fix typos. 1999-09-27 Andreas Jaeger <aj@suse.de> * manual/socket.texi (Out-of-Band Data): Correct example program, rename some variables for clarity. Reported by James Antill <james@and.org>, close PR libc/1329.
Diffstat (limited to 'manual')
-rw-r--r--manual/message.texi4
-rw-r--r--manual/socket.texi13
2 files changed, 9 insertions, 8 deletions
diff --git a/manual/message.texi b/manual/message.texi
index bfc7d28..8e12dc8 100644
--- a/manual/message.texi
+++ b/manual/message.texi
@@ -1024,7 +1024,7 @@ really never should be used.
@end deftypefun
@deftypefun {char *} bindtextdomain (const char *@var{domainname}, const char *@var{dirname})
-The @code{bindtextdomain} function can be used to specify the directly
+The @code{bindtextdomain} function can be used to specify the directory
which contains the message catalogs for domain @var{domainname} for the
different languages. To be correct, this is the directory where the
hierarchy of directories is expected. Details are explained below.
@@ -1051,7 +1051,7 @@ If the @var{dirname} parameter is the null pointer @code{bindtextdomain}
returns the currently selected directory for the domain with the name
@var{domainname}.
-the @code{bindtextdomain} function returns a pointer to a string
+The @code{bindtextdomain} function returns a pointer to a string
containing the name of the selected directory name. The string is
allocated internally in the function and must not be changed by the
user. If the system went out of core during the execution of
diff --git a/manual/socket.texi b/manual/socket.texi
index 53bdc5b..0c8fef3f 100644
--- a/manual/socket.texi
+++ b/manual/socket.texi
@@ -2512,7 +2512,7 @@ makes room. Here is an example:
@smallexample
struct buffer
@{
- char *buffer;
+ char *buf;
int size;
struct buffer *next;
@};
@@ -2536,18 +2536,19 @@ read_oob (int socket)
@{
/* @r{This is an arbitrary limit.}
@r{Does anyone know how to do this without a limit?} */
- char *buffer = (char *) xmalloc (1024);
+#define BUF_SZ 1024
+ char *buf = (char *) xmalloc (BUF_SZ);
int success;
int atmark;
/* @r{Try again to read the out-of-band data.} */
- success = recv (socket, buffer, sizeof buffer, MSG_OOB);
+ success = recv (socket, buf, BUF_SZ, MSG_OOB);
if (success >= 0)
@{
/* @r{We got it, so return it.} */
struct buffer *link
= (struct buffer *) xmalloc (sizeof (struct buffer));
- link->buffer = buffer;
+ link->buf = buf;
link->size = success;
link->next = list;
return link;
@@ -2568,7 +2569,7 @@ read_oob (int socket)
/* @r{Otherwise, read a bunch of ordinary data and save it.}
@r{This is guaranteed not to read past the mark}
@r{if it starts before the mark.} */
- success = read (socket, buffer, sizeof buffer);
+ success = read (socket, buf, BUF_SZ);
if (success < 0)
perror ("read");
@@ -2576,7 +2577,7 @@ read_oob (int socket)
@{
struct buffer *link
= (struct buffer *) xmalloc (sizeof (struct buffer));
- link->buffer = buffer;
+ link->buf = buf;
link->size = success;
/* @r{Add the new link to the end of the list.} */