/[hurd]/hurd/utils/storeinfo.c
ViewVC logotype

Diff of /hurd/utils/storeinfo.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by marcus, Mon Jan 8 22:33:11 2001 UTC revision 1.19 by roland, Sat Dec 29 00:33:59 2001 UTC
# Line 1  Line 1 
1  /* Show where a file exists  /* Show where a file exists
2    
3     Copyright (C) 1995,96,97,98,99 Free Software Foundation, Inc.     Copyright (C) 1995,96,97,98,99,2001 Free Software Foundation, Inc.
4    
5     Written by Miles Bader <miles@gnu.org>     Written by Miles Bader <miles@gnu.org>
6    
# Line 191  print_store (struct store *store, int le Line 191  print_store (struct store *store, int le
191  }  }
192    
193  int  int
194  main(int argc, char *argv[])  main (int argc, char *argv[])
195  {  {
196    int deref = 0, print_prefix = -1;    int deref = 0, print_prefix = -1;
197    unsigned what = 0;    unsigned what = 0;
# Line 213  main(int argc, char *argv[]) Line 213  main(int argc, char *argv[])
213            if (what == 0)            if (what == 0)
214              what = W_ALL;              what = W_ALL;
215    
216            err = store_create (file, STORE_INACTIVE, 0, &store);            /* The STORE_NO_FILEIO flag tells it to give us the special
217                 "unknown" class instead of an error if it cannot parse the
218                 file_get_storage_info results.  That will allow us to display
219                 what we can from them, i.e. the name that shows at least some
220                 of what the unknown data looked like.  */
221              err = store_create (file, STORE_INACTIVE|STORE_NO_FILEIO, 0, &store);
222            if (err)            if (err)
223              error (4, err, source);              error (4, err, source);
224    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26