/usr/include/libpsio/psio.h is in libpsi3-dev 3.4.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #ifndef PSIO_H
#define PSIO_H
#include <cstdio>
#include <libpsio/config.h>
#ifdef __cplusplus
extern "C" {
#endif
int psio_init(void);
int psio_ipv1_config(void);
int psio_state(void);
int psio_done(void);
void psio_error(unsigned int unit, unsigned int errval);
int psio_open(unsigned int unit, int status);
int psio_close(unsigned int unit, int keep);
unsigned int psio_get_numvols_default(void);
int psio_get_volpath_default(unsigned int volume, char **path);
int psio_get_filename_default(char **name);
psio_address psio_get_address(psio_address start, ULI shift);
psio_address psio_get_global_address(psio_address entry_start,
psio_address rel_address);
int psio_volseek(psio_vol *vol, ULI page, ULI offset, ULI numvols);
ULI psio_get_length(psio_address sadd, psio_address eadd);
psio_address psio_get_entry_end(unsigned int unit, const char *key);
int psio_tocwrite(unsigned int unit);
int psio_tocread(unsigned int unit);
void psio_tocprint(unsigned int unit, FILE *output);
psio_tocentry *psio_tocscan(unsigned int unit, const char *key);
psio_tocentry *psio_toclast(unsigned int unit);
unsigned int psio_toclen(unsigned int unit);
int psio_tocclean(unsigned int unit, const char *key);
int psio_write(unsigned int unit, const char *key, char *buffer, ULI size,
psio_address sadd, psio_address *eadd);
int psio_read(unsigned int unit, const char *key, char *buffer, ULI size,
psio_address sadd, psio_address *eadd);
int psio_write_entry(unsigned int unit, const char *key, char *buffer, ULI size);
int psio_read_entry(unsigned int unit, const char *key, char *buffer, ULI size);
int psio_write_block(unsigned int unit, const char *key, char *buffer, ULI blksiz,
ULI start_blk, ULI end_blk);
int psio_read_block(unsigned int unit, const char *key, char *buffer, ULI blksiz,
ULI start_blk, ULI end_blk);
int psio_rw(unsigned int unit, char *buffer, psio_address address, ULI size,
int wrt);
int psio_open_check(unsigned int unit);
ULI psio_rd_toclen(unsigned int unit);
void psio_wt_toclen(unsigned int unit, ULI toclen);
int psio_set_filescfg_kwd(const char* kwdgrp, const char* kwd, int unit,
const char* kwdval);
const char* psio_get_filescfg_kwd(const char* kwdgrp, const char* kwd,
int unit);
#ifdef __cplusplus
}
#endif
#endif /* #ifndef PSIO_H */
|