[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Comment obtenir le POSIX file descriptor dans un canal C++ std::ifstream?



Bonjour la liste


Je code un logiciel libre en C++ (RefPerSys ci-dessous, un moteur d'inférences)

J'ai un pointeur valide vers un canal std::ifstream ouvert. Donc en C++

    std::ifstream*p;

comment obtenir le descripteur de fichier POSIX (celui utilisé par l'appel
système read(2)....) à partir de ce pointeur?

L'expression p->get_fd() ne compile pas.

Librement
-- 
Basile STARYNKEVITCH                            <basile@starynkevitch.net>
8 rue de la Faïencerie                       http://starynkevitch.net/Basile/  
92340 Bourg-la-Reine                         https://github.com/bstarynk
France                                https://github.com/RefPerSys/RefPerSys


Reply to: