Skip to content

Commit

Permalink
dill_maxfd moved into utils module
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <[email protected]>
  • Loading branch information
sustrik committed Feb 24, 2017
1 parent b4800b6 commit 0c9b283
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 41 deletions.
5 changes: 2 additions & 3 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ libdill_la_SOURCES = \
cr.c \
epoll.h.inc \
epoll.c.inc \
fd.h \
fd.c \
handle.h \
handle.c \
kqueue.h.inc \
Expand All @@ -59,7 +57,8 @@ libdill_la_SOURCES = \
stack.c \
ctx.h \
ctx.c \
utils.h
utils.h \
utils.c

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libdill.pc
Expand Down
1 change: 0 additions & 1 deletion cr.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#endif

#include "cr.h"
#include "fd.h"
#include "pollset.h"
#include "stack.h"
#include "utils.h"
Expand Down
1 change: 0 additions & 1 deletion epoll.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <unistd.h>

#include "cr.h"
#include "fd.h"
#include "list.h"
#include "pollset.h"
#include "utils.h"
Expand Down
31 changes: 0 additions & 31 deletions fd.h

This file was deleted.

1 change: 0 additions & 1 deletion kqueue.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
#include <unistd.h>

#include "cr.h"
#include "fd.h"
#include "list.h"
#include "pollset.h"
#include "utils.h"
Expand Down
1 change: 0 additions & 1 deletion poll.c.inc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <string.h>

#include "cr.h"
#include "fd.h"
#include "list.h"
#include "pollset.h"
#include "utils.h"
Expand Down
3 changes: 1 addition & 2 deletions fd.c → utils.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2016 Martin Sustrik
Copyright (c) 2017 Martin Sustrik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
Expand All @@ -25,7 +25,6 @@
#include <sys/param.h>
#include <sys/resource.h>

#include "fd.h"
#include "utils.h"

int dill_maxfds(void) {
Expand Down
5 changes: 4 additions & 1 deletion utils.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Copyright (c) 2016 Martin Sustrik
Copyright (c) 2017 Martin Sustrik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -87,5 +87,8 @@ static inline uint64_t __rdtsc() {
#endif
#endif

/* Returns the maximum possible file descriptor number */
int dill_maxfds(void);

#endif

0 comments on commit 0c9b283

Please sign in to comment.