The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Operating Systems > Linux > SuSE
.
google unix.com



SuSE SUSE Linux is a major operating system. The developer rights are owned by Novell, Inc.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem shmat in HP-UX Titanium ia64. EINVAL Error dairby High Level Programming 3 08-04-2009 11:22 AM
GUI problem with Suse Linux mac4rfree SuSE 2 11-12-2008 02:20 AM
HP-UX 11.23 ia64 and Glance LisaS UNIX for Dummies Questions & Answers 2 01-03-2008 01:38 PM
SuSE parted problem Mudrack SuSE 0 06-12-2006 12:10 PM
SuSE 8.1 NIC problem norsk hedensk UNIX for Dummies Questions & Answers 2 04-07-2003 11:54 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-24-2009
vin_pll vin_pll is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 29
problem of readdir on IA64 suse

Dear Experts,

i am trying to find whether the given name is file or a directory


Code:
dirp = opendir(dirname);
direntp = readdir(dirp);
if(direntp->d_type & DT_DIR)
 {
   printf("\n is a dirctory");
 }
else
  {
    //dir_or_file = Mtrue;
   printf("\n not a directory");
  }

it always gives me not a directory but the same code works with red hat 64 bit but not working with suse ia 64 m/c please can you give the reason.

thanks in advance.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:14 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0