LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-07-2019, 09:19 PM   #1
anon033
Member
 
Registered: Mar 2019
Posts: 188

Rep: Reputation: 13
C Manpages


Hello everyone, I was wondering if there was a package that would give me man pages for the C standard library (I use musl, but generics would be best if there would even be a difference). I am not wanting the biggest, largest package; I myself am big on minimalism. Thanks in advance.

Last edited by anon033; 04-08-2019 at 06:40 PM.
 
Old 04-08-2019, 08:42 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I haven't used MUSL and read of its site this morning says it is intended to be light-weight so it may be it doesn't have a package for man pages like other distros.

There are man pages on line that are generally applicable to most distros. For Linux libc is a good start. You can find that man page at a couple of places:
http://man7.org/linux/man-pages/man7/libc.7.html
https://linux.die.net/man/7/libc

You can also see The GNU C Library Reference Manual
 
Old 04-08-2019, 09:09 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
I don't really understand what do you need:
man 3 printf
man 3 <c standard library function>
should work
 
Old 04-08-2019, 09:41 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by pan64 View Post
I don't really understand what do you need:
man 3 printf
man 3 <c standard library function>
should work
It won't if he hasn't got glibc installed. Maybe, as suggested by MensaWater, musl doesn't come with man pages.

Two possibilities come to mind:
1) Go to the GNU site and download the C library manual.
2) Download glibc source and just build and install the man pages.
 
Old 04-08-2019, 09:47 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,838

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
They are also available online.
 
Old 04-08-2019, 10:00 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by pan64 View Post
I don't really understand what do you need:
man 3 printf
man 3 <c standard library function>
should work
Quote:
Originally Posted by hazel View Post
It won't if he hasn't got glibc installed.
I actually prefer to get the man pages from the machine where I'm using the tools to build my code from. The reason being is that the man pages should correspond with the library versions which I have installed on that machine. Yes, this becomes complicated when you consider that you may be cross compiling, but still when you have the cross compilation libraries installed, you also get the man pages for it.

There are sometimes subtle differences with various packages that may be privately provided by a manufacturer. Way back when, things like busybox did not use all conventional capabilities for certain functions, so if you had something which was being provided by busybox, you needed to understand that it wouldn't do all the standard things, if that happened to apply there.

Mixed bag, I know, but if I'm compiling on a Linux system, using a certain set of tools, I view the man pages I need "on" that system.
 
Old 04-08-2019, 02:24 PM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by FOSSilized_Daemon View Post
Hello everyone, I was wondering if there was a package that would give me man pages for the C standard library
The C standard library, of course, is STANDARD, so all of the man pages in the (2) and (3) sections will apply to it. You can get a standard set of man pages from http://mirrors.edge.kernel.org/pub/l...ocs/man-pages/.
 
Old 04-08-2019, 06:39 PM   #8
anon033
Member
 
Registered: Mar 2019
Posts: 188

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by pan64 View Post
I don't really understand what do you need:
man 3 printf
man 3 <c standard library function>
should work
That's how I check 'em! There are man pages for musl . Thank you, sorry I am new to having man pages for my coding language.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware manpages to PDA? loadedmind Slackware 2 07-29-2004 07:09 AM
HowTo create manpages sguenneur Linux - General 0 03-31-2004 09:41 AM
more about manpages bigjohn Linux - Newbie 1 03-04-2004 09:07 PM
manpages are your friend-but have you ever tired to print one ? bigjohn Linux - Newbie 3 03-01-2004 11:31 AM
manpages for C++ lib functions h/w Programming 2 02-16-2004 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration