* 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.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/* arpa/inet.h
|
||||
|
||||
Copyright 1997, 1998, 2001 Red Hat, Inc.
|
||||
Copyright 1997, 1998, 2001, 2002, 2003 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@ -19,13 +19,13 @@ extern "C"
|
||||
#endif
|
||||
|
||||
#ifndef __INSIDE_CYGWIN_NET__
|
||||
unsigned long inet_addr (const char *);
|
||||
int inet_aton (const char *, struct in_addr *);
|
||||
unsigned long inet_lnaof (struct in_addr);
|
||||
struct in_addr inet_makeaddr (unsigned long , unsigned long);
|
||||
unsigned int inet_netof (struct in_addr);
|
||||
unsigned int inet_network (const char *);
|
||||
char *inet_ntoa (struct in_addr);
|
||||
in_addr_t inet_addr (const char *);
|
||||
int inet_aton (const char *, struct in_addr *);
|
||||
in_addr_t inet_lnaof (struct in_addr);
|
||||
struct in_addr inet_makeaddr (unsigned long , unsigned long);
|
||||
in_addr_t inet_netof (struct in_addr);
|
||||
in_addr_t inet_network (const char *);
|
||||
char *inet_ntoa (struct in_addr);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user