mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-19 19:40:06 +00:00
b912ca1144
2001-05-25 Bruce Mitchener <bruce@cubik.org> * manual/ctype.texi: Minor fix. * manual/install.texi: Likewise. * manual/startup.texi: Likewise. * manual/examples/dir.c: Use perror() rather than puts(). 2001-05-25 David Mosberger <davidm@hpl.hp.com> * sysdeps/unix/sysv/linux/ia64/bits/sigcontext.h: Put stuff following #endif directive inside a comment to avoid compiler warnings. 2001-05-25 Philipp Thomas <pthomas@suse.de> * nis/nis_print.c (nis_nstype2str): Don't mark names of naming services for translation, only UNKNOWN needs it. Add comment to prevent it for the future. 2001-05-25 Joseph S. Myers <jsm28@cam.ac.uk> * misc/sys/cdefs.h (__restrict_arr): Define appropriately for GCC 3.1 and non-GCC C99 compilers.
26 lines
359 B
C
26 lines
359 B
C
/*@group*/
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
#include <sys/types.h>
|
|
#include <dirent.h>
|
|
/*@end group*/
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
DIR *dp;
|
|
struct dirent *ep;
|
|
|
|
dp = opendir ("./");
|
|
if (dp != NULL)
|
|
{
|
|
while (ep = readdir (dp))
|
|
puts (ep->d_name);
|
|
(void) closedir (dp);
|
|
}
|
|
else
|
|
perror ("Couldn't open the directory");
|
|
|
|
return 0;
|
|
}
|