public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] File timestamps got confused...why?
@ 2014-07-14 17:54 meino.cramer
  2014-07-14 21:04 ` Stroller
  0 siblings, 1 reply; 10+ messages in thread
From: meino.cramer @ 2014-07-14 17:54 UTC (permalink / raw
  To: Gentoo

hi,

I am running Gentoo Linux, which I update on a ~daily basis.

If I do>

solfire:/home/user>ls -l smartlog.txt 
-rw-r--r-- 1 user users 1913320 2014-07-14 17:02 smartlog.txt

But if I do:

solfire:/home/user>fstat smartlog.txt
--- smartlog.txt ---
device             : 2054
inode number       : 5243545
mode               : 33188
number of links    : 1
UID                : 1001
GID                : 100
device ID          : 0
size               : 1913320
last accessed      : 24.5.114 1:26:22 
last modifed       : 14.7.114 17:2:5 
last changed       : 14.7.114 17:2:5 
block size         : 4096
blocks             : 3752

what is that 114 of the year for? Late 2K problem?

Thank you very much for any help in advance!

Best regards,
mcc





^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-14 17:54 [gentoo-user] File timestamps got confused...why? meino.cramer
@ 2014-07-14 21:04 ` Stroller
  2014-07-14 21:42   ` Dale
  2014-07-15 14:02   ` Dan Oriani
  0 siblings, 2 replies; 10+ messages in thread
From: Stroller @ 2014-07-14 21:04 UTC (permalink / raw
  To: gentoo-user


On Mon, 14 July 2014, at 6:54 pm, meino.cramer@gmx.de wrote:
> 
> I am running Gentoo Linux, which I update on a ~daily basis.
> ...
> solfire:/home/user>fstat smartlog.txt

What package provides `fstat`, please?

I don't have it installed on this machine, and the first google hit for "fstat gentoo" suggests it's a BSD command, unavailable on Linux.

http://forums.gentoo.org/viewtopic-p-1853116.html#1853116

Stroller.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-14 21:04 ` Stroller
@ 2014-07-14 21:42   ` Dale
  2014-07-15  9:09     ` J. Roeleveld
  2014-07-15 14:02   ` Dan Oriani
  1 sibling, 1 reply; 10+ messages in thread
From: Dale @ 2014-07-14 21:42 UTC (permalink / raw
  To: gentoo-user

Stroller wrote:
> On Mon, 14 July 2014, at 6:54 pm, meino.cramer@gmx.de wrote:
>> I am running Gentoo Linux, which I update on a ~daily basis.
>> ...
>> solfire:/home/user>fstat smartlog.txt
> What package provides `fstat`, please?
>
> I don't have it installed on this machine, and the first google hit for "fstat gentoo" suggests it's a BSD command, unavailable on Linux.
>
> http://forums.gentoo.org/viewtopic-p-1853116.html#1853116
>
> Stroller.
>
>
>

In case you are not aware.  I ran up on this ages ago and bookmarked
this nifty site. 

http://www.portagefilelist.de/site/query 

It seems to show what you posted tho.  Sort of. 

Dale

:-)  :-)


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-14 21:42   ` Dale
@ 2014-07-15  9:09     ` J. Roeleveld
  0 siblings, 0 replies; 10+ messages in thread
From: J. Roeleveld @ 2014-07-15  9:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]

On Monday, July 14, 2014 04:42:40 PM Dale wrote:
> Stroller wrote:
> > On Mon, 14 July 2014, at 6:54 pm, meino.cramer@gmx.de wrote:
> >> I am running Gentoo Linux, which I update on a ~daily basis.
> >> ...
> >> solfire:/home/user>fstat smartlog.txt
> > 
> > What package provides `fstat`, please?
> > 
> > I don't have it installed on this machine, and the first google hit for
> > "fstat gentoo" suggests it's a BSD command, unavailable on Linux.
> > 
> > http://forums.gentoo.org/viewtopic-p-1853116.html#1853116
> > 
> > Stroller.
> 
> In case you are not aware.  I ran up on this ages ago and bookmarked
> this nifty site.
> 
> http://www.portagefilelist.de/site/query
> 
> It seems to show what you posted tho.  Sort of.
> 
> Dale
> 
> :-)  :-)

"stat" is the closest I can find:

$ stat notes
  File: ‘notes’
  Size: 89              Blocks: 8          IO Block: 4096   regular file
Device: 804h/2052d      Inode: 656477      Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1000/   joost)   Gid: (  100/   users)
Access: 2014-07-08 10:00:01.297341996 +0200
Modify: 2014-07-08 10:00:01.297341996 +0200
Change: 2014-07-08 10:00:01.330675330 +0200
 Birth: -

--
Joost

[-- Attachment #2: Type: text/html, Size: 7512 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-14 21:04 ` Stroller
  2014-07-14 21:42   ` Dale
@ 2014-07-15 14:02   ` Dan Oriani
  2014-07-16  2:02     ` Paul Colquhoun
  1 sibling, 1 reply; 10+ messages in thread
From: Dan Oriani @ 2014-07-15 14:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 918 bytes --]

On Mon, Jul 14, 2014 at 10:04:36PM +0100, Stroller wrote:
> 
> On Mon, 14 July 2014, at 6:54 pm, meino.cramer@gmx.de wrote:
> > 
> > I am running Gentoo Linux, which I update on a ~daily basis.
> > ...
> > solfire:/home/user>fstat smartlog.txt
> 
> What package provides `fstat`, please?
> 
> I don't have it installed on this machine, and the first google 
> hit for "fstat gentoo" suggests it's a BSD command, unavailable 
> on Linux.
> 
> http://forums.gentoo.org/viewtopic-p-1853116.html#1853116
> 
> Stroller.
> 
> 

Not to get terribly off topic here, but fstat is, in fact, a C call. I
wonder if this is simply a user-made tool. If you look at code
examples for this call, it's not terribly difficult to use at all.

Actually, I wonder if the tool this user is using pulls the wrong
field and calls it 'year'.

-- 
Dan Oriani
redchops.com
(Website perpetually under construction)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-15 14:02   ` Dan Oriani
@ 2014-07-16  2:02     ` Paul Colquhoun
  2014-07-16  3:44       ` Dan Oriani
  0 siblings, 1 reply; 10+ messages in thread
From: Paul Colquhoun @ 2014-07-16  2:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1482 bytes --]

On Tue, 15 Jul 2014 10:02:18 Dan Oriani wrote:
> On Mon, Jul 14, 2014 at 10:04:36PM +0100, Stroller wrote:
> > On Mon, 14 July 2014, at 6:54 pm, meino.cramer@gmx.de wrote:
> > > I am running Gentoo Linux, which I update on a ~daily basis.
> > > ...
> > > solfire:/home/user>fstat smartlog.txt
> > 
> > What package provides `fstat`, please?
> > 
> > I don't have it installed on this machine, and the first google
> > hit for "fstat gentoo" suggests it's a BSD command, unavailable
> > on Linux.
> > 
> > http://forums.gentoo.org/viewtopic-p-1853116.html#1853116
> > 
> > Stroller.
> 
> Not to get terribly off topic here, but fstat is, in fact, a C call. I
> wonder if this is simply a user-made tool. If you look at code
> examples for this call, it's not terribly difficult to use at all.
> 
> Actually, I wonder if the tool this user is using pulls the wrong
> field and calls it 'year'.

I don't think it's the wrong field. Most (all?) C time calls use "years since 
1900" instead of the actual year value, so the 114 return values from the 
original message look like they are just the raw returned data.

(See 'man time.h' for more information)

In 1999 or earlier this just gave you the correct 2-digit year value so yes, 
this does like like a Y2K problem, if not a very serious one.


-- 
Reverend Paul Colquhoun, ULC.     http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
     http://catb.org/~esr/faqs/smart-questions.html#intro


[-- Attachment #2: Type: text/html, Size: 7101 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-16  2:02     ` Paul Colquhoun
@ 2014-07-16  3:44       ` Dan Oriani
  2014-07-16  5:09         ` Jc García
  2014-07-16 13:21         ` [gentoo-user] " James
  0 siblings, 2 replies; 10+ messages in thread
From: Dan Oriani @ 2014-07-16  3:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2045 bytes --]

On Wed, Jul 16, 2014 at 12:02:16PM +1000, Paul Colquhoun wrote:
> On Tue, 15 Jul 2014 10:02:18 Dan Oriani wrote:
> > On Mon, Jul 14, 2014 at 10:04:36PM +0100, Stroller wrote:
> > > On Mon, 14 July 2014, at 6:54 pm, meino.cramer@gmx.de wrote:
> > > > I am running Gentoo Linux, which I update on a ~daily basis.
> > > > ...
> > > > solfire:/home/user>fstat smartlog.txt
> > > 
> > > What package provides `fstat`, please?
> > > 
> > > I don't have it installed on this machine, and the first google
> > > hit for "fstat gentoo" suggests it's a BSD command, unavailable
> > > on Linux.
> > > 
> > > http://forums.gentoo.org/viewtopic-p-1853116.html#1853116
> > > 
> > > Stroller.
> > 
> > Not to get terribly off topic here, but fstat is, in fact, a C call. I
> > wonder if this is simply a user-made tool. If you look at code
> > examples for this call, it's not terribly difficult to use at all.
> > 
> > Actually, I wonder if the tool this user is using pulls the wrong
> > field and calls it 'year'.
> 
> I don't think it's the wrong field. Most (all?) C time calls use "years since 
> 1900" instead of the actual year value, so the 114 return values from the 
> original message look like they are just the raw returned data.
> 
> (See 'man time.h' for more information)
> 
> In 1999 or earlier this just gave you the correct 2-digit year value so yes, 
> this does like like a Y2K problem, if not a very serious one.
> 
> 
> -- 
> Reverend Paul Colquhoun, ULC.     http://andor.dropbear.id.au/
>   Asking for technical help in newsgroups?  Read this first:
>      http://catb.org/~esr/faqs/smart-questions.html#intro
> 

Yeah, you're definitely right there. I was thinking that it might have
been another field, I wasn't even thinking of the year difference.

Though I still wonder where he got this program from. It doesn't
appear to be in any packages at all, doesn't even seem to be a part of
any linux basesystems.

-- 
Dan Oriani
redchops.com
(Website perpetually under construction)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-16  3:44       ` Dan Oriani
@ 2014-07-16  5:09         ` Jc García
  2014-07-16 13:21         ` [gentoo-user] " James
  1 sibling, 0 replies; 10+ messages in thread
From: Jc García @ 2014-07-16  5:09 UTC (permalink / raw
  To: gentoo-user

2014-07-15 21:44 GMT-06:00 Dan Oriani <dan@redchops.com>:

> Yeah, you're definitely right there. I was thinking that it might have
> been another field, I wasn't even thinking of the year difference.
>
> Though I still wonder where he got this program from. It doesn't
> appear to be in any packages at all, doesn't even seem to be a part of
> any linux basesystems.
>
he might have modified the example in the manual of stat(2), and
compiled it, seems simple.
Here's how I got a binary that stat() a file and prints the info.
$ man fstat | sed -ne '364,419p' | gcc -x c -o ~/fstat.bin - ;
~/fstat.bin ~/fstat.bin
File type:                regular file
I-node number:            323473
Mode:                     100755 (octal)
Link count:               1
Ownership:                UID=1000   GID=100
Preferred I/O block size: 4096 bytes
File size:                8413 bytes
Blocks allocated:         24
Last status change:       Tue Jul 15 22:51:33 2014
Last file access:         Tue Jul 15 22:51:33 2014
Last file modification:   Tue Jul 15 22:51:33 2014

> --
> Dan Oriani
> redchops.com
> (Website perpetually under construction)


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user] Re: File timestamps got confused...why?
  2014-07-16  3:44       ` Dan Oriani
  2014-07-16  5:09         ` Jc García
@ 2014-07-16 13:21         ` James
  2014-07-16 14:58           ` [gentoo-user] " Stroller
  1 sibling, 1 reply; 10+ messages in thread
From: James @ 2014-07-16 13:21 UTC (permalink / raw
  To: gentoo-user

Dan Oriani <dan <at> redchops.com> writes:


> Though I still wonder where he got this program from. It doesn't
> appear to be in any packages at all, doesn't even seem to be a part of
> any linux basesystems.
  

If you google a bit, fstat appears in many "embedded" offerings. [2] [3]
Embedded
systems usually always have some codes that are not part of the 
standard installation. In fact in many embedded systems, there
is no standard.


sys-devel/crossdev  may be the source?  ulibc?

# equery belongs dtrace  <yeilds>
dev-util/systemtap-2.4 (/usr/bin/dtrace)

as an example  <fstat not installed here >

Also, Dale recently posted this link, in another
thread, which *may* help you find the source of the executable:

[1] http://www.portagefilelist.de/site/query 


[2] http://sourceware.org/ml/newlib/2011/msg00291.html

[3] http://lists.uclibc.org/pipermail/uclibc/2005-June/032695.html

[4] https://code.google.com/p/chromium/issues/detail?id=207019


hth,
James






^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] File timestamps got confused...why?
  2014-07-16 13:21         ` [gentoo-user] " James
@ 2014-07-16 14:58           ` Stroller
  0 siblings, 0 replies; 10+ messages in thread
From: Stroller @ 2014-07-16 14:58 UTC (permalink / raw
  To: gentoo-user


On Wed, 16 July 2014, at 2:21 pm, James <wireless@tampabay.rr.com> wrote:
> 
> ...
> Also, Dale recently posted this link, in another
> thread, which *may* help you find the source of the executable:
> 
> [1] http://www.portagefilelist.de/site/query 

Yeah, I used that one, which is one of the things that led me to my statement that it looks like a BSD command.

You'll see that:
 dev-libs/gnulib -> /usr/share/gnulib/modules/fstat
 sys-freebsd/freebsd-ubin -> /usr/bin/fstat

Also there are BSD manpages available online: http://www.freebsd.org/cgi/man.cgi?fstat

Stroller.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-07-16 14:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-14 17:54 [gentoo-user] File timestamps got confused...why? meino.cramer
2014-07-14 21:04 ` Stroller
2014-07-14 21:42   ` Dale
2014-07-15  9:09     ` J. Roeleveld
2014-07-15 14:02   ` Dan Oriani
2014-07-16  2:02     ` Paul Colquhoun
2014-07-16  3:44       ` Dan Oriani
2014-07-16  5:09         ` Jc García
2014-07-16 13:21         ` [gentoo-user] " James
2014-07-16 14:58           ` [gentoo-user] " Stroller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox