/usr/include/vowpalwabbit/comp_io.h is in libvw-dev 8.5.0.dfsg1-1.
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 | /*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD
license as described in the file LICENSE.
*/
#pragma once
#include "io_buf.h"
#include "v_array.h"
#include <vector>
#include <stdio.h>
#if (ZLIB_VERNUM < 0x1252)
typedef void* gzFile;
#else
struct gzFile_s;
typedef struct gzFile_s *gzFile;
#endif
class comp_io_buf : public io_buf
{
public:
std::vector<gzFile> gz_files;
virtual int open_file(const char* name, bool stdin_off, int flag = READ);
virtual void reset_file(int f);
virtual ssize_t read_file(int f, void* buf, size_t nbytes);
virtual size_t num_files();
virtual ssize_t write_file(int file, const void* buf, size_t nbytes);
virtual bool compressed();
virtual void flush();
virtual bool close_file();
};
|