| 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 |
|
|
| 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); |
| 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 |
|
|
| 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; |
| 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 *); |