|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: which buffer address is this ?Hi Siddu,
I guess the three dots, followed by some string, in second argument of read() represents variable arguments. Return value of read() should match the length of the buffer anyway. thanks, uma.. On Wed, Jul 15, 2009 at 8:03 PM, Siddu <siddu.sjce@...> wrote: > found out its the inet6 or ipv6 address :) > > Hello All, > > I was running strace over ifconfig command and part of the output is > shown > below . I notice something strange in the length of the buffer address of > the read syscall . *Can somebody throw some light on this ?* > > open("/proc/net/if_inet6", O_RDONLY) = 10 > fstat64(10, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = > 0xb7ce8000 > *read(10, "fe80000000000000021676fffe79ceb2"..., 1024) = 108* > > > write(1, " inet6 addr: fe80::216:"..., 61 inet6 addr: > fe80::216:76ff:fe79:ceb2/64 Scope:Link > ) = 61 > read(10, "", 1024) = 0 > read(10, "", 1024) = 0 > close(10) = 0 > > -- > Regards, > ~Sid~ > http://sidsenclave.blogspot.com > > > > -- > Regards, > ~Sid~ > http://sidsenclave.blogspot.com > > > > -- > Regards, > ~Sid~ > http://sidsenclave.blogspot.com > > > [Non-text portions of this message have been removed] > > > > ------------------------------------ > > http://twincling.org/ > http://twitter.com/twincling > ---------------------------------------- > Yahoo! Groups Links > > > > > [Non-text portions of this message have been removed] |
| Free embeddable forum powered by Nabble | Forum Help |