@@ -202,86 +202,91 @@ pub const LP_CLONE_MXIO_CWD: u32 = 0x0002;
202
202
203
203
// ERR_NO_RESOURCES: The system was not able to allocate some resource
204
204
// needed for the operation.
205
- #[ allow( unused) ] pub const ERR_NO_RESOURCES : mx_status_t = -5 ;
205
+ #[ allow( unused) ] pub const ERR_NO_RESOURCES : mx_status_t = -3 ;
206
206
207
207
// ERR_NO_MEMORY: The system was not able to allocate memory needed
208
208
// for the operation.
209
209
#[ allow( unused) ] pub const ERR_NO_MEMORY : mx_status_t = -4 ;
210
210
211
211
// ERR_CALL_FAILED: The second phase of mx_channel_call(; did not complete
212
212
// successfully.
213
- #[ allow( unused) ] pub const ERR_CALL_FAILED : mx_status_t = -53 ;
213
+ #[ allow( unused) ] pub const ERR_CALL_FAILED : mx_status_t = -5 ;
214
+
215
+ // ERR_INTERRUPTED_RETRY: The system call was interrupted, but should be
216
+ // retried. This should not be seen outside of the VDSO.
217
+ #[ allow( unused) ] pub const ERR_INTERRUPTED_RETRY : mx_status_t = -6 ;
214
218
215
219
// ======= Parameter errors =======
216
220
// ERR_INVALID_ARGS: an argument is invalid, ex. null pointer
217
221
#[ allow( unused) ] pub const ERR_INVALID_ARGS : mx_status_t = -10 ;
218
222
223
+ // ERR_BAD_HANDLE: A specified handle value does not refer to a handle.
224
+ #[ allow( unused) ] pub const ERR_BAD_HANDLE : mx_status_t = -11 ;
225
+
219
226
// ERR_WRONG_TYPE: The subject of the operation is the wrong type to
220
227
// perform the operation.
221
228
// Example: Attempting a message_read on a thread handle.
222
- #[ allow( unused) ] pub const ERR_WRONG_TYPE : mx_status_t = -54 ;
229
+ #[ allow( unused) ] pub const ERR_WRONG_TYPE : mx_status_t = -12 ;
223
230
224
231
// ERR_BAD_SYSCALL: The specified syscall number is invalid.
225
- #[ allow( unused) ] pub const ERR_BAD_SYSCALL : mx_status_t = -11 ;
226
-
227
- // ERR_BAD_HANDLE: A specified handle value does not refer to a handle.
228
- #[ allow( unused) ] pub const ERR_BAD_HANDLE : mx_status_t = -12 ;
232
+ #[ allow( unused) ] pub const ERR_BAD_SYSCALL : mx_status_t = -13 ;
229
233
230
234
// ERR_OUT_OF_RANGE: An argument is outside the valid range for this
231
235
// operation.
232
- #[ allow( unused) ] pub const ERR_OUT_OF_RANGE : mx_status_t = -13 ;
236
+ #[ allow( unused) ] pub const ERR_OUT_OF_RANGE : mx_status_t = -14 ;
233
237
234
238
// ERR_BUFFER_TOO_SMALL: A caller provided buffer is too small for
235
239
// this operation.
236
- #[ allow( unused) ] pub const ERR_BUFFER_TOO_SMALL : mx_status_t = -14 ;
240
+ #[ allow( unused) ] pub const ERR_BUFFER_TOO_SMALL : mx_status_t = -15 ;
237
241
238
242
// ======= Precondition or state errors =======
239
243
// ERR_BAD_STATE: operation failed because the current state of the
240
244
// object does not allow it, or a precondition of the operation is
241
245
// not satisfied
242
246
#[ allow( unused) ] pub const ERR_BAD_STATE : mx_status_t = -20 ;
243
247
248
+ // ERR_TIMED_OUT: The time limit for the operation elapsed before
249
+ // the operation completed.
250
+ #[ allow( unused) ] pub const ERR_TIMED_OUT : mx_status_t = -21 ;
251
+
252
+ // ERR_SHOULD_WAIT: The operation cannot be performed currently but
253
+ // potentially could succeed if the caller waits for a prerequisite
254
+ // to be satisfied, for example waiting for a handle to be readable
255
+ // or writable.
256
+ // Example: Attempting to read from a message pipe that has no
257
+ // messages waiting but has an open remote will return ERR_SHOULD_WAIT.
258
+ // Attempting to read from a message pipe that has no messages waiting
259
+ // and has a closed remote end will return ERR_REMOTE_CLOSED.
260
+ #[ allow( unused) ] pub const ERR_SHOULD_WAIT : mx_status_t = -22 ;
261
+
262
+ // ERR_CANCELED: The in-progress operation (e.g. a wait) has been
263
+ // // canceled.
264
+ #[ allow( unused) ] pub const ERR_CANCELED : mx_status_t = -23 ;
265
+
266
+ // ERR_PEER_CLOSED: The operation failed because the remote end
267
+ // of the subject of the operation was closed.
268
+ #[ allow( unused) ] pub const ERR_PEER_CLOSED : mx_status_t = -24 ;
269
+
244
270
// ERR_NOT_FOUND: The requested entity is not found.
245
- #[ allow( unused) ] pub const ERR_NOT_FOUND : mx_status_t = -3 ;
271
+ #[ allow( unused) ] pub const ERR_NOT_FOUND : mx_status_t = -25 ;
246
272
247
273
// ERR_ALREADY_EXISTS: An object with the specified identifier
248
274
// already exists.
249
275
// Example: Attempting to create a file when a file already exists
250
276
// with that name.
251
- #[ allow( unused) ] pub const ERR_ALREADY_EXISTS : mx_status_t = -15 ;
277
+ #[ allow( unused) ] pub const ERR_ALREADY_EXISTS : mx_status_t = -26 ;
252
278
253
279
// ERR_ALREADY_BOUND: The operation failed because the named entity
254
280
// is already owned or controlled by another entity. The operation
255
281
// could succeed later if the current owner releases the entity.
256
- #[ allow( unused) ] pub const ERR_ALREADY_BOUND : mx_status_t = -16 ;
257
-
258
- // ERR_TIMED_OUT: The time limit for the operation elapsed before
259
- // the operation completed.
260
- #[ allow( unused) ] pub const ERR_TIMED_OUT : mx_status_t = -23 ;
261
-
262
- // ERR_HANDLE_CLOSED: a handle being waited on was closed
263
- #[ allow( unused) ] pub const ERR_HANDLE_CLOSED : mx_status_t = -24 ;
264
-
265
- // ERR_REMOTE_CLOSED: The operation failed because the remote end
266
- // of the subject of the operation was closed.
267
- #[ allow( unused) ] pub const ERR_REMOTE_CLOSED : mx_status_t = -25 ;
282
+ #[ allow( unused) ] pub const ERR_ALREADY_BOUND : mx_status_t = -27 ;
268
283
269
284
// ERR_UNAVAILABLE: The subject of the operation is currently unable
270
285
// to perform the operation.
271
286
// Note: This is used when there's no direct way for the caller to
272
287
// observe when the subject will be able to perform the operation
273
288
// and should thus retry.
274
- #[ allow( unused) ] pub const ERR_UNAVAILABLE : mx_status_t = -26 ;
275
-
276
- // ERR_SHOULD_WAIT: The operation cannot be performed currently but
277
- // potentially could succeed if the caller waits for a prerequisite
278
- // to be satisfied, for example waiting for a handle to be readable
279
- // or writable.
280
- // Example: Attempting to read from a message pipe that has no
281
- // messages waiting but has an open remote will return ERR_SHOULD_WAIT.
282
- // Attempting to read from a message pipe that has no messages waiting
283
- // and has a closed remote end will return ERR_REMOTE_CLOSED.
284
- #[ allow( unused) ] pub const ERR_SHOULD_WAIT : mx_status_t = -27 ;
289
+ #[ allow( unused) ] pub const ERR_UNAVAILABLE : mx_status_t = -28 ;
285
290
286
291
// ======= Permission check errors =======
287
292
// ERR_ACCESS_DENIED: The caller did not have permission to perform
@@ -312,3 +317,7 @@ pub const LP_CLONE_MXIO_CWD: u32 = 0x0002;
312
317
#[ allow( unused) ] pub const ERR_BAD_PATH : mx_status_t = -50 ;
313
318
#[ allow( unused) ] pub const ERR_NOT_DIR : mx_status_t = -51 ;
314
319
#[ allow( unused) ] pub const ERR_NOT_FILE : mx_status_t = -52 ;
320
+ // ERR_FILE_BIG: A file exceeds a filesystem-specific size limit.
321
+ #[ allow( unused) ] pub const ERR_FILE_BIG : mx_status_t = -53 ;
322
+ // ERR_NO_SPACE: Filesystem or device space is exhausted.
323
+ #[ allow( unused) ] pub const ERR_NO_SPACE : mx_status_t = -54 ;
0 commit comments