summaryrefslogtreecommitdiff
path: root/source3/smbd/globals.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-02-03 21:55:02 +0100
committerVolker Lendecke <vlendec@samba.org>2011-02-28 16:40:19 +0100
commit9758afd47e12513c966aab7431dd674ce954cc59 (patch)
tree2753ceb779e9ce2eb1e3333a77081f56f5ad7bf1 /source3/smbd/globals.h
parentea5e1c5ecb7ab897a684bda88a49bb26fb557eb0 (diff)
downloadsamba-9758afd47e12513c966aab7431dd674ce954cc59.tar.gz
samba-9758afd47e12513c966aab7431dd674ce954cc59.tar.bz2
samba-9758afd47e12513c966aab7431dd674ce954cc59.zip
s3: Use poll in smbd
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r--source3/smbd/globals.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h
index c326846825..b10268e6d7 100644
--- a/source3/smbd/globals.h
+++ b/source3/smbd/globals.h
@@ -18,6 +18,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include "system/select.h"
+
#if defined(WITH_AIO)
struct aio_extra;
extern struct aio_extra *aio_list_head;
@@ -456,6 +458,12 @@ struct smbd_server_connection {
bool using_smb2;
int trans_num;
+ /*
+ * Cache for calling poll(2) to avoid allocations in our
+ * central event loop
+ */
+ struct pollfd *pfds;
+
struct files_struct *files;
struct bitmap *file_bmap;
int real_max_open_files;