3 Copyright (c) 1994-2009 Red Hat, Inc. All rights reserved.
4 Copyright (c) 2012 Adapteva, Inc.
6 This copyrighted material is made available to anyone wishing to use,
7 modify, copy, or redistribute it subject to the terms and conditions
8 of the BSD License. This program is distributed in the hope that
9 it will be useful, but WITHOUT ANY WARRANTY expressed or implied,
10 including the implied warranties of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE. A copy of this license is available at
12 http://www.opensource.org/licenses. Any Red Hat trademarks that are
13 incorporated in the source code or documentation are not subject to
14 the BSD License and may only be used or replicated with the express
15 permission of Red Hat, Inc. */
17 /* Dumb implementation so programs will at least run. */
21 #include "epiphany-syscalls.h"
28 if (_fstat (fd
, &buf
) < 0) {
32 if (S_ISCHR (buf
.st_mode
))