mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 21:00:33 +09:00
define our own platform-independent S_IF macros
Signed-off-by: Tilo Eckert <tilo.eckert@flam.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
267fe02088
commit
71d86be42e
@@ -962,6 +962,16 @@ void sftp_handle_remove(sftp_session sftp, void *handle);
|
||||
#define SSH_FXF_EXCL 0x20
|
||||
#define SSH_FXF_TEXT 0x40
|
||||
|
||||
/* file type flags */
|
||||
#define SSH_S_IFMT 00170000
|
||||
#define SSH_S_IFSOCK 0140000
|
||||
#define SSH_S_IFLNK 0120000
|
||||
#define SSH_S_IFREG 0100000
|
||||
#define SSH_S_IFBLK 0060000
|
||||
#define SSH_S_IFDIR 0040000
|
||||
#define SSH_S_IFCHR 0020000
|
||||
#define SSH_S_IFIFO 0010000
|
||||
|
||||
/* rename flags */
|
||||
#define SSH_FXF_RENAME_OVERWRITE 0x00000001
|
||||
#define SSH_FXF_RENAME_ATOMIC 0x00000002
|
||||
|
||||
Reference in New Issue
Block a user