aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_virtual.h
blob: de914eacded7fccce30c819d2f092c398f8e106f (plain)
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
/* fhandler_virtual.h: Header for virtual fhandlers

   Copyright 2009 Red Hat, Inc.

This file is part of Cygwin.

This software is a copyrighted work licensed under the terms of the
Cygwin license.  Please consult the file "CYGWIN_LICENSE" for
details. */

enum virtual_ftype_t {
  virt_socket = -4,
  virt_pipe = -3,
  virt_symlink = -2,
  virt_file = -1,
  virt_none = 0,
  virt_directory = 1,
  virt_rootdir = 2
};

struct virt_tab_t {
  const char *name;
  __dev32_t fhandler;
  virtual_ftype_t type;
  _off64_t (*format_func)(void *data, char *&);
};