Linux Manuals session 3

Section 3: library functions

  • |

    reallocate_voice (3) Linux Manual Page

    reallocate_voice – Switches the sample of an already-allocated voice. Allegro game programming library. Synopsis #include <allegro.h> void reallocate_voice(int voice, const SAMPLE *spl); Description Switches an already-allocated voice to use a different sample. Calling reallocate_voice(voice, sample) is equivalent to: deallocate_voice(voice); voice = allocate_voice(sample); See Also allocate_voice(3), deallocate_voice(3), load_sample(3)

  • |

    reallocarray (3) Linux Manual Page

    malloc, free, calloc, realloc, reallocarray – allocate and free dynamic memory Synopsis #include <stdlib.h> void *malloc(size_t size); void free(void *ptr); void *calloc(size_t nmemb, size_t size); void *realloc(void *ptr, size_t size); void *reallocarray(void *ptr, size_t nmemb, size_t size); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): reallocarray():     Since glibc 2.29:         _DEFAULT_SOURCE     Glibc 2.28 and earlier:         _GNU_SOURCE…

  • |

    realloc (3) Linux Manual Page

    malloc, free, calloc, realloc, reallocarray – allocate and free dynamic memory Synopsis #include <stdlib.h> void *malloc(size_t size); void free(void *ptr); void *calloc(size_t nmemb, size_t size); void *realloc(void *ptr, size_t size); void *reallocarray(void *ptr, size_t nmemb, size_t size); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): reallocarray():     Since glibc 2.29:         _DEFAULT_SOURCE     Glibc 2.28 and earlier:         _GNU_SOURCE…

  • |

    readproctab (3) Linux Manual Page

    readproctab, freeproctab – read information for all current processes at once Synopsis #include <proc/readproc.h> proc_t** readproctab(int flags, … ); void freeproctab(proc_t **p); Description readproctab reads information on all processes matching the criteria from flags, allocating memory for everything as needed. It returns a NULL-terminated list of proc_t pointers. For more information on the arguments of…

  • |

    readproc (3) Linux Manual Page

    readproc, freeproc – read information from next /proc/## entry Synopsis #include <proc/readproc.h> proc_t* readproc(PROCTAB *PT, proc_t *return_buf); void freeproc(proc_t *p); Description readproc reads the information for the next process matching the criteria specified in PT and fills them into a proc_t structure. If return_buf is not NULL, it will use the struct pointed at by…

  • |

    readpassphrase (3) Linux Manual Page

    readpassphrase – get a passphrase from the user Library Lb libbsd Synopsis Fd #include <bsd/readpassphrase.h> Ft char * Fn readpassphrase const char *prompt char *buf size_t bufsiz int flags Description The Fn readpassphrase function displays a prompt to, and reads in a passphrase from, /dev/tty If this file is inaccessible and the RPP_REQUIRE_TTY flag is…

  • |

    readpass (3) Linux Manual Page

    readpass – read password Library Readpass library (librpass, -lrpass) Synopsis #include <readpass.h> char *readpass(const char *prompt, char display, size_t len); Description The readpass() function reads in password from standard input. readpass displays the prompt, turns off character echo, and reads the password string of up to len number of characters or till a newline character,…

  • |

    readline (3) Linux Manual Page

    readline – get a line from a user with editing Synopsis #include <readline/history.h> #include <readline/readline.h> #include <stdio.h> char * readline(const char *prompt); Copyright Readline is Copyright (C) 1989-2011 Free Software Foundation, Inc. Description readline will read a line from the terminal and return it, using prompt as a prompt. If prompt is NULL or the…

  • |

    readkey (3) Linux Manual Page

    readkey – Returns the next character from the keyboard buffer. Allegro game programming library. Synopsis #include <allegro.h> int readkey(); Description Returns the next character from the keyboard buffer, in ASCII format. If the buffer is empty, it waits until a key is pressed. You can see if there are queued keypresses with keypressed(). The low…

  • |

    readdir_r (3) Linux Manual Page

    readdir_r – read a directory Synopsis #include <dirent.h> int readdir_r(DIR *dirp, struct dirent *entry, struct dirent **result); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): readdir_r(): _POSIX_C_SOURCE     || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE Description This function is deprecated; use readdir(3) instead. The readdir_r() function was invented as a reentrant version of readdir(3). It reads the next directory entry…

  • |

    readdir (3) Linux Manual Page

    readdir – read a directory Synopsis #include <dirent.h> struct dirent *readdir(DIR *dirp); Description The readdir() function returns a pointer to a dirent structure representing the next directory entry in the directory stream pointed to by dirp. It returns NULL on reaching the end of the directory stream or if an error occurred. In the glibc…

  • |

    read_sound_input (3) Linux Manual Page

    read_sound_input – Retrieves the last recorded audio buffer. Allegro game programming library. Synopsis #include <allegro.h> int read_sound_input(void *buffer); Description Retrieves the most recently recorded audio buffer into the specified location. The buffer size can be obtained by checking the return value from start_sound_input(). You must be sure to call this function at regular intervals during…

  • |

    read_premib_configs (3) Linux Manual Page

    register_config_handler, register_const_config_handler, register_prenetsnmp_mib_handler, unregister_config_handler, register_mib_handlers, unregister_all_config_handlers, register_app_config_handler, register_app_prenetsnmp_mib_handler, unregister_app_config_handler, read_configs, read_premib_configs, read_config_print_usage, config_perror, config_pwarn – netsnmp_config_api functions Synopsis #include <net-snmp/config_api.h> Config Handlers struct config_line * register_config_handler(const char *filePrefix, const char *token, void (*parser)(const char *, char *), void (*releaser)(void), const char *usageLine); struct config_line * register_const_config_handler(const char *filePrefix, const char *token, void (*parser)(const char *,…

  • |

    read_objid (3) Linux Manual Page

    add_mibdir, netsnmp_init_mib, shutdown_mib, netsnmp_read_module, read_mib, read_all_mibs, add_module_replacement, snmp_set_mib_errors, snmp_set_mib_warnings, snmp_set_save_descriptions, read_objid, snmp_parse_oid, get_module_node, print_mib, print_objid, fprint_objid, snprint_objid, print_description, fprint_description, snprint_description – netsnmp_mib_api functions Synopsis #include <net-snmp/mib_api.h> Initialisation and Shutdown int add_mibdir(const char *dirname); void netsnmp_init_mib(void); void shutdown_mib(void); Reading and Parsing MIBs struct tree * netsnmp_read_module(const char *name); struct tree *read_mib(const char *filename); struct tree *read_all_mibs(void);…

  • |

    read_module_node (3) Linux Manual Page

    init_mib, add_mibdir, init_mib_internals, add_module_replacement, read_module, read_mib, read_all_mibs, read_objid, read_module_node, get_module_node, snmp_set_mib_warnings, snmp_set_save_descriptions, shutdown_mib, print_mib, print_variable, fprint_variable, snprint_variable, sprint_realloc_variable, print_value, fprint_value, snprint_value, sprint_realloc_value, print_objid, fprint_objid, snprint_objid, sprint_realloc_objid, print_description, fprint_description – mib_api functions Synopsis #include <net-snmp/mib_api.h> void init_mib(void); int add_mibdir(const char *dirname); int add_module_replacement(const char *old_module, const char *new_module, const char *tag, int len); void init_mib_internals(void); struct…

  • |

    read_module (3) Linux Manual Page

    init_mib, add_mibdir, init_mib_internals, add_module_replacement, read_module, read_mib, read_all_mibs, read_objid, read_module_node, get_module_node, snmp_set_mib_warnings, snmp_set_save_descriptions, shutdown_mib, print_mib, print_variable, fprint_variable, snprint_variable, sprint_realloc_variable, print_value, fprint_value, snprint_value, sprint_realloc_value, print_objid, fprint_objid, snprint_objid, sprint_realloc_objid, print_description, fprint_description – mib_api functions Synopsis #include <net-snmp/mib_api.h> void init_mib(void); int add_mibdir(const char *dirname); int add_module_replacement(const char *old_module, const char *new_module, const char *tag, int len); void init_mib_internals(void); struct…

  • |

    read_mib (3) Linux Manual Page

    add_mibdir, netsnmp_init_mib, shutdown_mib, netsnmp_read_module, read_mib, read_all_mibs, add_module_replacement, snmp_set_mib_errors, snmp_set_mib_warnings, snmp_set_save_descriptions, read_objid, snmp_parse_oid, get_module_node, print_mib, print_objid, fprint_objid, snprint_objid, print_description, fprint_description, snprint_description – netsnmp_mib_api functions Synopsis #include <net-snmp/mib_api.h> Initialisation and Shutdown int add_mibdir(const char *dirname); void netsnmp_init_mib(void); void shutdown_mib(void); Reading and Parsing MIBs struct tree * netsnmp_read_module(const char *name); struct tree *read_mib(const char *filename); struct tree *read_all_mibs(void);…

  • |

    read_configs (3) Linux Manual Page

    register_config_handler, register_const_config_handler, register_prenetsnmp_mib_handler, unregister_config_handler, register_mib_handlers, unregister_all_config_handlers, register_app_config_handler, register_app_prenetsnmp_mib_handler, unregister_app_config_handler, read_configs, read_premib_configs, read_config_print_usage, config_perror, config_pwarn – netsnmp_config_api functions Synopsis #include <net-snmp/config_api.h> Config Handlers struct config_line * register_config_handler(const char *filePrefix, const char *token, void (*parser)(const char *, char *), void (*releaser)(void), const char *usageLine); struct config_line * register_const_config_handler(const char *filePrefix, const char *token, void (*parser)(const char *,…

  • |

    read_config_print_usage (3) Linux Manual Page

    register_config_handler, register_const_config_handler, register_prenetsnmp_mib_handler, unregister_config_handler, register_mib_handlers, unregister_all_config_handlers, register_app_config_handler, register_app_prenetsnmp_mib_handler, unregister_app_config_handler, read_configs, read_premib_configs, read_config_print_usage, config_perror, config_pwarn – netsnmp_config_api functions Synopsis #include <net-snmp/config_api.h> Config Handlers struct config_line * register_config_handler(const char *filePrefix, const char *token, void (*parser)(const char *, char *), void (*releaser)(void), const char *usageLine); struct config_line * register_const_config_handler(const char *filePrefix, const char *token, void (*parser)(const char *,…