ack/h/arch.h

58 lines
1.5 KiB
C
Raw Normal View History

1994-06-24 11:31:16 +00:00
/* $Id$ */
1987-03-09 21:20:21 +00:00
/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*/
#ifndef __ARCH_H_INCLUDED
#define __ARCH_H_INCLUDED
1984-08-23 13:00:32 +00:00
#define ARMAG 0177545
#define AALMAG 0177454
2019-03-24 16:07:43 +00:00
#define AR_NAME_MAX 14
1984-08-23 13:00:32 +00:00
struct ar_hdr {
2019-03-24 16:07:43 +00:00
/** null terminated filename. */
char ar_name[AR_NAME_MAX];
/** last modification time, defined as seconds since epoch. */
1984-08-23 13:00:32 +00:00
long ar_date;
char ar_uid;
char ar_gid;
1991-06-06 11:47:23 +00:00
short ar_mode;
1984-08-23 13:00:32 +00:00
long ar_size;
};
#define AR_TOTAL 26
#define AR_SIZE 22
2019-03-24 16:07:43 +00:00
/** ar_mode Read permission bit for the owner of the file. */
#define AR_IRUSR 0400
/** ar_mode Write permission bit for the owner of the file. */
#define AR_IWUSR 0200
/** ar_mode Execute (for ordinary files) or search (for directories)
* permission bit for the owner of the file.
*/
#define AR_IXUSR 0100
/** ar_mode Read permission bit for the group owner of the file. */
#define AR_IRGRP 040
/** ar_mode Write permission bit for the group owner of the file. */
#define AR_IWGRP 020
/** ar_mode Execute or search permission bit for the group owner of the file. */
#define AR_IXGRP 010
/** ar_mode Read permission bit for other users. */
#define AR_IROTH 04
/** ar_mode Write permission for other users. */
#define AR_IWOTH 02
/** ar_mode Execute or search permission bit for other users. */
#define AR_IXOTH 01
/* This is the set-user-ID on execute bit. */
#define AR_ISUID 04000
/* This is the set-group-ID on execute bit. */
#define AR_ISGID 02000
#endif /* __ARCH_H_INCLUDED */