Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 8129006

Browse files
committed
apply changes for netbsd
1 parent 378615b commit 8129006

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/core/sys/posix/pthread.d

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,6 @@ else version( FreeBSD )
450450
}
451451
else version(NetBSD)
452452
{
453-
alias void function(void*) _pthread_cleanup_routine;
454-
455453
struct _pthread_cleanup_store
456454
{
457455
void*[4] pthread_cleanup_pad;

src/core/sys/posix/sys/select.d

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,27 +236,27 @@ else version(NetBSD)
236236
__fd_mask[(FD_SETSIZE + (_NFDBITS - 1)) / _NFDBITS] __fds_bits;
237237
}
238238

239-
extern (D) __fd_mask __fdset_mask(uint n)
239+
extern (D) __fd_mask __fdset_mask(uint n) pure
240240
{
241241
return cast(__fd_mask) 1 << (n % _NFDBITS);
242242
}
243243

244-
extern (D) void FD_CLR( int n, fd_set* p )
244+
extern (D) void FD_CLR( int n, fd_set* p ) pure
245245
{
246246
p.__fds_bits[n / _NFDBITS] &= ~__fdset_mask(n);
247247
}
248248

249-
extern (D) bool FD_ISSET( int n, const(fd_set)* p )
249+
extern (D) bool FD_ISSET( int n, const(fd_set)* p ) pure
250250
{
251251
return (p.__fds_bits[n / _NFDBITS] & __fdset_mask(n)) != 0;
252252
}
253253

254-
extern (D) void FD_SET( int n, fd_set* p )
254+
extern (D) void FD_SET( int n, fd_set* p ) pure
255255
{
256256
p.__fds_bits[n / _NFDBITS] |= __fdset_mask(n);
257257
}
258258

259-
extern (D) void FD_ZERO( fd_set* p )
259+
extern (D) void FD_ZERO( fd_set* p ) pure
260260
{
261261
fd_set *_p;
262262
size_t _n;

0 commit comments

Comments
 (0)