Linux Manuals session 3

Section 3: library functions

  • |

    iv_invalidate_now (3) Linux Manual Page

    iv_now, iv_validate_now, iv_invalidate_now – ivykis time handling Synopsis#include <iv.h> extern struct timespec iv_now; void iv_validate_now(void); void iv_invalidate_now(void); Descriptioniv_now is a global variable that reflects the current time-of-day. Applications written to the ivykis API generally require to know the current time-of-day in many places, and therefore effort is done to cache this quantity. The contents of…

  • |

    iv_inotify_watch_unregister (3) Linux Manual Page

    IV_INOTIFY_INIT, iv_inotify_register, iv_inotify_unregister, IV_INOTIFY_WATCH_INIT, iv_inotify_watch_register, iv_inotify_watch_unregister – ivykis inotify(7) wrapper Synopsis#include <iv_inotify.h> struct iv_inotify { };void IV_INOTIFY_INIT(struct iv_inotify *inotify); int iv_inotify_register(struct iv_inotify *inotify); void iv_inotify_unregister(struct iv_inotify *inotify); struct iv_inotify_watch { struct iv_inotify *inotify; const char *pathname; uint32_t mask; void *cookie; void (*handler)(void *, struct inotify_event *); };void IV_INOTIFY_WATCH_INIT(struct iv_inotify_watch *watch); int iv_inotify_watch_register(struct iv_inotify_watch *watch); int…

  • |

    iv_inotify_watch_register (3) Linux Manual Page

    IV_INOTIFY_INIT, iv_inotify_register, iv_inotify_unregister, IV_INOTIFY_WATCH_INIT, iv_inotify_watch_register, iv_inotify_watch_unregister – ivykis inotify(7) wrapper Synopsis#include <iv_inotify.h> struct iv_inotify { };void IV_INOTIFY_INIT(struct iv_inotify *inotify); int iv_inotify_register(struct iv_inotify *inotify); void iv_inotify_unregister(struct iv_inotify *inotify); struct iv_inotify_watch { struct iv_inotify *inotify; const char *pathname; uint32_t mask; void *cookie; void (*handler)(void *, struct inotify_event *); };void IV_INOTIFY_WATCH_INIT(struct iv_inotify_watch *watch); int iv_inotify_watch_register(struct iv_inotify_watch *watch); int…

  • |

    iv_inotify_unregister (3) Linux Manual Page

    IV_INOTIFY_INIT, iv_inotify_register, iv_inotify_unregister, IV_INOTIFY_WATCH_INIT, iv_inotify_watch_register, iv_inotify_watch_unregister – ivykis inotify(7) wrapper Synopsis#include <iv_inotify.h> struct iv_inotify { };void IV_INOTIFY_INIT(struct iv_inotify *inotify); int iv_inotify_register(struct iv_inotify *inotify); void iv_inotify_unregister(struct iv_inotify *inotify); struct iv_inotify_watch { struct iv_inotify *inotify; const char *pathname; uint32_t mask; void *cookie; void (*handler)(void *, struct inotify_event *); };void IV_INOTIFY_WATCH_INIT(struct iv_inotify_watch *watch); int iv_inotify_watch_register(struct iv_inotify_watch *watch); int…

  • |

    iv_inotify_register (3) Linux Manual Page

    IV_INOTIFY_INIT, iv_inotify_register, iv_inotify_unregister, IV_INOTIFY_WATCH_INIT, iv_inotify_watch_register, iv_inotify_watch_unregister – ivykis inotify(7) wrapper Synopsis#include <iv_inotify.h> struct iv_inotify { };void IV_INOTIFY_INIT(struct iv_inotify *inotify); int iv_inotify_register(struct iv_inotify *inotify); void iv_inotify_unregister(struct iv_inotify *inotify); struct iv_inotify_watch { struct iv_inotify *inotify; const char *pathname; uint32_t mask; void *cookie; void (*handler)(void *, struct inotify_event *); };void IV_INOTIFY_WATCH_INIT(struct iv_inotify_watch *watch); int iv_inotify_watch_register(struct iv_inotify_watch *watch); int…

  • |

    iv_inotify (3) Linux Manual Page

    IV_INOTIFY_INIT, iv_inotify_register, iv_inotify_unregister, IV_INOTIFY_WATCH_INIT, iv_inotify_watch_register, iv_inotify_watch_unregister – ivykis inotify(7) wrapper Synopsis#include <iv_inotify.h> struct iv_inotify { };void IV_INOTIFY_INIT(struct iv_inotify *inotify); int iv_inotify_register(struct iv_inotify *inotify); void iv_inotify_unregister(struct iv_inotify *inotify); struct iv_inotify_watch { struct iv_inotify *inotify; const char *pathname; uint32_t mask; void *cookie; void (*handler)(void *, struct inotify_event *); };void IV_INOTIFY_WATCH_INIT(struct iv_inotify_watch *watch); int iv_inotify_watch_register(struct iv_inotify_watch *watch); int…

  • |

    iv_inited (3) Linux Manual Page

    iv_init, iv_deinit, iv_inited – initialise and deinitialise ivykis Synopsis#include <iv.h> void iv_init(void); void iv_deinit(void); int iv_inited(void); Descriptioniv_init initialises the current thread’s ivykis event loop. Each thread that wants to use ivykis must call iv_init before any other ivykis functions are called. The very first call to iv_init in a process must run to completion before…

  • |

    iv_init (3) Linux Manual Page

    iv_init, iv_deinit, iv_inited – initialise and deinitialise ivykis Synopsis#include <iv.h> void iv_init(void); void iv_deinit(void); int iv_inited(void); Descriptioniv_init initialises the current thread’s ivykis event loop. Each thread that wants to use ivykis must call iv_init before any other ivykis functions are called. The very first call to iv_init in a process must run to completion before…

  • |

    iv_fd_unregister (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_set_handler_out (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_set_handler_in (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_set_handler_err (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_registered (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_register_try (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_register (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…

  • |

    iv_fd_pump_pump (3) Linux Manual Page

    IV_FD_PUMP_INIT, iv_fd_pump_init, iv_fd_pump_destroy, iv_fd_pump_pump, iv_fd_pump_is_done – pump data between file descriptors Synopsis#include <iv_fd_pump.h> struct iv_fd_pump { int from_fd; int to_fd; void *cookie; void (*set_bands)(void *cookie, int pollin, int pollout); unsigned int flags; };void IV_FD_PUMP_INIT(struct iv_fd_pump *this); void iv_fd_pump_init(struct iv_fd_pump *this); void iv_fd_pump_destroy(struct iv_fd_pump *this); int iv_fd_pump_pump(struct iv_fd_pump *this); int iv_fd_pump_is_done(struct iv_fd_pump *this); Descriptioniv_fd_pump provides a…

  • |

    iv_fd_pump_is_done (3) Linux Manual Page

    IV_FD_PUMP_INIT, iv_fd_pump_init, iv_fd_pump_destroy, iv_fd_pump_pump, iv_fd_pump_is_done – pump data between file descriptors Synopsis#include <iv_fd_pump.h> struct iv_fd_pump { int from_fd; int to_fd; void *cookie; void (*set_bands)(void *cookie, int pollin, int pollout); unsigned int flags; };void IV_FD_PUMP_INIT(struct iv_fd_pump *this); void iv_fd_pump_init(struct iv_fd_pump *this); void iv_fd_pump_destroy(struct iv_fd_pump *this); int iv_fd_pump_pump(struct iv_fd_pump *this); int iv_fd_pump_is_done(struct iv_fd_pump *this); Descriptioniv_fd_pump provides a…

  • |

    iv_fd_pump_destroy (3) Linux Manual Page

    IV_FD_PUMP_INIT, iv_fd_pump_init, iv_fd_pump_destroy, iv_fd_pump_pump, iv_fd_pump_is_done – pump data between file descriptors Synopsis#include <iv_fd_pump.h> struct iv_fd_pump { int from_fd; int to_fd; void *cookie; void (*set_bands)(void *cookie, int pollin, int pollout); unsigned int flags; };void IV_FD_PUMP_INIT(struct iv_fd_pump *this); void iv_fd_pump_init(struct iv_fd_pump *this); void iv_fd_pump_destroy(struct iv_fd_pump *this); int iv_fd_pump_pump(struct iv_fd_pump *this); int iv_fd_pump_is_done(struct iv_fd_pump *this); Descriptioniv_fd_pump provides a…

  • |

    iv_fd_pump (3) Linux Manual Page

    IV_FD_PUMP_INIT, iv_fd_pump_init, iv_fd_pump_destroy, iv_fd_pump_pump, iv_fd_pump_is_done – pump data between file descriptors Synopsis#include <iv_fd_pump.h> struct iv_fd_pump { int from_fd; int to_fd; void *cookie; void (*set_bands)(void *cookie, int pollin, int pollout); unsigned int flags; };void IV_FD_PUMP_INIT(struct iv_fd_pump *this); void iv_fd_pump_init(struct iv_fd_pump *this); void iv_fd_pump_destroy(struct iv_fd_pump *this); int iv_fd_pump_pump(struct iv_fd_pump *this); int iv_fd_pump_is_done(struct iv_fd_pump *this); Descriptioniv_fd_pump provides a…

  • |

    iv_fd (3) Linux Manual Page

    iv_fd_register, iv_fd_register_try, iv_fd_unregister, iv_fd_registered, iv_fd_set_handler_in, iv_fd_set_handler_err, iv_fd_set_handler_out – deal with ivykis file descriptors Synopsis#include <iv.h> struct iv_fd { int fd; void *cookie; void (*handler_in)(void *); void (*handler_out)(void *); void (*handler_err)(void *); };void IV_FD_INIT(struct iv_fd *fd); void iv_fd_register(struct iv_fd *fd); int iv_fd_register_try(struct iv_fd *fd); void iv_fd_unregister(struct iv_fd *fd); int iv_fd_registered(struct iv_fd *fd); void iv_fd_set_handler_in(struct iv_fd *fd,…