Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/internal/array/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@ template isPostblitNoThrow(T) {
enum isPostblitNoThrow = isNoThrow!(T.init.__xpostblit);
else
enum isPostblitNoThrow = true;
};
}
2 changes: 1 addition & 1 deletion src/core/stdc/errno.d
Original file line number Diff line number Diff line change
Expand Up @@ -1757,7 +1757,7 @@ else version (Solaris)
enum ECONNREFUSED = 146 /** Connection refused */;
enum EHOSTDOWN = 147 /** Host is down */;
enum EHOSTUNREACH = 148 /** No route to host */;
enum EWOULDBLOCK = EAGAIN; /** Resource temporarily unavailable */;
enum EWOULDBLOCK = EAGAIN /** Resource temporarily unavailable */;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a weird wait to document symbol though. 👍 for making it consistent, but does it even work ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That stood out to me too, but I think fix in a separate PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, those comments need to be after the semicolon but thats for another PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if those DDocs are used, that's in version(Solaris). Probably it was that way in the original.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #3088

enum EALREADY = 149 /** operation already in progress */;
enum EINPROGRESS = 150 /** operation now in progress */;
enum ESTALE = 151 /** Stale NFS file handle */;
Expand Down
8 changes: 4 additions & 4 deletions src/core/stdc/fenv.d
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ else version (NetBSD)
uint status; /* Status word register */
uint tag; /* Tag word register */
uint[4] others; /* EIP, Pointer Selector, etc */
};
}
_x87 x87;

uint mxcsr; /* Control and status register */
Expand All @@ -256,10 +256,10 @@ else version (NetBSD)
ushort tag; /* Tag word register */
ushort unused3;
uint[4] others; /* EIP, Pointer Selector, etc */
};
}
_x87 x87;
uint mxcsr; /* Control and status register */
};
}

}

Expand Down Expand Up @@ -291,7 +291,7 @@ else version (DragonFlyBSD)
uint status;
uint tag;
uint[4] others;
};
}
_x87 x87;

uint mxcsr;
Expand Down
2 changes: 1 addition & 1 deletion src/core/stdc/stdio.d
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ else version (DragonFlyBSD)
ssize_t s_len; // current length of string
int s_flags; // flags
ssize_t s_sect_len; // current length of section
};
}

enum {
SBUF_FIXEDLEN = 0x00000000, // fixed length buffer (default)
Expand Down
18 changes: 9 additions & 9 deletions src/core/sys/darwin/netinet/in_.d
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ static if (_DARWIN_C_SOURCE)
{
in_addr ip_dst;
char[40] ip_opts = 0;
};
}

enum IP_OPTIONS = 1;
enum IP_HDRINCL = 2;
Expand Down Expand Up @@ -307,37 +307,37 @@ static if (_DARWIN_C_SOURCE)
{
in_addr imr_multiaddr;
in_addr imr_interface;
};
}

struct ip_mreqn
{
in_addr imr_multiaddr;
in_addr imr_address;
int imr_ifindex;
};
}

struct ip_mreq_source
{
align(4):
in_addr imr_multiaddr;
in_addr imr_sourceaddr;
in_addr imr_interface;
};
}

struct group_req
{
align(4):
uint gr_interface;
sockaddr_storage gr_group;
};
}

struct group_source_req
{
align(4):
uint gsr_interface;
sockaddr_storage gsr_group;
sockaddr_storage gsr_source;
};
}

int setipv4sourcefilter(int, in_addr, in_addr, uint, uint, in_addr*);
int getipv4sourcefilter(int, in_addr, in_addr, uint*, uint*, in_addr*);
Expand All @@ -357,7 +357,7 @@ static if (_DARWIN_C_SOURCE)
uint ipi_ifindex;
in_addr ipi_spec_dst;
in_addr ipi_addr;
};
}

enum IPPROTO_MAXID = IPPROTO_AH + 1;

Expand Down Expand Up @@ -524,13 +524,13 @@ static if (_DARWIN_C_SOURCE)
{
in6_addr ipi6_addr;
uint ipi6_ifindex;
};
}

struct ip6_mtuinfo
{
sockaddr_in6 ip6m_addr;
uint ip6m_mtu;
};
}

enum IPV6_PORTRANGE_DEFAULT = 0;
enum IPV6_PORTRANGE_HIGH = 1;
Expand Down
8 changes: 4 additions & 4 deletions src/core/sys/dragonflybsd/dlfcn.d
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct Dl_info {
void *dli_fbase; /* Base address of shared object. */
const(char) *dli_sname; /* Name of nearest symbol. */
void *dli_saddr; /* Address of nearest symbol. */
};
}


/*
Expand All @@ -59,13 +59,13 @@ struct Dl_info {
struct Dl_serpath {
char * dls_name; /* single search path entry */
uint dls_flags; /* path information */
};
}

struct Dl_serinfo {
size_t dls_size; /* total buffer size */
uint dls_cnt; /* number of path entries */
Dl_serpath[1] dls_serpath; /* there may be more than one */
};
}

/*-
* The actual type declared by this typedef is immaterial, provided that
Expand All @@ -78,7 +78,7 @@ struct Dl_serinfo {
*/
struct __dlfunc_arg {
int __dlfunc_dummy;
};
}

alias dlfunc_t = void function(__dlfunc_arg);

Expand Down
14 changes: 7 additions & 7 deletions src/core/sys/dragonflybsd/netinet/in_.d
Original file line number Diff line number Diff line change
Expand Up @@ -264,34 +264,34 @@ struct ip_mreq
{
in_addr imr_multiaddr;
in_addr imr_interface;
};
}

struct ip_mreqn
{
in_addr imr_multiaddr;
in_addr imr_address;
int imr_ifindex;
};
}

struct ip_mreq_source
{
in_addr imr_multiaddr;
in_addr imr_sourceaddr;
in_addr imr_interface;
};
}

struct group_req
{
uint gr_interface;
sockaddr_storage gr_group;
};
}

struct group_source_req
{
uint gsr_interface;
sockaddr_storage gsr_group;
sockaddr_storage gsr_source;
};
}

int setipv4sourcefilter(int, in_addr, in_addr, uint, uint, in_addr*);
int getipv4sourcefilter(int, in_addr, in_addr, uint*, uint*, in_addr*);
Expand Down Expand Up @@ -450,13 +450,13 @@ struct in6_pktinfo
{
in6_addr ipi6_addr;
uint ipi6_ifindex;
};
}

struct ip6_mtuinfo
{
sockaddr_in6 ip6m_addr;
uint ip6m_mtu;
};
}

enum IPV6_PORTRANGE_DEFAULT = 0;
enum IPV6_PORTRANGE_HIGH = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/core/sys/dragonflybsd/sys/link_elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct r_debug
int r_version;
link_map* r_map;
void function(r_debug*, link_map*) r_brk;
};
}

struct dl_phdr_info
{
Expand All @@ -70,7 +70,7 @@ struct dl_phdr_info
uint64_t dlpi_subs;
size_t dlpi_tls_modid;
void* dlpi_tls_data;
};
}


private alias int function(dl_phdr_info*, size_t, void *) dl_iterate_phdr_cb;
Expand Down
8 changes: 4 additions & 4 deletions src/core/sys/freebsd/dlfcn.d
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static if (__BSD_VISIBLE)
void *dli_fbase; /* Base address of shared object. */
const(char) *dli_sname; /* Name of nearest symbol. */
void *dli_saddr; /* Address of nearest symbol. */
};
}

/*-
* The actual type declared by this typedef is immaterial, provided that
Expand All @@ -67,7 +67,7 @@ static if (__BSD_VISIBLE)
*/
struct __dlfunc_arg {
int __dlfunc_dummy;
};
}

alias dlfunc_t = void function(__dlfunc_arg);

Expand All @@ -77,13 +77,13 @@ static if (__BSD_VISIBLE)
struct Dl_serpath {
char * dls_name; /* single search path entry */
uint dls_flags; /* path information */
};
}

struct Dl_serinfo {
size_t dls_size; /* total buffer size */
uint dls_cnt; /* number of path entries */
Dl_serpath[1] dls_serpath; /* there may be more than one */
};
}
}

/* XSI functions first. */
Expand Down
14 changes: 7 additions & 7 deletions src/core/sys/freebsd/netinet/in_.d
Original file line number Diff line number Diff line change
Expand Up @@ -268,34 +268,34 @@ static if (__BSD_VISIBLE)
{
in_addr imr_multiaddr;
in_addr imr_interface;
};
}

struct ip_mreqn
{
in_addr imr_multiaddr;
in_addr imr_address;
int imr_ifindex;
};
}

struct ip_mreq_source
{
in_addr imr_multiaddr;
in_addr imr_sourceaddr;
in_addr imr_interface;
};
}

struct group_req
{
uint gr_interface;
sockaddr_storage gr_group;
};
}

struct group_source_req
{
uint gsr_interface;
sockaddr_storage gsr_group;
sockaddr_storage gsr_source;
};
}

int setipv4sourcefilter(int, in_addr, in_addr, uint, uint, in_addr*);
int getipv4sourcefilter(int, in_addr, in_addr, uint*, uint*, in_addr*);
Expand Down Expand Up @@ -463,13 +463,13 @@ static if (__POSIX_VISIBLE)
{
in6_addr ipi6_addr;
uint ipi6_ifindex;
};
}

struct ip6_mtuinfo
{
sockaddr_in6 ip6m_addr;
uint ip6m_mtu;
};
}

enum IPV6_PORTRANGE_DEFAULT = 0;
enum IPV6_PORTRANGE_HIGH = 1;
Expand Down
4 changes: 2 additions & 2 deletions src/core/sys/freebsd/sys/link_elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ struct r_debug
int r_version;
link_map* r_map;
void function(r_debug*, link_map*) r_brk;
};
}

struct dl_phdr_info
{
Expand All @@ -68,7 +68,7 @@ struct dl_phdr_info
uint64_t dlpi_subs;
size_t dlpi_tls_modid;
void* dlpi_tls_data;
};
}


private alias extern(C) int function(dl_phdr_info*, size_t, void *) dl_iterate_phdr_cb;
Expand Down
1 change: 0 additions & 1 deletion src/core/sys/linux/elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,6 @@ enum AT_EXECFN = 31;
enum AT_SYSINFO = 32;
enum AT_SYSINFO_EHDR = 33;

;
enum AT_L1I_CACHESHAPE = 34;
enum AT_L1D_CACHESHAPE = 35;
enum AT_L2_CACHESHAPE = 36;
Expand Down
2 changes: 1 addition & 1 deletion src/core/sys/linux/ifaddrs.d
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct ifaddrs

/// Address specific data
void* ifa_data;
};
}

/// Returns: linked list of ifaddrs structures describing interfaces
int getifaddrs(ifaddrs** );
Expand Down
Loading