GunZ Factor Forums

Go Back   GunZ Factor Forums > GunZFactor Forums > The Garrison

Become a Gold or Silver Member

Reply
 
Thread Tools
Old 04-09-2006, 11:56 PM   #1 (permalink)
Sil
Gunzfactorian Patriot
 
Sil's Avatar
 

Join Date: Apr 2006
Location: In a house?
Posts: 292
Sil is on a distinguished road.
Send a message via AIM to Sil Send a message via MSN to Sil
Default polls

can someone tell me how to make polls? sorry ima noob T_T
__________________
Sil is offline   Reply With Quote
Old 04-09-2006, 11:59 PM   #2 (permalink)
Gunzfactorian Guardian
 

Join Date: Feb 2006
Posts: 1,030
dexgod has much to be proud of.dexgod has much to be proud of.dexgod has much to be proud of.dexgod has much to be proud of.dexgod has much to be proud of.dexgod has much to be proud of.
Send a message via ICQ to dexgod
Default

Right!, good for you to want to know how to use polls instead of select, it's way much better.
man poll, or man epoll in Linux 2.6

#include <linux/poll.h>

int scmd_poll(struct file* filp , poll_table * pwait)

int canwrite, canread;
unsigned int mask=0;
scmd_dev_t * dev;

dev = (scmd_dev_t *) filp->private_data;

poll_wait(filp,&dev->inq, pwait);
poll_wait(filp,&dev->outq, pwait);
canwrite = ((dev->rp + SCMD_SIZE - dev->wp ) % SCMD_SIZE) != 1;
canread = (dev->rp != dev->wp);

if (canread) mask |= POLLIN | POLLRDNORM;
if (canwrite) mask |= POLLOUT | POLLWRNORM;

return mask;
}

---------------

Just kidding, i have no idea how to make polls in vBulletin, is it even enabled?

Cheers.

Last edited by MajorMK; 04-10-2006 at 02:50 PM. Reason: Double post. Please use the edit feature.
dexgod is offline   Reply With Quote
Old 04-10-2006, 12:01 AM   #3 (permalink)
Sil
Gunzfactorian Patriot
 
Sil's Avatar
 

Join Date: Apr 2006
Location: In a house?
Posts: 292
Sil is on a distinguished road.
Send a message via AIM to Sil Send a message via MSN to Sil
Default Re: polls

Quote:
Originally Posted by dexgod
Just kidding, i have no idea how to make polls in vBulletin, is it even enabled?

Cheers.
good cause ur first post was making you look like a computer nerd xD
__________________
Sil is offline   Reply With Quote
Old 04-10-2006, 12:43 AM   #4 (permalink)
Gunzfactorian Patriot
 
Dazrix's Avatar
 

Join Date: Mar 2006
Location: The Wonderful Land of Aus
Posts: 335
Dazrix has an air of menace about.
Send a message via AIM to Dazrix Send a message via MSN to Dazrix Send a message via Yahoo to Dazrix
Default Re: polls

I have a feeling thats how you really make a poll on his linux stuff :s but I wouldn't have a clue, I know nothing of computers.
__________________
IGN: Dazrix
Clan: Karma™
Server: Quest 3
disrepute me please
Dazrix is offline   Reply With Quote
Old 04-10-2006, 01:02 PM   #5 (permalink)
is not here!!
 
Dgaus's Avatar
 

Join Date: Feb 2006
Location: U.S.L.A.
Posts: 1,924
Dgaus is a glorious beacon of light.Dgaus is a glorious beacon of light.Dgaus is a glorious beacon of light.
Send a message via MSN to Dgaus
Default Re: polls

when creating a poll just go all the way down and click on add poll square thing =D... is like.. add a poll or something
Dgaus is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 08:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34