Re: find und SUS

From: Oliver Fromme <olli(at)lurza.secnetix.de>
Date: Thu, 22 May 2008 19:52:45 +0200 (CEST)

Nicolas Rachinsky wrote:
> die FreeBSD man-page von find sagt:
> -atime n[smhdw]
> If no units are specified, this primary evaluates to true if the
> difference between the file last access time and the time find
> was started, rounded up to the next full 24-hour period, is n
> 24-hour periods.
> ...
> The find utility syntax is a superset of the syntax specified by the IEEE
> Std 1003.1-2001 (``POSIX.1'') standard.
>
>
>
> IEEE Std 1003.1 (http://www.opengroup.org/onlinepubs/009695399/utilities/find.html)
> sagt:
> | -atime n
> | The primary shall evaluate as true if the file access time subtracted
> | from the initialization time, divided by 86400 (with any remainder
> | discarded), is n.
>
> Das ist eine Abrundung, also genau in die andere Richtung wie bei
> FreeBSD. Oder überseh ich was?

Ich glaube, Du hast recht. Ich habe es mal rasch getestet;
es verhält sich so wie in der Manpage beschrieben (ebenso
bei -mtime und -ctime). Solaris dagegen verhält sich so,
wie es SUS/POSIX beschreiben.

Evtl. solltest Du das mal in der freebsd-standards-Liste
zur Sprache bringen, und/oder gleich einen PR einreichen,
am besten mit Patch. Es wäre wünschenswert, wenn FreeBSD
hier POSIX-konform und kompatibel mit anderen Systemen ist.

Gruß
   Olli

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd
"Whatever happened to the days when hacking started
at the cerebral cortex, and not at the keyboard?"
  --  Sid on userfriendly.org by Illiad, 2007-06-20
To Unsubscribe: send mail to majordomo(at)de.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 22 May 2008 - 19:52:59 CEST

search this site