clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

"info c-function" does not show the Texinfo page #1110

Open thiagomacieira opened 5 years ago

thiagomacieira commented 5 years ago

When you use the info command to obtain the GNU C library extensive documentation, on Clear you don't get it. Instead, of you get the man page.

For example, info memset produces the following in Clear (top lines):

MEMSET(3)                                                 Linux Programmer's Manual                                                MEMSET(3)

NAME
       memset - fill memory with a constant byte

SYNOPSIS
       #include <string.h>

       void *memset(void *s, int c, size_t n);

DESCRIPTION
       The memset() function fills the first n bytes of the memory area pointed to by s with the constant byte c.

RETURN VALUE
       The memset() function returns a pointer to the memory area s.

on OpenSUSE, it produces:

Next: Concatenating Strings,  Prev: String Length,  Up: String and Array Utilities

5.4 Copying Strings and Arrays
==============================

You can use the functions described in this section to copy the contents
of strings, wide strings, and arrays.  The ‘str’ and ‘mem’ functions are
declared in ‘string.h’ while the ‘w’ functions are declared in
‘wchar.h’.

   A helpful way to remember the ordering of the arguments to the
functions in this section is that it corresponds to an assignment
expression, with the destination array specified to the left of the
source array.  Most of these functions return the address of the
destination array; a few return the address of the destination’s
terminating null, or of just past the destination.

   Most of these functions do not work properly if the source and
destination arrays overlap.  For example, if the beginning of the
destination array overlaps the end of the source array, the original
contents of that part of the source array may get overwritten before it
is copied.  Even worse, in the case of the string functions, the null
byte marking the end of the string may be lost, and the copy function
might get stuck in a loop trashing all the memory allocated to your
program.
thiagomacieira commented 5 years ago

In fact, I can't find the Texinfo docs for glibc at all. There should be a lot of files called /usr/share/info/libc.info* but I can't find any.

Bundle c-basic is installed.