Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

callback(3) [centos man page]

Callback(3)							   OCaml library						       Callback(3)

NAME
Callback - Registering OCaml values with the C runtime. Module Module Callback Documentation Module Callback : sig end Registering OCaml values with the C runtime. This module allows OCaml values to be registered with the C runtime under a symbolic name, so that C code can later call back registered OCaml functions, or raise registered OCaml exceptions. val register : string -> 'a -> unit Callback.register n v registers the value v under the name n . C code can later retrieve a handle to v by calling caml_named_value(n) . val register_exception : string -> exn -> unit Callback.register_exception n exn registers the exception contained in the exception value exn under the name n . C code can later retrieve a handle to the exception by calling caml_named_value(n) . The exception value thus obtained is suitable for passing as first argument to raise_constant or raise_with_arg . OCamldoc 2014-06-09 Callback(3)

Check Out this Related Man Page

Stream(3)							   OCaml library							 Stream(3)

NAME
Stream - Streams and parsers. Module Module Stream Documentation Module Stream : sig end Streams and parsers. type 'a t The type of streams holding values of type 'a . exception Failure Raised by parsers when none of the first components of the stream patterns is accepted. exception Error of string Raised by parsers when the first component of a stream pattern is accepted, but one of the following components is rejected. === Stream builders === val from : (int -> 'a option) -> 'a t Stream.from f returns a stream built from the function f . To create a new stream element, the function f is called with the current stream count. The user function f must return either Some <value> for a value or None to specify the end of the stream. val of_list : 'a list -> 'a t Return the stream holding the elements of the list in the same order. val of_string : string -> char t Return the stream of the characters of the string parameter. val of_channel : Pervasives.in_channel -> char t Return the stream of the characters read from the input channel. === Stream iterator === val iter : ('a -> unit) -> 'a t -> unit Stream.iter f s scans the whole stream s, applying function f in turn to each stream element encountered. === Predefined parsers === val next : 'a t -> 'a Return the first element of the stream and remove it from the stream. Raise Stream.Failure if the stream is empty. val empty : 'a t -> unit Return () if the stream is empty, else raise Stream.Failure . === Useful functions === val peek : 'a t -> 'a option Return Some of "the first element" of the stream, or None if the stream is empty. val junk : 'a t -> unit Remove the first element of the stream, possibly unfreezing it before. val count : 'a t -> int Return the current count of the stream elements, i.e. the number of the stream elements discarded. val npeek : int -> 'a t -> 'a list npeek n returns the list of the n first elements of the stream, or all its remaining elements if less than n elements are available. OCamldoc 2014-06-09 Stream(3)
Man Page

4 More Discussions You Might Find Interesting

1. Cybersecurity

J need help to make callback by Modem (AIX)

Are there any of you who have a description which can help me to make a callback on AIX. My userīs call in by a telefonnumber at I want AIX to disconnect the line and make a callback to the user who had logged on AIX. The advantage of this is we have security on who we allow to call our... (2 Replies)
Discussion started by: Carsten Lesmark
2 Replies

2. IP Networking

Connect to RAS callback server: route problem

I'm trying to use my Gentoo Linux home workstation for connecting to a Windows RAS callback server through analogic telephone line (PSTN). I'm using pppd and successfully configured pppd's options and chat files, both for the outgoing call and for receiving the incoming callback. All seems going... (20 Replies)
Discussion started by: robotronic
20 Replies

3. UNIX for Advanced & Expert Users

Looking for resource on setting up history callback for shells

CSH, BASH, KSH, TCSH... They're all different, and I want to know how to setup automatic history for each of them? I always use KSH myself and use ctrl-k to bringup my history. It also allows me to search my history and has vi editing. I want to be able to do the same with other shells. I... (0 Replies)
Discussion started by: srhadden
0 Replies

4. Red Hat

Cause PCIe error callbacks using AER injection

I am trying to cause a callback in the Linux nvme driver by using AER injection. I've modified the AER source code to directly inject errors through module loading rather than from userland program. I've verified that I got the correct bus, dev, and fn and that the error injection went... (0 Replies)
Discussion started by: Decrypto
0 Replies