Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.development.system > #337

Re: ftok() on Linux generated different keys for the same inode and the same file name

From Alex Vinokur <alex.vinokur@gmail.com>
Newsgroups comp.unix.programmer, comp.os.linux.development.system
Subject Re: ftok() on Linux generated different keys for the same inode and the same file name
Date 2011-12-18 04:46 -0800
Organization http://groups.google.com
Message-ID <3635961e-9b91-4618-ab29-e26a0a134abd@m7g2000vbc.googlegroups.com> (permalink)
References <11380c99-6acd-4c84-96c2-c37f3b5b9f60@u5g2000vbd.googlegroups.com> <jcddhi$t4m$1@dont-email.me> <1efa0082-77e7-4e05-8f94-64d0fc152c44@ct2g2000vbb.googlegroups.com> <jcdfcl$ang$1@dont-email.me>

Cross-posted to 2 groups.

Show all headers | View raw


On Dec 15, 8:47 pm, Huibert Bol <huibert....@quicknet.nl> wrote:
> Alex Vinokur wrote:
> > Where can I see ftok()-source for Linux?
>
> I can never remember, I just typed "gdb /lib64/libc-*" and then "list
> ftok".
>
> --
> Huibert
> "Okay... really not something I needed to see."  --Raven

Thank you.

I tried to get ftok's code via gdb.
Failed.


Linux illin793 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011
x86_64 x86_64 x86_64 GNU/Linux


> ls -l /lib64/libc-2.5.so
-rwxr-xr-x 1 root root 1722304 Dec 14  2010 /lib64/libc-2.5.so

> nm /lib64/libc-2.5.so | grep ftok
00000030bc0d52b0 T ftok

> gdb /lib64/libc-2.5.so
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-32.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/
gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /lib64/libc-2.5.so...(no debugging symbols
found)...done.
(gdb) list ftok
No symbol table is loaded.  Use the "file" command.Undefined command:
"ftok".  Try "help".

Back to comp.os.linux.development.system | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-15 06:25 -0800
  Re: ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-15 07:20 -0800
  Re: ftok() on Linux generated different keys for the same inode and the same file name Huibert Bol <huibert.bol@quicknet.nl> - 2011-12-15 19:16 +0100
    Re: ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-15 10:34 -0800
      Re: ftok() on Linux generated different keys for the same inode and the same file name Huibert Bol <huibert.bol@quicknet.nl> - 2011-12-15 19:47 +0100
        Re: ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-18 04:46 -0800
          Re: ftok() on Linux generated different keys for the same inode and the same file name Huibert Bol <huibert.bol@quicknet.nl> - 2011-12-18 19:05 +0100
            Re: ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-18 10:13 -0800
      Re: ftok() on Linux generated different keys for the same inode and the same file name André Gillibert <MetaEntropy.removeThis@gmail.com> - 2011-12-17 11:57 +0100
        Re: ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-18 04:58 -0800
          Re: ftok() on Linux generated different keys for the same inode and the same file name André Gillibert <MetaEntropy.removeThis@gmail.com> - 2011-12-19 11:00 +0100
    Re: ftok() on Linux generated different keys for the same inode and the same file name Alex Vinokur <alex.vinokur@gmail.com> - 2011-12-15 10:38 -0800
      Re: ftok() on Linux generated different keys for the same inode and the same file name André Gillibert <MetaEntropy.removeThis@gmail.com> - 2011-12-18 11:08 +0100

csiph-web