LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-16-2007, 11:47 PM   #1
sheintze
Member
 
Registered: Jan 2007
Posts: 30

Rep: Reputation: 15
Where is lstat man page?


On fedora core 6 I can say "man lstat" and get a description of this function call. However, this does not work on my debian etch intallation. Is there an apt-get command I need to install these man pages?
Thanks,
Siegfried
 
Old 03-17-2007, 09:24 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The man utility has information about the lstat command in this file:
Code:
/usr/share/man/man2/lstat.2.bz2
If you have that file then you may have a file access problem. If you don't have that file then you are missing (part of) section 2 of the man data files.
 
Old 03-17-2007, 02:17 PM   #3
eco2geek
Member
 
Registered: Feb 2003
Location: Portland, OR
Distribution: openSUSE 10.3, among others
Posts: 141
Blog Entries: 1

Rep: Reputation: 15
My guess -- and this is only a guess -- is that he's not missing any man pages at all, it's that, instead of using "lstat", he's got to use "stat -L". In other words, see "man stat" instead.
 
Old 03-20-2007, 08:53 AM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Hate to disagree, but ...

On my Debian derived MEPIS 3.3.2 system most of the man2 pages are missing:
Code:
$ ls /usr/share/man/man2  | wc -l
6
Unfortunately, I can't find a Debian pkg. at http://www.debian.org/distrib/packages that specifically says it provides sec. 2 man pages.

What Googles have you tried?
 
Old 03-20-2007, 10:03 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Code:
dlocate `slocate /lstat.2.gz`
manpages-fr-dev

http://packages.debian.org/cgi-bin/s...able&arch=i386

Quote:
usr/share/man/de/man2/lstat.2.gz doc/manpages-de-dev
usr/share/man/es/man2/lstat.2.gz doc/manpages-es
usr/share/man/fr/man2/lstat.2.gz doc/manpages-fr
usr/share/man/ja/man2/lstat.2.gz doc/manpages-ja-dev
usr/share/man/ko/man2/lstat.2.gz doc/manpages-ko
usr/share/man/man2/lstat.2.gz doc/manpages-dev
usr/share/man/nl/man2/lstat.2.gz doc/manpages-nl
usr/share/man/pl/man2/lstat.2.gz doc/manpages-pl-dev
usr/share/man/ru_RU.KOI8-R/man2/lstat.2.gz doc/manpages-ru
Legalize^WLocalise it!

Last edited by nx5000; 03-20-2007 at 10:04 AM.
 
Old 03-20-2007, 11:32 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
I tried your suggested code, & as I suspected, it didn't work because most of section 2 of the man pages are missing from my machine. That's just the way SimplyMEPIS 3.3.2, & possibly Etch, was structured.

Code:
$ dlocate `slocate /lstat.2.gz`
bash: slocate: command not found
Usage: ...
The link gets to the pkg. for 1 (of many) section 2 man pages; my Q is, & I believe OP's real problem is, how does a Debian user get ALL of Section 2?
 
Old 03-20-2007, 11:52 AM   #7
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Section 2 are system calls, in general found in manpages-dev or manpages-[lang]-dev which is

Quote:
Package: manpages-dev
Description: Manual pages about using GNU/Linux for development
These man pages describe the Linux programming interface, including
these two sections:
2 = Linux system calls.
3 = Library calls (note that a more comprehensive source of information
may be found in the glibc-doc package).
Tag: devel::doc, made-of::data:man, role::documentation

Code:
bash: slocate: command not found
You have to install slocate or replace slocate by locate (which is more insecure, hence the s)


Get all section 2 man pages:

Code:
apt-file search /usr/share/man/man2 | cut -d: -f 1 | uniq
apt-file search /usr/share/man/fr/man2 | cut -d: -f 1 | uniq

asr-manpages
basket
freebsd-manpages
libaio-dev
libattr1-dev
libguichan0
manpages
manpages-dev
modutils
rtlinux
manpages-fr
manpages-fr-dev

apt-file searches also in non-installed packages, while dlocate only installed one.

I hope I got it right this time tell me otherwise..

Last edited by nx5000; 03-20-2007 at 11:54 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
getting out of a man page! naijaguy Linux - Newbie 11 04-10-2018 05:21 PM
man page query irvken Linux - General 1 07-05-2006 05:54 AM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 09:29 AM
man page? chandan Linux - Newbie 1 07-16-2003 07:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration