Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fhandler_nodevice.cc « cygwin « winsup - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4ffe2c4477432e8cf98321596e1dbdd81b51d419 (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_nodevice.cc.  "No such device" handler.

   Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2008, 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. */

#include "winsup.h"
#include "cygerrno.h"
#include "path.h"
#include "fhandler.h"

int
fhandler_nodevice::open (int, mode_t)
{
  if (!pc.error)
    set_errno (ENXIO);
  return 0;
}

fhandler_nodevice::fhandler_nodevice ()
{
}