--- dietlibc/t.c 2001/07/09 13:54:07 1.122 +++ dietlibc/t.c 2001/07/09 14:50:23 1.123 @@ -76,7 +76,15 @@ void closelog(void) { #endif int main(int argc,char *argv[]) { - puts("fnord"); + struct mntent* me; + FILE* f=fopen("/tmp/mounts","r"); + while (me=getmntent(f)) { + printf("%s %s %s %s %d %d\n",me->mnt_fsname,me->mnt_dir,me->mnt_type,me->mnt_opts,me->mnt_freq,me->mnt_passno); + } +#if 0 + char *tmp; + printf("%x\n",strtol("0Xffff",&tmp,16)); +#endif // putchar('c'); // write(1,"fnord\n",6); #if 0