|
0
|
1 |
2000-08-22 Bruce Guenter <bruce@bruce-guenter.dyndns.org>
|
|
|
2 |
|
|
|
3 |
* Added the missing accessor for the internal "errnum" data member
|
|
|
4 |
to the fdibuf and fdobuf classes.
|
|
|
5 |
|
|
|
6 |
2000-08-10 Bruce Guenter <bruce@bruce-guenter.dyndns.org>
|
|
|
7 |
|
|
|
8 |
* fdibuf.cc (read_large): Fixed a bug in the increment of data.
|
|
|
9 |
|
|
|
10 |
* fdibuf_mystring.cc (getline): Reduced some of the expressions
|
|
|
11 |
into variables.
|
|
|
12 |
|
|
|
13 |
2000-04-08 Bruce Guenter <bguenter@bguenter.pointsnorth.com>
|
|
|
14 |
|
|
|
15 |
* fdibuf.cc (read_large): Fixed bug: count needed to be
|
|
|
16 |
incremented after reading data in.
|
|
|
17 |
|
|
|
18 |
2000-04-07 Bruce Guenter <bguenter@bguenter.pointsnorth.com>
|
|
|
19 |
|
|
|
20 |
* fdobuf_signed.cc (operator<<): Immediately output a '-' for
|
|
|
21 |
negative numbers rather than storing a negative flag for later.
|
|
|
22 |
|
|
|
23 |
* fdobuf_unsigned.cc (operator<<): Moved the integer versions of
|
|
|
24 |
this operator into their own modules.
|
|
|
25 |
|
|
|
26 |
* fdobuf_seek.cc (seek): Moved this routine out of fdobuf.cc
|
|
|
27 |
|
|
|
28 |
* fdibuf.cc (read_large): Added this routine to read in a chunk of
|
|
|
29 |
data larger than the size of the buffer.
|
|
|
30 |
|
|
|
31 |
2000-04-06 Bruce Guenter <bguenter@bguenter.pointsnorth.com>
|
|
|
32 |
|
|
|
33 |
* fdibuf_netstring.cc (getnetstring): Moved this routine into its
|
|
|
34 |
own source file.
|
|
|
35 |
|
|
|
36 |
* fdobuf.cc (write_large): Added this routine to write out a chunk
|
|
|
37 |
of data larger than the size of the buffer, to avoid doing extra
|
|
|
38 |
copies.
|
|
|
39 |
(write): Removed an extraneous code segment.
|
|
|
40 |
|
|
|
41 |
* fdobuf.h: Moved the fdobuf declarations here.
|
|
|
42 |
|
|
|
43 |
* fdibuf.h: Moved the fdibuf declarations here.
|
|
|
44 |
|
|
|
45 |
* fdbuf.h: Removed extraneous fdobuf declaration.
|
|
|
46 |
|
|
|
47 |
1999-07-08 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
48 |
|
|
|
49 |
* fdobuf.cc (write): Optimized this routine better for the case
|
|
|
50 |
where the amount of data to be written will fit inside the buffer.
|
|
|
51 |
|
|
|
52 |
1999-07-05 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
53 |
|
|
|
54 |
* fdbuf.h (fdobuf,fdibuf): Made some of the routines here virtual
|
|
|
55 |
in order to extend it properly.
|
|
|
56 |
Added "tell()" operations to both fdibuf and fdobuf to indicate
|
|
|
57 |
the current logical read/write point.
|
|
|
58 |
|
|
|
59 |
1999-07-04 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
60 |
|
|
|
61 |
* fdobuf_chownmod.cc: Added two new routines chown and chmod,
|
|
|
62 |
which operate directly on the open fd.
|
|
|
63 |
|
|
|
64 |
1999-06-30 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
65 |
|
|
|
66 |
* fdibuf_mystring.cc (getline): Make this routine return the
|
|
|
67 |
number of bytes actually read, including the delimiter, even
|
|
|
68 |
though the delimiter is not added to the returned string.
|
|
|
69 |
|
|
|
70 |
1999-06-29 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
71 |
|
|
|
72 |
* fdibuf.cc (fdibuf): Added a 'seekfwd' function to seek forwards
|
|
|
73 |
"o" bytes.
|
|
|
74 |
|
|
|
75 |
* fdibuf_mystring.cc (getline): Added locking and set the count
|
|
|
76 |
properly.
|
|
|
77 |
|
|
|
78 |
1999-06-28 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
79 |
|
|
|
80 |
* fdibuf.cc (get): Make sure count is set for get.
|
|
|
81 |
|
|
|
82 |
1999-06-06 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
83 |
|
|
|
84 |
* fdbuf.cc (fdbuf): Fixed long-standing bug -- I forgot to delete
|
|
|
85 |
the buffer in the destructor.
|
|
|
86 |
(close): Modified the code to ensure that the fd is not closed
|
|
|
87 |
twice (as would happen when destructing the fdbuf).
|
|
|
88 |
|
|
|
89 |
1999-05-31 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
90 |
|
|
|
91 |
* fdobuf.cc: Redefined flush as nflush; added sync code to nflush;
|
|
|
92 |
made flush and sync call nflush; added mutex lock calls to all
|
|
|
93 |
public methods.
|
|
|
94 |
|
|
|
95 |
* fdibuf.cc: Added mutex lock calls to all public methods.
|
|
|
96 |
|
|
|
97 |
* fdbuf.cc: Added debugging implementations of lock() and unlock()
|
|
|
98 |
mutex operators (to be removed before real use).
|
|
|
99 |
|
|
|
100 |
1999-05-28 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
101 |
|
|
|
102 |
* fdobuf.cc (fdobuf): Fixed missing initialization of bufpos in
|
|
|
103 |
one of the two constructors.
|
|
|
104 |
|
|
|
105 |
1999-05-01 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
106 |
|
|
|
107 |
* fdobuf.cc (fdobuf): Added an optional "mode" parameter which
|
|
|
108 |
defaults to 0666, which is the permissions for the new file.
|
|
|
109 |
(sync): Wrote this function to fsync the file descriptor.
|
|
|
110 |
|
|
|
111 |
1999-04-27 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
112 |
|
|
|
113 |
* fdbuf.h (fdobuf): Removed definition for sync and nonblock mode,
|
|
|
114 |
as they won't be handled correctly in the writing code.
|
|
|
115 |
|
|
|
116 |
1999-04-03 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
117 |
|
|
|
118 |
* fdobuf.cc (operator<<): Wrote an operator for signed and
|
|
|
119 |
unsigned longs, with overloaded functions for ints and shorts that
|
|
|
120 |
promote the parameters to longs.
|
|
|
121 |
(write): Wrote a write routine specifically for a single
|
|
|
122 |
character.
|
|
|
123 |
|
|
|
124 |
1999-04-01 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
125 |
|
|
|
126 |
* fdobuf.cc: Fixed handling of seek by adding a "bufpos" indicator
|
|
|
127 |
that points to the current position in the buffer at which writes
|
|
|
128 |
should go. buflength is effectively the maximum value of bufpos
|
|
|
129 |
between flushes.
|
|
|
130 |
|
|
|
131 |
* fdibuf.cc (get): Renamed getchar to get (to be potentially
|
|
|
132 |
overloaded with other types).
|
|
|
133 |
|
|
|
134 |
* fdbuf.h (fdbuf): Removed a bunch of write methods and replaced
|
|
|
135 |
them with "operator<<", with similar capability to iostreams
|
|
|
136 |
methods of the same names.
|
|
|
137 |
|
|
|
138 |
* fdobuf.cc (endl): Wrote this manipulator to write an end-of-line
|
|
|
139 |
and flush the buffer.
|
|
|
140 |
|
|
|
141 |
1999-03-31 Bruce Guenter <bguenter@mikhail.qcc.sk.ca>
|
|
|
142 |
|
|
|
143 |
* fdobuf_mystring.cc: Moved all the mystring-specific code from
|
|
|
144 |
fdobuf.cc into this module to lessen link problems.
|
|
|
145 |
|
|
|
146 |
* fdibuf_mystring.cc: Moved all the mystring-specific code from
|
|
|
147 |
fdibuf.cc into this module to lessen link problems.
|
|
|
148 |
|
|
|
149 |
* fdobuf.cc (seek): Wrote this seek routine to allow movement in
|
|
|
150 |
an output file buffer.
|
|
|
151 |
|
|
|
152 |
* fdibuf.cc (seek): Generalized the rewind routine to allow
|
|
|
153 |
arbitrary seeks. It also checks to see if the seek point is
|
|
|
154 |
within the current buffer and if so just repositions its
|
|
|
155 |
pointers.
|
|
|
156 |
|
|
|
157 |
* fdbuf.h: If BUFSIZE is not defined, set it here to 4096.
|
|
|
158 |
(class fdbuf ): Rename length, start, and size to buflength,
|
|
|
159 |
bufstart, and bufsize. Add a new field "offset" to indicate the
|
|
|
160 |
current file seek offset.
|
|
|
161 |
|