/[global]/global/libutil/gpathop.c
ViewVC logotype

Diff of /global/libutil/gpathop.c

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

revision 1.23 by h-iwamoto, Sun Jun 26 04:57:30 2005 UTC revision 1.24 by shigio, Tue Oct 4 07:59:04 2005 UTC
# Line 56  static int created; Line 56  static int created;
56   *                      -1: error   *                      -1: error
57   */   */
58  int  int
59  gpath_open(dbpath, mode)  gpath_open(const char *dbpath, int mode)
         const char *dbpath;  
         int mode;  
60  {  {
61          assert(opened == 0);          assert(opened == 0);
62          /*          /*
# Line 88  gpath_open(dbpath, mode) Line 86  gpath_open(dbpath, mode)
86   *      i)      path    path name   *      i)      path    path name
87   */   */
88  void  void
89  gpath_put(path)  gpath_put(const char *path)
         const char *path;  
90  {  {
91          char fid[32];          char fid[32];
92    
# Line 109  gpath_put(path) Line 106  gpath_put(path)
106   *      r)              file id   *      r)              file id
107   */   */
108  const char *  const char *
109  gpath_path2fid(path)  gpath_path2fid(const char *path)
         const char *path;  
110  {  {
111          assert(opened == 1);          assert(opened == 1);
112          return dbop_get(dbop, path);          return dbop_get(dbop, path);
# Line 122  gpath_path2fid(path) Line 118  gpath_path2fid(path)
118   *      r)              path name   *      r)              path name
119   */   */
120  const char *  const char *
121  gpath_fid2path(fid)  gpath_fid2path(const char *fid)
         const char *fid;  
122  {  {
123          return dbop_get(dbop, fid);          return dbop_get(dbop, fid);
124  }  }
# Line 133  gpath_fid2path(fid) Line 128  gpath_fid2path(fid)
128   *      i)      path    path name   *      i)      path    path name
129   */   */
130  void  void
131  gpath_delete(path)  gpath_delete(const char *path)
         const char *path;  
132  {  {
133          const char *fid;          const char *fid;
134    
# Line 196  static char gfind_prefix[MAXPATHLEN+1]; Line 190  static char gfind_prefix[MAXPATHLEN+1];
190   * gfind_open: start iterator using GPATH.   * gfind_open: start iterator using GPATH.
191   */   */
192  void  void
193  gfind_open(dbpath, local)  gfind_open(const char *dbpath, const char *local)
         const char *dbpath;  
         const char *local;  
194  {  {
195          assert(gfind_opened == 0);          assert(gfind_opened == 0);
196          assert(gfind_first == 0);          assert(gfind_first == 0);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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