Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!wuarchive!emory!gatech!udel!princeton!cs!samadams.princeton.edu From: tr@samadams.princeton.edu (Tom Reingold) Newsgroups: comp.lang.c Subject: question on opendir, readdir, etc. Message-ID: <4767@rossignol.Princeton.EDU> Date: 29 Nov 90 18:18:56 GMT Sender: news@cs.Princeton.EDU Organization: Noo Joizy -- The Cultural Mecca Lines: 19 Here is what I've surmised so far. To use opendir, readdir, etc. on BSD, you include . This lets you use a struct defined as direct. The member d_name is a character array of size MAXNAMLEN+1 (256). To use these functions on System V, you include . This lets you use a struct defined as dirent. Confusingly close. The member d_name is a character array of size 1! Is this for real? I have a sample program which works, but I think I'm lucky that trashing the area after my structure doesn't kill anything vital. Am I not supposed to use these functions in System V? If I am, do they normally work? -- Tom Reingold tr@samadams.princeton.edu OR ...!princeton!samadams!tr "Warning: Do not drive with Auto-Shade in place. Remove from windshield before starting ignition."