@@ -36,7 +36,7 @@ namespace mbed {
36
36
/* * Class FileHandle
37
37
*
38
38
* An abstract interface that represents operations on a file-like
39
- * object. The core functions are read, write, and seek, but only
39
+ * object. The core functions are read, write and seek, but only
40
40
* a subset of these operations can be provided.
41
41
*
42
42
* @note to create a file, @see File
@@ -50,7 +50,7 @@ class FileHandle : private NonCopyable<FileHandle> {
50
50
*
51
51
* Devices acting as FileHandles should follow POSIX semantics:
52
52
*
53
- * * if no data is available, and non-blocking set return -EAGAIN
53
+ * * if no data is available, and nonblocking set, return -EAGAIN
54
54
* * if no data is available, and blocking set, wait until some data is available
55
55
* * If any data is available, call returns immediately
56
56
*
@@ -65,8 +65,8 @@ class FileHandle : private NonCopyable<FileHandle> {
65
65
* Devices acting as FileHandles should follow POSIX semantics:
66
66
*
67
67
* * if blocking, block until all data is written
68
- * * if no data can be written, and non-blocking set, return -EAGAIN
69
- * * if some data can be written, and non-blocking set, write partial
68
+ * * if no data can be written, and nonblocking set, return -EAGAIN
69
+ * * if some data can be written, and nonblocking set, write partial
70
70
*
71
71
* @param buffer The buffer to write from
72
72
* @param size The number of bytes to write
@@ -181,11 +181,11 @@ class FileHandle : private NonCopyable<FileHandle> {
181
181
return size ();
182
182
}
183
183
184
- /* * Set blocking or non-blocking mode of the file operation like read/write.
185
- * Definition depends upon the subclass implementing FileHandle.
184
+ /* * Set blocking or nonblocking mode of the file operation like read/write.
185
+ * Definition depends on the subclass implementing FileHandle.
186
186
* The default is blocking.
187
187
*
188
- * @param blocking true for blocking mode, false for non-blocking mode.
188
+ * @param blocking true for blocking mode, false for nonblocking mode.
189
189
*
190
190
* @return 0 on success
191
191
* @return Negative error code on failure
@@ -195,19 +195,19 @@ class FileHandle : private NonCopyable<FileHandle> {
195
195
return blocking ? 0 : -ENOTTY;
196
196
}
197
197
198
- /* * Check current blocking or non-blocking mode for file operations.
198
+ /* * Check current blocking or nonblocking mode for file operations.
199
199
*
200
- * @return true for blocking mode, false for non-blocking mode.
200
+ * @return true for blocking mode, false for nonblocking mode.
201
201
*/
202
202
virtual bool is_blocking () const
203
203
{
204
204
return true ;
205
205
}
206
206
207
207
/* * Check for poll event flags
208
- * The input parameter can be used or ignored - the could always return all events,
209
- * or could check just the events listed in events.
210
- * Call is non-blocking - returns instantaneous state of events.
208
+ * You can use or ignore the input parameter. You can return all events
209
+ * or check just the events listed in events.
210
+ * Call is nonblocking - returns instantaneous state of events.
211
211
* Whenever an event occurs, the derived class should call the sigio() callback).
212
212
*
213
213
* @param events bitmask of poll events we're interested in - POLLIN/POLLOUT etc.
@@ -220,7 +220,7 @@ class FileHandle : private NonCopyable<FileHandle> {
220
220
return POLLIN | POLLOUT;
221
221
}
222
222
223
- /* * Definition depends upon the subclass implementing FileHandle.
223
+ /* * Definition depends on the subclass implementing FileHandle.
224
224
* For example, if the FileHandle is of type Stream, writable() could return
225
225
* true when there is ample buffer space available for write() calls.
226
226
*
@@ -231,7 +231,7 @@ class FileHandle : private NonCopyable<FileHandle> {
231
231
return poll (POLLOUT) & POLLOUT;
232
232
}
233
233
234
- /* * Definition depends upon the subclass implementing FileHandle.
234
+ /* * Definition depends on the subclass implementing FileHandle.
235
235
* For example, if the FileHandle is of type Stream, readable() could return
236
236
* true when there is something available to read.
237
237
*
@@ -250,11 +250,11 @@ class FileHandle : private NonCopyable<FileHandle> {
250
250
* The callback may be called in an interrupt context and should not
251
251
* perform expensive operations.
252
252
*
253
- * Note! This is not intended as an attach-like asynchronous api , but rather
254
- * as a building block for constructing such functionality.
253
+ * Note! This is not intended as an attach-like asynchronous API , but rather
254
+ * as a building block for constructing such functionality.
255
255
*
256
256
* The exact timing of when the registered function
257
- * is called is not guaranteed and susceptible to change. It should be used
257
+ * is called is not guaranteed and is susceptible to change. It should be used
258
258
* as a cue to make read/write/poll calls to find the current state.
259
259
*
260
260
* @param func Function to call on state change
0 commit comments