/[tar]/tar/src/common.h
ViewVC logotype

Diff of /tar/src/common.h

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

revision 1.14 by gray, Sun Aug 31 22:39:43 2003 UTC revision 1.15 by gray, Mon Sep 1 16:59:56 2003 UTC
# Line 28  Line 28 
28  #define PREFIX_FIELD_SIZE 155  #define PREFIX_FIELD_SIZE 155
29  #define UNAME_FIELD_SIZE   32  #define UNAME_FIELD_SIZE   32
30  #define GNAME_FIELD_SIZE   32  #define GNAME_FIELD_SIZE   32
31    
32    /* FIXME */
33    #define MAXOCTAL11      017777777777L
34    #define MAXOCTAL7       07777777
35    
36    
37    
38  /* Some various global definitions.  */  /* Some various global definitions.  */
39    
# Line 358  void check_links (void); Line 364  void check_links (void);
364  #define TIME_TO_CHARS(val, where) time_to_chars (val, where, sizeof (where))  #define TIME_TO_CHARS(val, where) time_to_chars (val, where, sizeof (where))
365  #define UID_TO_CHARS(val, where) uid_to_chars (val, where, sizeof (where))  #define UID_TO_CHARS(val, where) uid_to_chars (val, where, sizeof (where))
366  #define UINTMAX_TO_CHARS(val, where) uintmax_to_chars (val, where, sizeof (where))  #define UINTMAX_TO_CHARS(val, where) uintmax_to_chars (val, where, sizeof (where))
367    #define UNAME_TO_CHARS(name,buf) string_to_chars (name, buf, sizeof(buf))
368    #define GNAME_TO_CHARS(name,buf) string_to_chars (name, buf, sizeof(buf))
369    
370  void gid_to_chars (gid_t, char *, size_t);  void gid_to_chars (gid_t, char *, size_t);
371  void major_to_chars (major_t, char *, size_t);  void major_to_chars (major_t, char *, size_t);
# Line 368  void size_to_chars (size_t, char *, size Line 376  void size_to_chars (size_t, char *, size
376  void time_to_chars (time_t, char *, size_t);  void time_to_chars (time_t, char *, size_t);
377  void uid_to_chars (uid_t, char *, size_t);  void uid_to_chars (uid_t, char *, size_t);
378  void uintmax_to_chars (uintmax_t, char *, size_t);  void uintmax_to_chars (uintmax_t, char *, size_t);
379    void string_to_chars (char *, char *, size_t);
380    
381  /* Module diffarch.c.  */  /* Module diffarch.c.  */
382    
# Line 411  enum read_header Line 420  enum read_header
420    
421  struct xheader  struct xheader
422  {  {
423    int nblocks;    struct obstack *stk;
424    union block *blocks;    size_t size;
425      char *buffer;
426  };  };
427    
428  GLOBAL struct xheader extended_header;  GLOBAL struct xheader extended_header;
# Line 532  void xpipe (int[2]); Line 542  void xpipe (int[2]);
542    
543  extern struct name *gnu_list_name;  extern struct name *gnu_list_name;
544    
545  void gid_to_gname (gid_t, char gname[GNAME_FIELD_SIZE]);  void gid_to_gname (gid_t, char **gname);
546  int gname_to_gid (char gname[GNAME_FIELD_SIZE], gid_t *);  int gname_to_gid (char *gname, gid_t *);
547  void uid_to_uname (uid_t, char uname[UNAME_FIELD_SIZE]);  void uid_to_uname (uid_t, char **uname);
548  int uname_to_uid (char uname[UNAME_FIELD_SIZE], uid_t *);  int uname_to_uid (char *uname, uid_t *);
549    
550  void init_names (void);  void init_names (void);
551  void name_add (const char *);  void name_add (const char *);

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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