Name

ap_bfileno — get a file descriptor from a stream

Synopsis

int ap_bfileno(BUFF *fb, int direction)

direction is one of B_RD or B_WR. Returns the corresponding file descriptor.