PIDUINO
fileno.h
1
/* Copyright © 2018-2025 Pascal JEAN, All rights reserved.
2
* Copyright © 2010-2016 Stephen Kell, https://github.com/stephenrkell
3
* Copyright © 2005 Richard Kreckel, https://www.ginac.de/~kreckel
4
* This file is part of the Piduino Library.
5
*
6
* Stephen Kell's distribution of Richard Kreckel's fileno() function for
7
* popular implementations of the C++ standard library.
8
* The original fileno() function of Richard Kreckel is in the public domain,
9
* see https://www.ginac.de/~kreckel/fileno/
10
*
11
* The Piduino Library is free software; you can redistribute it and/or
12
* modify it under the terms of the GNU Lesser General Public
13
* License as published by the Free Software Foundation; either
14
* version 2.1 of the License, or (at your option) any later version.
15
*
16
* The Piduino Library is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* Lesser General Public License for more details.
20
*
21
* You should have received a copy of the GNU Lesser General Public License
22
* along with the Piduino Library; if not, see <http://www.gnu.org/licenses/>.
23
*/
24
#pragma once
25
26
#include <iosfwd>
27
28
namespace
Piduino
{
29
35
template
<
typename
char
T,
typename
traits>
36
int
fileno
(
const
std::basic_ios<charT, traits>& stream);
37
}
38
39
/* ========================================================================== */
Piduino
Global namespace for Piduino.
Definition:
board.h:28
Piduino::fileno
int fileno(const std::basic_ios< charT, traits > &stream)
Map a stream pointer to a file descriptor.
include
piduino
fileno.h
Generated by
1.9.4