The FreeRADIUS server $Id: f3670dba8951ca10eb4948feb3dc3db9423a334f $
Loading...
Searching...
No Matches
Functions
fd_write.h File Reference

Common finalization code for the FD bio write functions. More...

#include <freeradius-devel/bio/fd_errno.h>
+ Include dependency graph for fd_write.h:

Go to the source code of this file.

Functions

static bool fr_bio_fd_write_retry (fr_bio_fd_t *my, ssize_t *rcode_p, int *tries_p, size_t size)
 Common finalization code for the write functions.
 

Detailed Description

Common finalization code for the FD bio write functions.

Id
8560f46f6f0b022f601297bb4e85a5d126703a0e

Definition in file fd_write.h.

Function Documentation

◆ fr_bio_fd_write_retry()

static bool fr_bio_fd_write_retry ( fr_bio_fd_t my,
ssize_t rcode_p,
int *  tries_p,
size_t  size 
)
inlinestatic

Common finalization code for the write functions.

Todo:
  • do we want the callbacks to notify the previous BIO in the chain? That way the top-level BIO can notify the application.
Parameters
mythe FD bio.
[in,out]rcode_pin: the write() return code. out: what to return to the application.
[in,out]tries_phow many times we have retried on EINTR.
sizehow many bytes the application asked us to write.
Returns
  • false return *rcode_p to the application.
  • true the write was interrupted, redo it.

Definition at line 42 of file fd_write.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: