--- dietlibc/t.c 2001/05/06 00:34:26 1.49 +++ dietlibc/t.c 2001/05/07 01:04:45 1.50 @@ -45,19 +45,14 @@ static int rand() { extern double atof(const char *c); int main(int argc,char *argv[]) { - struct mntent* m; - FILE *f=setmntent("/etc/mtab","r"); - m=getmntent(f); -#if 0 - char *mnt_fsname; /* name of mounted file system */ - char *mnt_dir; /* file system path prefix */ - char *mnt_type; /* mount type (see mntent.h) */ - char *mnt_opts; /* mount options (see mntent.h) */ - int mnt_freq; /* dump frequency in days */ - int mnt_passno; /* pass number on parallel fsck */ -#endif - printf("%s %s %s %s %d %d\n",m->mnt_fsname,m->mnt_dir,m->mnt_type,m->mnt_opts,m->mnt_freq,m->mnt_passno); - + if (!fnmatch("s*", "sub", 0)) + printf("s* sub\n"); + if (!fnmatch("s*", "glob", 0)) + printf("s* glob\n"); + if (!fnmatch("s*b", "sub", 0)) + printf("s*b sub\n"); + if (!fnmatch("s*h", "sub", 0)) + printf("s*h sub\n"); #if 0 char*tmp; int n=asprintf(&tmp,"foo %s %d\n","bar",23);