Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!mcsun!hp4nl!alchemy!markov From: markov@cs.ruu.nl (Mark Overmars) Newsgroups: comp.sys.sgi Subject: problem with scandir Keywords: dumps core Message-ID: <1991Mar25.191630.939@cs.ruu.nl> Date: 25 Mar 91 19:16:30 GMT Organization: Utrecht University, Dept. of Computer Science Lines: 17 I have a problem with the routine scandir. After some stripping I came up with the following program: #include #include main() { struct direct **namelist; scandir("/bin", &namelist, NULL, NULL); } It dumps core. It does not do so for any other directory than /bin. (Same behaviour on two unrelated machines.) Any reason why and any suggestions how to solve it? Mark Overmars