Hi Saji and Suresh, The following paragraph contains answer for your queries: You are getting SIGSEGV(segmentation violation). It occurs when you try to access memory whose address is well-formed, but to which access cannot be granted. That memory area might be either protected or there is occuring invalid page fault i.e. the entry you want for either page directory/page middle directory or page table is invalid. --- Saji Kumar VR <saji.kumar@wipro.com> wrote: > Hi, > > when I use the systemcall > > int getdomainname(char *name, int len) with an > invalid address for name > (say (char*)-1 or NULL), its dumping the core ( > getting SIGSEGV). is it the > expected behaviour? isn't it supposed to return with > EINVAL error set? > > same with the similar call gethostname() > > > rgds, > Saji > > > **************************Disclaimer************************************************** > > > Information contained in this E-MAIL being > proprietary to Wipro Limited is 'privileged' > and 'confidential' and intended for use only by the > individual or entity to which it is > addressed. You are notified that any use, copying or > dissemination of the information > contained in the E-MAIL in any manner whatsoever is > strictly prohibited. > > **************************************************************************************** > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/