Lolly 1.4.27
Loading...
Searching...
No Matches
Classes | Functions
spawn.hpp File Reference
#include "array.hpp"
#include <fcntl.h>
#include <io.h>
#include <process.h>
#include <string>
Include dependency graph for spawn.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Channel
 
class  spawn_system
 

Functions

__stdcall unsigned bkgread (void *)
 

Function Documentation

◆ bkgread()

__stdcall unsigned bkgread ( void * thatv)

Definition at line 23 of file spawn.cpp.

110 {
111 char buf[1024];
112 int cnt;
114 do {
115 cnt= _read (that->fd, buf, sizeof (buf));
116 if (cnt > 0) *(that->str)+= std::basic_string<char> (buf, cnt);
117 else if (cnt == 0) that->close ();
118 } while (cnt > 0);
119 return (cnt);
120}
The list class represents a linked list.
Definition list.hpp:48
list(T item)
Construct a new list object with a single item.
Definition list.hpp:137