Skip to content

Commit 38fa4c5

Browse files
authored
Enable fileinfo attributes on windows (#142)
* Enable fileinfo and statinfo attributes on windows * Updated changelog
1 parent acc7c25 commit 38fa4c5

18 files changed

+630
-1208
lines changed

Changelog.rst

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change Log
22
=============
33

4+
0.26.0
5+
++++++
6+
7+
Changes
8+
-------
9+
10+
* Enabled ``ssh2.fileinfo.FileInfo`` attributes on Windows builds - #131.
11+
412

513
0.25.0
614
++++++

ssh2/agent.c

+16-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ssh2/c_ssh2.pxd

+1-18
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1616

1717
from libc.time cimport time_t
18-
from posix.types cimport blkcnt_t, blksize_t, dev_t, gid_t, ino_t, \
19-
nlink_t, time_t, uid_t
20-
2118
from c_stat cimport struct_stat
2219

2320

@@ -57,21 +54,7 @@ cdef extern from "libssh2.h" nogil:
5754
LIBSSH2_METHOD_LANG_CS
5855
LIBSSH2_METHOD_LANG_SC
5956

60-
# ctypedef libssh2_uint64_t libssh2_struct_stat_size
61-
ctypedef struct libssh2_struct_stat:
62-
dev_t st_dev
63-
ino_t st_ino
64-
unsigned long st_mode
65-
nlink_t st_nlink
66-
uid_t st_uid
67-
gid_t st_gid
68-
dev_t st_rdev
69-
libssh2_uint64_t st_size
70-
blksize_t st_blksize
71-
blkcnt_t st_blocks
72-
time_t st_atime
73-
time_t st_mtime
74-
time_t st_ctime
57+
ctypedef struct_stat libssh2_struct_stat
7558
ctypedef struct LIBSSH2_USERAUTH_KBDINT_PROMPT:
7659
char *text
7760
unsigned int length

ssh2/c_stat.pxd

+13-15
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
11
# This file is part of ssh2-python.
22
# Copyright (C) 2017 Panos Kittenis
3-
3+
#
44
# This library is free software; you can redistribute it and/or
55
# modify it under the terms of the GNU Lesser General Public
66
# License as published by the Free Software Foundation, version 2.1.
7-
7+
#
88
# This library is distributed in the hope that it will be useful,
99
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1010
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1111
# Lesser General Public License for more details.
12-
12+
#
1313
# You should have received a copy of the GNU Lesser General Public
1414
# License along with this library; if not, write to the Free Software
1515
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1616

1717
from libc.time cimport time_t
18-
from posix.types cimport blkcnt_t, blksize_t, dev_t, gid_t, ino_t, \
19-
nlink_t, off_t, time_t, uid_t, mode_t
2018

2119

2220
cdef extern from "<sys/stat.h>" nogil:
2321
cdef struct struct_stat "stat":
24-
dev_t st_dev
25-
ino_t st_ino
26-
mode_t st_mode
27-
nlink_t st_nlink
28-
uid_t st_uid
29-
gid_t st_gid
30-
dev_t st_rdev
31-
off_t st_size
32-
blksize_t st_blksize
33-
blkcnt_t st_blocks
22+
long st_dev
23+
unsigned long st_ino
24+
unsigned long st_mode
25+
long st_nlink
26+
long st_uid
27+
long st_gid
28+
long st_rdev
29+
unsigned long long st_size
30+
long st_blksize
31+
long st_blocks
3432
time_t st_atime
3533
time_t st_mtime
3634
time_t st_ctime

ssh2/channel.c

+16-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ssh2/error_codes.c

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)