mirror of https://github.com/MidnightCommander/mc
Fix to not portable error codes in vfs.h. Instead of using existing values,
create new ones - by means ELAST+offset. Maybe, the better way for libvfs..
This commit is contained in:
parent
74c83737fd
commit
9522710547
|
@ -1,3 +1,9 @@
|
|||
Sun Nov 29 02:54:54 1998 Timur I. Bakeyev <timur@com.bat.ru>
|
||||
|
||||
* vfs.h: (Temporary?) fix to the compiling error: Some of the error
|
||||
codes, defined here are Linux specific and unknown to other systems.
|
||||
Changed to #ifdef's with assigning new codes by means ELAST+offset.
|
||||
|
||||
Tue 24 Nov 12:43:20 1998 Peter Kleiweg <kleiweg@let.rug.nl>
|
||||
|
||||
* vfs.c (vfs_parse_ls_lga): ignore trailing + in permission string
|
||||
|
|
19
vfs/vfs.h
19
vfs/vfs.h
|
@ -403,9 +403,28 @@ extern void mc_vfs_done( void );
|
|||
|
||||
/* And now some defines for our errors. */
|
||||
|
||||
#ifdef ENOSYS
|
||||
#define E_NOTSUPP ENOSYS /* for use in vfs when module does not provide function */
|
||||
#else
|
||||
#define E_NOTSUPP (ELAST+1) /* for use in vfs when module does not provide function */
|
||||
#endif
|
||||
|
||||
#ifdef ENOMSG
|
||||
#define E_UNKNOWN ENOMSG /* if we do not know what error happened */
|
||||
#else
|
||||
#define E_UNKNOWN (ELAST+2) /* if we do not know what error happened */
|
||||
#endif
|
||||
|
||||
#ifdef EREMOTEIO
|
||||
#define E_REMOTE EREMOTEIO /* if other side of ftp/fish reports error */
|
||||
#else
|
||||
#define E_REMOTE (ELAST+3) /* if other side of ftp/fish reports error */
|
||||
#endif
|
||||
|
||||
#ifdef EPROTO
|
||||
#define E_PROTO EPROTO /* if other side fails to follow protocol */
|
||||
#else
|
||||
#define E_PROTO (ELAST+4) /* if other side fails to follow protocol */
|
||||
#endif
|
||||
|
||||
#endif /* __VFS_H */
|
||||
|
|
Loading…
Reference in New Issue