File: uxspec.h

package info (click to toggle)
arj 3.10.22-15
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,396 kB
  • sloc: ansic: 32,993; makefile: 2,033; sh: 1,547; asm: 436
file content (37 lines) | stat: -rw-r--r-- 1,286 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
 * $Id: uxspec.h,v 1.3 2003/07/15 16:35:18 andrew_belov Exp $
 * ---------------------------------------------------------------------------
 * Prototypes of the functions located in UXSPEC.C are declared here.
 *
 */

#ifndef UXSPEC_INCLUDED
#define UXSPEC_INCLUDED

#define UXSTATS_SHORT              0    /* Short statistics */
#define UXSTATS_LONG               1    /* Long statistics (for ARJ L) */

/* set_uxspecial() return codes */

#define UXSPEC_RC_ERROR            1    /* Misc. errors */
#define UXSPEC_RC_FOREIGN_OS       2    /* Reports structure mismatches */
#define UXSPEC_RC_NOLINK           3    /* Links not supported */
#define UXSPEC_RC_SUPPRESSED       4    /* Attribute suppressed */

unsigned int get_uxspecial_size(char FAR *blk);
int query_uxspecial(char FAR **dest, char *name, struct file_properties *props);
int set_uxspecial(char FAR *storage, char *name);
void uxspecial_stats(char FAR *storage, int format);
unsigned int get_owner_size(char FAR *blk);
int query_owner(char FAR **dest, char *name, int how_to_resolve);
int set_owner(char FAR *storage, char *name, int resolve);
void owner_stats(char FAR *storage, int resolve);

#if TARGET==UNIX
void set_dev_mode(int is_excl);
int add_dev(char *name);
int is_dev_allowed(dev_t dev);
#endif

#endif