PIDUINO
Loading...
Searching...
No Matches
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
*
9
* The Piduino Library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU Lesser General Public
11
* License as published by the Free Software Foundation; either
12
* version 3 of the License, or (at your option) any later version.
13
*
14
* The Piduino Library is distributed in the hope that it will be useful,
15
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
* Lesser General Public License for more details.
18
*
19
* You should have received a copy of the GNU Lesser General Public License
20
* along with the Piduino Library; if not, see <http://www.gnu.org/licenses/>.
21
*/
22
#pragma once
23
24
#include <iosfwd>
25
26
namespace
Piduino
{
27
33
template
<
typename
char
T,
typename
traits>
34
int
fileno
(
const
std::basic_ios<charT, traits>& stream);
35
}
36
37
/* ========================================================================== */
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.8