List Info

Thread: Request: old-format locate database from big-endian machine




Request: old-format locate database from big-endian machine
user name
2007-06-04 05:44:16
All,

The findutils code currently uses getw() to read words from
old-format
databases.  This function reads a word from a file using a
system's
native byte order.  At the moment we simply assume the byte
order is
the same for locate and updatedb.

However, I believe it would be fairly simple to detect when
this is
not the case.  Could somebody build an old-format locate
database on a
big-endian machine for me?  You can email me either a URL
for teh
resulting database or the database itself.

I need a database which requires getw() to work, which means
a shared
prefix on one of the entries of more than 14 bytes.   The
list of
filenames below would suffice, but don't use filenames long
enough to
be dangerous for findutils versions before 4.2.31:-

tmp/subdir
tmp/subdir/_________________________________________________
_______________________________fred1
tmp/subdir/_________________________________________________
_______________________________fred2
tmp/subdir/_________________________________________________
_______________________________fred3
tmp/subdir/_________________________________________________
_______________________________fred4
tmp/subdir/foo

Thanks,
James.


_______________________________________________
Bug-findutils mailing list
Bug-findutilsgnu.org
h
ttp://lists.gnu.org/mailman/listinfo/bug-findutils

Re: Request: old-format locate database from big-endian machine
user name
2007-06-04 13:26:46
On 2007-06-04 James Youngman <jaygnu.org> wrote:
[...]
> However, I believe it would be fairly simple to detect
when this is
> not the case.  Could somebody build an old-format
locate database on a
> big-endian machine for me?  You can email me either a
URL for teh
> resulting database or the database itself.
[...]

Since the resulting file is tiny, I have simply attached it.
(CC to
you, since the ml might strip it.)

cu andreas
-- 
`What a good friend you are to him, Dr. Maturin. His other
friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

_______________________________________________
Bug-findutils mailing list
Bug-findutilsgnu.org
h
ttp://lists.gnu.org/mailman/listinfo/bug-findutils

  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )