Skip to content
Tcl Source Code Artifact [90853c0416]
Login

Artifact [90853c0416]

Artifact 90853c04163d368e3d7dab7eb162eb0990d398a7:

Ticket change [90853c0416] - Ticket [1602208fffffffff|1602208fff] <i>select() on wrong fd</i> status still Open with 5 other changes by dkf on 2006-11-24 18:11:53.
D 2006-11-24T18:11:53
J assignee kennykb
J icomment Logged\sIn:\sYES\s\nuser_id=79902\nOriginator:\sNO\n\nAssuming\sthat\s'fd_mask'\sis\sa\s32-bit\stype,\sit\sworks\sjust\sfine,\sand\sit\sallows\sup\sto\sMASK_SIZE*NBBY*sizeof(fd_mask)\sdescriptors,\swhich\swill\susually\sbe\s256\sor\smore\s(if\smy\sunderstanding\sof\stclUnixPort.h\sis\sright).\n\nThe\sbit\svariable\sis\sthe\smask\sto\suse\swithin\sa\svalue\sof\stype\sfd_mask,\sand\sthe\sindex\svariable\sindexes\sinto\san\sarray\s(actually\sthree\sarrays\sconcatenated)\sof\sthem.\n\s\s\s\s\s\s\s\sif\s(mask\s&\sTCL_READABLE)\s{\n\s\s\s\s\s\s\s\s\s\s\s\sreadyMasks[index]\s|=\sbit;\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sif\s(mask\s&\sTCL_WRITABLE)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s(readyMasks+MASK_SIZE)[index]\s|=\sbit;\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sif\s(mask\s&\sTCL_EXCEPTION)\s{\n\s\s\s\s\s\s\s\s\s\s\s\s(readyMasks+2*(MASK_SIZE))[index]\s|=\sbit;\n\s\s\s\s\s\s\s\s}\n\nThus,\ssuppose\swe're\stalking\sabout\sfd=35.\sIn\sthat\scase\s(with\snormal\sconstant\ssizes)\sbit==3\sand\sindex==1.\n\n(It\sprobably\sought\sto\sbe\srewritten\sto\suse\sthe\ssame\scode\sas\stclUnixNotfy.c\suses\sthough.\sThat's\smore\s"officially\scorrect".\sAssigning\sto\sthe\sperson\swho\sdid\sthat\schange\sfor\stheir\scomments.)\n
J login dkf
J mimetype text/plain
J username dkf
K 1602208fffffffffffffffffffffffffffffffff
U dkf
Z 470198b84ae2746a0e2d820a2f9c3f1d