Lines Matching defs:fd
117 static int nsldapi_add_to_os_pollfds( int fd,
119 static int nsldapi_clear_from_os_pollfds( int fd,
121 static int nsldapi_find_in_os_pollfds( int fd,
331 /* connects. If the connect fails, the exception fd, eset, is */
1227 * returns 1 if "fd" was added to pollfds.
1232 nsldapi_add_to_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip,
1237 /* first we check to see if "fd" is already in our pollfds */
1240 if ( pip->ossi_pollfds[ i ].fd == fd ) {
1249 if ( pip->ossi_pollfds[ i ].fd == -1 && openslot == -1 ) {
1255 * "fd" is not currently being poll'd on -- add to array.
1279 pip->ossi_pollfds[ i ].fd = -1;
1284 pip->ossi_pollfds[ openslot ].fd = fd;
1292 * returns 1 if any "events" from "fd" were removed from pollfds
1293 * returns 0 of "fd" wasn't in pollfds or if events did not overlap.
1296 nsldapi_clear_from_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip,
1302 if ( pip->ossi_pollfds[i].fd == fd ) {
1306 pip->ossi_pollfds[i].fd = -1;
1315 return( 0 ); /* "fd" was not found */
1320 * returns 1 if any "revents" from "fd" were set in pollfds revents field.
1324 nsldapi_find_in_os_pollfds( int fd, struct nsldapi_os_statusinfo *pip,
1330 if ( pip->ossi_pollfds[i].fd == fd ) {
1339 return( 0 ); /* "fd" was not found */