File: open.h

package info (click to toggle)
dnprogs 2.18-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,896 kB
  • ctags: 3,051
  • sloc: ansic: 18,586; cpp: 9,436; makefile: 669; sh: 502; awk: 13
file content (40 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (8)
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

class fal_open: public fal_task
{
  public:
    fal_open(dap_connection &c, int v, fal_params &p,
	     dap_attrib_message *,
	     dap_alloc_message *,
	     dap_protect_message *);

    virtual ~fal_open();
    virtual bool process_message(dap_message *m);

  protected:

    glob_t        gl;
    unsigned int  glob_entry; // file entry in the glob structure

    int           display;
    FILE         *stream;
    bool          use_records;
    bool          write_access;
    bool          streaming; // no CONTROL message between records
    char         *buf;
    bool          create;
    unsigned int  block_size;

    dap_attrib_message  *attrib_msg;
    dap_alloc_message   *alloc_msg;
    dap_protect_message *protect_msg;

    bool send_file(int, long);
    void print_file();
    void delete_file();
    void truncate_file();
    bool put_record(dap_data_message *);
    void set_control_options(dap_control_message *);
    bool create_file(char *);
    void send_eof();

};