~ubuntu-branches/ubuntu/trusty/python3.4/trusty-proposed

« back to all changes in this revision

Viewing changes to Doc/library/errno.rst

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-25 09:44:27 UTC
  • Revision ID: package-import@ubuntu.com-20131125094427-lzxj8ap5w01lmo7f
Tags: upstream-3.4~b1
ImportĀ upstreamĀ versionĀ 3.4~b1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
:mod:`errno` --- Standard errno system symbols
 
2
==============================================
 
3
 
 
4
.. module:: errno
 
5
   :synopsis: Standard errno system symbols.
 
6
 
 
7
 
 
8
This module makes available standard ``errno`` system symbols. The value of each
 
9
symbol is the corresponding integer value. The names and descriptions are
 
10
borrowed from :file:`linux/include/errno.h`, which should be pretty
 
11
all-inclusive.
 
12
 
 
13
 
 
14
.. data:: errorcode
 
15
 
 
16
   Dictionary providing a mapping from the errno value to the string name in the
 
17
   underlying system.  For instance, ``errno.errorcode[errno.EPERM]`` maps to
 
18
   ``'EPERM'``.
 
19
 
 
20
To translate a numeric error code to an error message, use :func:`os.strerror`.
 
21
 
 
22
Of the following list, symbols that are not used on the current platform are not
 
23
defined by the module.  The specific list of defined symbols is available as
 
24
``errno.errorcode.keys()``.  Symbols available can include:
 
25
 
 
26
 
 
27
.. data:: EPERM
 
28
 
 
29
   Operation not permitted
 
30
 
 
31
 
 
32
.. data:: ENOENT
 
33
 
 
34
   No such file or directory
 
35
 
 
36
 
 
37
.. data:: ESRCH
 
38
 
 
39
   No such process
 
40
 
 
41
 
 
42
.. data:: EINTR
 
43
 
 
44
   Interrupted system call
 
45
 
 
46
 
 
47
.. data:: EIO
 
48
 
 
49
   I/O error
 
50
 
 
51
 
 
52
.. data:: ENXIO
 
53
 
 
54
   No such device or address
 
55
 
 
56
 
 
57
.. data:: E2BIG
 
58
 
 
59
   Arg list too long
 
60
 
 
61
 
 
62
.. data:: ENOEXEC
 
63
 
 
64
   Exec format error
 
65
 
 
66
 
 
67
.. data:: EBADF
 
68
 
 
69
   Bad file number
 
70
 
 
71
 
 
72
.. data:: ECHILD
 
73
 
 
74
   No child processes
 
75
 
 
76
 
 
77
.. data:: EAGAIN
 
78
 
 
79
   Try again
 
80
 
 
81
 
 
82
.. data:: ENOMEM
 
83
 
 
84
   Out of memory
 
85
 
 
86
 
 
87
.. data:: EACCES
 
88
 
 
89
   Permission denied
 
90
 
 
91
 
 
92
.. data:: EFAULT
 
93
 
 
94
   Bad address
 
95
 
 
96
 
 
97
.. data:: ENOTBLK
 
98
 
 
99
   Block device required
 
100
 
 
101
 
 
102
.. data:: EBUSY
 
103
 
 
104
   Device or resource busy
 
105
 
 
106
 
 
107
.. data:: EEXIST
 
108
 
 
109
   File exists
 
110
 
 
111
 
 
112
.. data:: EXDEV
 
113
 
 
114
   Cross-device link
 
115
 
 
116
 
 
117
.. data:: ENODEV
 
118
 
 
119
   No such device
 
120
 
 
121
 
 
122
.. data:: ENOTDIR
 
123
 
 
124
   Not a directory
 
125
 
 
126
 
 
127
.. data:: EISDIR
 
128
 
 
129
   Is a directory
 
130
 
 
131
 
 
132
.. data:: EINVAL
 
133
 
 
134
   Invalid argument
 
135
 
 
136
 
 
137
.. data:: ENFILE
 
138
 
 
139
   File table overflow
 
140
 
 
141
 
 
142
.. data:: EMFILE
 
143
 
 
144
   Too many open files
 
145
 
 
146
 
 
147
.. data:: ENOTTY
 
148
 
 
149
   Not a typewriter
 
150
 
 
151
 
 
152
.. data:: ETXTBSY
 
153
 
 
154
   Text file busy
 
155
 
 
156
 
 
157
.. data:: EFBIG
 
158
 
 
159
   File too large
 
160
 
 
161
 
 
162
.. data:: ENOSPC
 
163
 
 
164
   No space left on device
 
165
 
 
166
 
 
167
.. data:: ESPIPE
 
168
 
 
169
   Illegal seek
 
170
 
 
171
 
 
172
.. data:: EROFS
 
173
 
 
174
   Read-only file system
 
175
 
 
176
 
 
177
.. data:: EMLINK
 
178
 
 
179
   Too many links
 
180
 
 
181
 
 
182
.. data:: EPIPE
 
183
 
 
184
   Broken pipe
 
185
 
 
186
 
 
187
.. data:: EDOM
 
188
 
 
189
   Math argument out of domain of func
 
190
 
 
191
 
 
192
.. data:: ERANGE
 
193
 
 
194
   Math result not representable
 
195
 
 
196
 
 
197
.. data:: EDEADLK
 
198
 
 
199
   Resource deadlock would occur
 
200
 
 
201
 
 
202
.. data:: ENAMETOOLONG
 
203
 
 
204
   File name too long
 
205
 
 
206
 
 
207
.. data:: ENOLCK
 
208
 
 
209
   No record locks available
 
210
 
 
211
 
 
212
.. data:: ENOSYS
 
213
 
 
214
   Function not implemented
 
215
 
 
216
 
 
217
.. data:: ENOTEMPTY
 
218
 
 
219
   Directory not empty
 
220
 
 
221
 
 
222
.. data:: ELOOP
 
223
 
 
224
   Too many symbolic links encountered
 
225
 
 
226
 
 
227
.. data:: EWOULDBLOCK
 
228
 
 
229
   Operation would block
 
230
 
 
231
 
 
232
.. data:: ENOMSG
 
233
 
 
234
   No message of desired type
 
235
 
 
236
 
 
237
.. data:: EIDRM
 
238
 
 
239
   Identifier removed
 
240
 
 
241
 
 
242
.. data:: ECHRNG
 
243
 
 
244
   Channel number out of range
 
245
 
 
246
 
 
247
.. data:: EL2NSYNC
 
248
 
 
249
   Level 2 not synchronized
 
250
 
 
251
 
 
252
.. data:: EL3HLT
 
253
 
 
254
   Level 3 halted
 
255
 
 
256
 
 
257
.. data:: EL3RST
 
258
 
 
259
   Level 3 reset
 
260
 
 
261
 
 
262
.. data:: ELNRNG
 
263
 
 
264
   Link number out of range
 
265
 
 
266
 
 
267
.. data:: EUNATCH
 
268
 
 
269
   Protocol driver not attached
 
270
 
 
271
 
 
272
.. data:: ENOCSI
 
273
 
 
274
   No CSI structure available
 
275
 
 
276
 
 
277
.. data:: EL2HLT
 
278
 
 
279
   Level 2 halted
 
280
 
 
281
 
 
282
.. data:: EBADE
 
283
 
 
284
   Invalid exchange
 
285
 
 
286
 
 
287
.. data:: EBADR
 
288
 
 
289
   Invalid request descriptor
 
290
 
 
291
 
 
292
.. data:: EXFULL
 
293
 
 
294
   Exchange full
 
295
 
 
296
 
 
297
.. data:: ENOANO
 
298
 
 
299
   No anode
 
300
 
 
301
 
 
302
.. data:: EBADRQC
 
303
 
 
304
   Invalid request code
 
305
 
 
306
 
 
307
.. data:: EBADSLT
 
308
 
 
309
   Invalid slot
 
310
 
 
311
 
 
312
.. data:: EDEADLOCK
 
313
 
 
314
   File locking deadlock error
 
315
 
 
316
 
 
317
.. data:: EBFONT
 
318
 
 
319
   Bad font file format
 
320
 
 
321
 
 
322
.. data:: ENOSTR
 
323
 
 
324
   Device not a stream
 
325
 
 
326
 
 
327
.. data:: ENODATA
 
328
 
 
329
   No data available
 
330
 
 
331
 
 
332
.. data:: ETIME
 
333
 
 
334
   Timer expired
 
335
 
 
336
 
 
337
.. data:: ENOSR
 
338
 
 
339
   Out of streams resources
 
340
 
 
341
 
 
342
.. data:: ENONET
 
343
 
 
344
   Machine is not on the network
 
345
 
 
346
 
 
347
.. data:: ENOPKG
 
348
 
 
349
   Package not installed
 
350
 
 
351
 
 
352
.. data:: EREMOTE
 
353
 
 
354
   Object is remote
 
355
 
 
356
 
 
357
.. data:: ENOLINK
 
358
 
 
359
   Link has been severed
 
360
 
 
361
 
 
362
.. data:: EADV
 
363
 
 
364
   Advertise error
 
365
 
 
366
 
 
367
.. data:: ESRMNT
 
368
 
 
369
   Srmount error
 
370
 
 
371
 
 
372
.. data:: ECOMM
 
373
 
 
374
   Communication error on send
 
375
 
 
376
 
 
377
.. data:: EPROTO
 
378
 
 
379
   Protocol error
 
380
 
 
381
 
 
382
.. data:: EMULTIHOP
 
383
 
 
384
   Multihop attempted
 
385
 
 
386
 
 
387
.. data:: EDOTDOT
 
388
 
 
389
   RFS specific error
 
390
 
 
391
 
 
392
.. data:: EBADMSG
 
393
 
 
394
   Not a data message
 
395
 
 
396
 
 
397
.. data:: EOVERFLOW
 
398
 
 
399
   Value too large for defined data type
 
400
 
 
401
 
 
402
.. data:: ENOTUNIQ
 
403
 
 
404
   Name not unique on network
 
405
 
 
406
 
 
407
.. data:: EBADFD
 
408
 
 
409
   File descriptor in bad state
 
410
 
 
411
 
 
412
.. data:: EREMCHG
 
413
 
 
414
   Remote address changed
 
415
 
 
416
 
 
417
.. data:: ELIBACC
 
418
 
 
419
   Can not access a needed shared library
 
420
 
 
421
 
 
422
.. data:: ELIBBAD
 
423
 
 
424
   Accessing a corrupted shared library
 
425
 
 
426
 
 
427
.. data:: ELIBSCN
 
428
 
 
429
   .lib section in a.out corrupted
 
430
 
 
431
 
 
432
.. data:: ELIBMAX
 
433
 
 
434
   Attempting to link in too many shared libraries
 
435
 
 
436
 
 
437
.. data:: ELIBEXEC
 
438
 
 
439
   Cannot exec a shared library directly
 
440
 
 
441
 
 
442
.. data:: EILSEQ
 
443
 
 
444
   Illegal byte sequence
 
445
 
 
446
 
 
447
.. data:: ERESTART
 
448
 
 
449
   Interrupted system call should be restarted
 
450
 
 
451
 
 
452
.. data:: ESTRPIPE
 
453
 
 
454
   Streams pipe error
 
455
 
 
456
 
 
457
.. data:: EUSERS
 
458
 
 
459
   Too many users
 
460
 
 
461
 
 
462
.. data:: ENOTSOCK
 
463
 
 
464
   Socket operation on non-socket
 
465
 
 
466
 
 
467
.. data:: EDESTADDRREQ
 
468
 
 
469
   Destination address required
 
470
 
 
471
 
 
472
.. data:: EMSGSIZE
 
473
 
 
474
   Message too long
 
475
 
 
476
 
 
477
.. data:: EPROTOTYPE
 
478
 
 
479
   Protocol wrong type for socket
 
480
 
 
481
 
 
482
.. data:: ENOPROTOOPT
 
483
 
 
484
   Protocol not available
 
485
 
 
486
 
 
487
.. data:: EPROTONOSUPPORT
 
488
 
 
489
   Protocol not supported
 
490
 
 
491
 
 
492
.. data:: ESOCKTNOSUPPORT
 
493
 
 
494
   Socket type not supported
 
495
 
 
496
 
 
497
.. data:: EOPNOTSUPP
 
498
 
 
499
   Operation not supported on transport endpoint
 
500
 
 
501
 
 
502
.. data:: EPFNOSUPPORT
 
503
 
 
504
   Protocol family not supported
 
505
 
 
506
 
 
507
.. data:: EAFNOSUPPORT
 
508
 
 
509
   Address family not supported by protocol
 
510
 
 
511
 
 
512
.. data:: EADDRINUSE
 
513
 
 
514
   Address already in use
 
515
 
 
516
 
 
517
.. data:: EADDRNOTAVAIL
 
518
 
 
519
   Cannot assign requested address
 
520
 
 
521
 
 
522
.. data:: ENETDOWN
 
523
 
 
524
   Network is down
 
525
 
 
526
 
 
527
.. data:: ENETUNREACH
 
528
 
 
529
   Network is unreachable
 
530
 
 
531
 
 
532
.. data:: ENETRESET
 
533
 
 
534
   Network dropped connection because of reset
 
535
 
 
536
 
 
537
.. data:: ECONNABORTED
 
538
 
 
539
   Software caused connection abort
 
540
 
 
541
 
 
542
.. data:: ECONNRESET
 
543
 
 
544
   Connection reset by peer
 
545
 
 
546
 
 
547
.. data:: ENOBUFS
 
548
 
 
549
   No buffer space available
 
550
 
 
551
 
 
552
.. data:: EISCONN
 
553
 
 
554
   Transport endpoint is already connected
 
555
 
 
556
 
 
557
.. data:: ENOTCONN
 
558
 
 
559
   Transport endpoint is not connected
 
560
 
 
561
 
 
562
.. data:: ESHUTDOWN
 
563
 
 
564
   Cannot send after transport endpoint shutdown
 
565
 
 
566
 
 
567
.. data:: ETOOMANYREFS
 
568
 
 
569
   Too many references: cannot splice
 
570
 
 
571
 
 
572
.. data:: ETIMEDOUT
 
573
 
 
574
   Connection timed out
 
575
 
 
576
 
 
577
.. data:: ECONNREFUSED
 
578
 
 
579
   Connection refused
 
580
 
 
581
 
 
582
.. data:: EHOSTDOWN
 
583
 
 
584
   Host is down
 
585
 
 
586
 
 
587
.. data:: EHOSTUNREACH
 
588
 
 
589
   No route to host
 
590
 
 
591
 
 
592
.. data:: EALREADY
 
593
 
 
594
   Operation already in progress
 
595
 
 
596
 
 
597
.. data:: EINPROGRESS
 
598
 
 
599
   Operation now in progress
 
600
 
 
601
 
 
602
.. data:: ESTALE
 
603
 
 
604
   Stale NFS file handle
 
605
 
 
606
 
 
607
.. data:: EUCLEAN
 
608
 
 
609
   Structure needs cleaning
 
610
 
 
611
 
 
612
.. data:: ENOTNAM
 
613
 
 
614
   Not a XENIX named type file
 
615
 
 
616
 
 
617
.. data:: ENAVAIL
 
618
 
 
619
   No XENIX semaphores available
 
620
 
 
621
 
 
622
.. data:: EISNAM
 
623
 
 
624
   Is a named type file
 
625
 
 
626
 
 
627
.. data:: EREMOTEIO
 
628
 
 
629
   Remote I/O error
 
630
 
 
631
 
 
632
.. data:: EDQUOT
 
633
 
 
634
   Quota exceeded
 
635