From: arnold@skeeve.com (Aharon Robbins)
Subject: [TUHS] question about V7 ls(1) vs. sys/stat.h and ls.c
Date: Thu, 22 May 2003 12:24:25 +0300 [thread overview]
Message-ID: <200305220924.h4M9OPki011867@localhost.localdomain> (raw)
Greetings all.
The V7 ls(1) man page says that the -s option, which prints total
blocks, includes any indirect blocks.
However, the V7 struct stat didn't have the st_blocks member in the
struct stat, and the code in ls.c uses
long
nblock(size)
long size;
{
return((size+511)>>9);
}
So, is this just a case of the man page being mistaken?
When did the struct stat acquire the st_blocks member?
While I'm at it, the V7 ls -a option only adds . and .. to the
list; apparently all other dot files were printed by default.
When did ls change such that -a applied to all dot files?
Thanks,
Arnold Robbins
next reply other threads:[~2003-05-22 9:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-22 9:24 Aharon Robbins [this message]
2003-05-23 3:32 ` Chris Palmer
2003-05-23 4:02 ` M. Warner Losh
2003-05-23 4:17 ` Greg 'groggy' Lehey
2003-05-23 3:44 Michael Sokolov
2003-05-25 16:22 Kirk McKusick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200305220924.h4M9OPki011867@localhost.localdomain \
--to=arnold@skeeve.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).