diff options
author | Christopher Faylor <me@cgf.cx> | 2003-02-10 22:43:29 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-02-10 22:43:29 +0000 |
commit | 407b8df695d94e88aa686d3ad84b0d6ccd363739 (patch) | |
tree | 2c1521fddf3a95c954419279a4330c4b5be3cf92 /winsup/cygwin/security.cc | |
parent | eff24ab9c5e61bc5e29df2a82f7f941ac9ce6927 (diff) | |
download | cygnal-407b8df695d94e88aa686d3ad84b0d6ccd363739.tar.gz cygnal-407b8df695d94e88aa686d3ad84b0d6ccd363739.tar.bz2 cygnal-407b8df695d94e88aa686d3ad84b0d6ccd363739.zip |
* include/cygwin/in.h (in_attr_t): Define new type.
* include/arpa/inet.h (inet_addr): Change return type to in_addr_t.
(inet_lnaof): Ditto.
(inet_netof): Ditto.
(inet_network): Ditto.
* include/cygwin/types.h: Move many *_t typedefs here. Protect them with
ifdefs.
* fhandler_disk_file.cc (fhandler_disk_file::fstat): Change ntsec_atts to
mode_t.
* security.cc (get_attribute_from_acl): Accept mode_t attribute.
(get_nt_attribute): Ditto.
(get_file_attribute): Ditto.
(get_nt_object_attribute): Ditto.
(get_object_attribute): Ditto.
* security.h: Reflect above changes.
* syscalls.cc (chown_worker): Change attrib to mode_t.
Diffstat (limited to 'winsup/cygwin/security.cc')
-rw-r--r-- | winsup/cygwin/security.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/security.cc b/winsup/cygwin/security.cc index 33b529d61..35ac5cfac 100644 --- a/winsup/cygwin/security.cc +++ b/winsup/cygwin/security.cc @@ -1224,7 +1224,7 @@ write_sd (const char *file, PSECURITY_DESCRIPTOR sd_buf, DWORD sd_size) } static void -get_attribute_from_acl (int * attribute, PACL acl, PSID owner_sid, +get_attribute_from_acl (mode_t *attribute, PACL acl, PSID owner_sid, PSID group_sid, BOOL grp_member) { ACCESS_ALLOWED_ACE *ace; @@ -1319,7 +1319,7 @@ get_attribute_from_acl (int * attribute, PACL acl, PSID owner_sid, } static int -get_nt_attribute (const char *file, int *attribute, +get_nt_attribute (const char *file, mode_t *attribute, __uid32_t *uidret, __gid32_t *gidret) { if (!wincap.has_security ()) @@ -1387,7 +1387,7 @@ get_nt_attribute (const char *file, int *attribute, int get_file_attribute (int use_ntsec, const char *file, - int *attribute, __uid32_t *uidret, __gid32_t *gidret) + mode_t *attribute, __uid32_t *uidret, __gid32_t *gidret) { int res; @@ -1435,7 +1435,7 @@ get_file_attribute (int use_ntsec, const char *file, static int get_nt_object_attribute (HANDLE handle, SE_OBJECT_TYPE object_type, - int *attribute, __uid32_t *uidret, __gid32_t *gidret) + mode_t *attribute, __uid32_t *uidret, __gid32_t *gidret) { if (!wincap.has_security ()) return 0; @@ -1492,7 +1492,7 @@ get_nt_object_attribute (HANDLE handle, SE_OBJECT_TYPE object_type, int get_object_attribute (HANDLE handle, SE_OBJECT_TYPE object_type, - int *attribute, __uid32_t *uidret, __gid32_t *gidret) + mode_t *attribute, __uid32_t *uidret, __gid32_t *gidret) { if (allow_ntsec) { |