Changeset 2259
- Timestamp:
- Jul 1, 2007, 1:50:14 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/ipcparse.c
r2245 r2259 800 800 tr_bencInitStr( item, "io-space", -1, 1 ); 801 801 } 802 else if( TR_ERROR_ISSET( TR_ERROR_IO_RESOURCES, error ) ) 803 { 804 tr_bencInitStr( item, "io-resources", -1, 1 ); 802 else if( TR_ERROR_ISSET( TR_ERROR_IO_FILE_TOO_BIG, error ) ) 803 { 804 tr_bencInitStr( item, "io-file-too-big", -1, 1 ); 805 } 806 else if( TR_ERROR_ISSET( TR_ERROR_IO_OPEN_FILES, error ) ) 807 { 808 tr_bencInitStr( item, "io-open-files", -1, 1 ); 805 809 } 806 810 else if( TR_ERROR_ISSET( TR_ERROR_IO_MASK, error ) ) -
trunk/libtransmission/transmission.h
r2245 r2259 78 78 /* I/O errors */ 79 79 #define TR_ERROR_IO_MASK 0x000000FF 80 #define TR_ERROR_IO_PARENT 0x80000001 81 #define TR_ERROR_IO_PERMISSIONS 0x80000002 82 #define TR_ERROR_IO_SPACE 0x80000004 83 #define TR_ERROR_IO_RESOURCES 0x80000008 84 #define TR_ERROR_IO_DUP_DOWNLOAD 0x8000000A 85 #define TR_ERROR_IO_OTHER 0x80000010 80 #define TR_ERROR_IO_PARENT ((1<<31) | (1<<0)) 81 #define TR_ERROR_IO_PERMISSIONS ((1<<31) | (1<<1)) 82 #define TR_ERROR_IO_SPACE ((1<<31) | (1<<2)) 83 #define TR_ERROR_IO_FILE_TOO_BIG ((1<<31) | (1<<3)) 84 #define TR_ERROR_IO_OPEN_FILES ((1<<31) | (1<<4)) 85 #define TR_ERROR_IO_DUP_DOWNLOAD ((1<<31) | (1<<5)) 86 #define TR_ERROR_IO_OTHER ((1<<31) | (1<<6)) 86 87 /* Misc */ 87 88 #define TR_ERROR_TC_MASK 0x00000F00 -
trunk/libtransmission/utils.c
r2252 r2259 343 343 return TR_ERROR_IO_SPACE; 344 344 case EMFILE: 345 return TR_ERROR_IO_FILE_TOO_BIG; 345 346 case EFBIG: 346 return TR_ERROR_IO_ RESOURCES;347 return TR_ERROR_IO_OPEN_FILES; 347 348 default: 348 349 tr_dbg( "generic i/o errno from errno: %s", strerror( errno ) ); … … 370 371 case TR_ERROR_IO_DUP_DOWNLOAD: 371 372 return "Already active transfer with same name and download folder"; 372 case TR_ERROR_IO_RESOURCES: 373 return "Insufficient resources"; 373 case TR_ERROR_IO_FILE_TOO_BIG: 374 return "File too large"; 375 case TR_ERROR_IO_OPEN_FILES: 376 return "Too many open files"; 374 377 case TR_ERROR_IO_OTHER: 375 378 return "Generic I/O error";
Note: See TracChangeset
for help on using the changeset viewer.