-
-
Notifications
You must be signed in to change notification settings - Fork 422
Conversation
src/core/sys/posix/arpa/inet.d
Outdated
| int inet_pton(int, in char*, void*); | ||
| } | ||
|
|
||
| else version( Solaris ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've also added a solaris path here. :-)
ac5855e
to
5561966
Compare
src/core/sys/posix/dirent.d
Outdated
| else | ||
| { | ||
| DIR* opendir(in char*); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The usual penance if you discover a discrepancy on one platform is to write a version block for each known tested platform, using static assert (0) for the else branch.
This alerts the next person who will port this code to go check and verify that it's defined properly.
|
to ibuclaw : fixed (remove solaris duplicate block) |
src/core/sys/posix/arpa/inet.d
Outdated
| @@ -124,6 +124,31 @@ else version( FreeBSD ) | |||
| const(char)* inet_ntop(int, in void*, char*, socklen_t); | |||
| int inet_pton(int, in char*, void*); | |||
| } | |||
| else version( NetBSD ) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am aware that druntime is inconsistent everywhere about this. But I'd rather all new code follow the same (standard?) convention for version statements.
else version (NetBSD)
{
|
Skimmed just to make sure all changes are isolated to |
5561966
to
e4e3106
Compare
|
replace |
e4e3106
to
3b9371e
Compare
3b9371e
to
b74c724
Compare
4a9ff40
to
95459fc
Compare
95459fc
to
4e7509d
Compare
4e7509d
to
a21504b
Compare
Codecov Report
Continue to review full report at Codecov.
|
a21504b
to
62f5ad9
Compare
|
Looks like you missed one blank line. Other than that looks ok to me. |
|
Iain I added empty line to termios.d and remove one blank line in poll.d |
62f5ad9
to
625398d
Compare
625398d
to
3cd656d
Compare
|
@nrTQgc - there was a comment from @joakim-noah that was listed as not updated last time I looked. I can't see it now so I guess all is OK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed to make sure changes are encapsulated and for formatting: once these changes are made, can approve.
src/core/sys/posix/pthread.d
Outdated
| enum PTHREAD_COND_INITIALIZER = pthread_cond_t(0x55550005); | ||
| enum PTHREAD_RWLOCK_INITIALIZER = pthread_rwlock_t(0x99990009); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove blank line
src/core/sys/posix/signal.d
Outdated
| int sa_flags; | ||
| } | ||
| } | ||
| else version(NetBSD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be OpenBSD
src/core/sys/posix/signal.d
Outdated
| int sigpause(int); | ||
| int sigrelse(int); | ||
| } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blank line
3cd656d
to
dd13e98
Compare
|
joakim-noah - I fixed you issues |
|
Merging as it has been okay'd by two reviewers. |
A part of NetBSD support (joakim-noah suggests to split original big pull request)