⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dynaloader.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 2 页
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "DynaLoader 3".TH DynaLoader 3 "2008-01-23" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"DynaLoader \- Dynamically load C libraries into Perl code.SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 4\&    package YourPackage;\&    require DynaLoader;\&    @ISA = qw(... DynaLoader ...);\&    bootstrap YourPackage;\&\&    # optional method for \*(Aqglobal\*(Aq loading\&    sub dl_load_flags { 0x01 }.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"This document defines a standard generic interface to the dynamiclinking mechanisms available on many platforms.  Its primary purpose isto implement automatic dynamic loading of Perl modules..PPThis document serves as both a specification for anyone wishing toimplement the DynaLoader for a new platform and as a guide foranyone wishing to use the DynaLoader directly in an application..PPThe DynaLoader is designed to be a very simple high-levelinterface that is sufficiently general to cover the requirementsof SunOS, HP-UX, NeXT, Linux, \s-1VMS\s0 and other platforms..PPIt is also hoped that the interface will cover the needs of \s-1OS/2\s0, \s-1NT\s0etc and also allow pseudo-dynamic linking (using \f(CW\*(C`ld \-A\*(C'\fR at runtime)..PPIt must be stressed that the DynaLoader, by itself, is practicallyuseless for accessing non-Perl libraries because it provides almost noPerl-to-C 'glue'.  There is, for example, no mechanism for calling a Clibrary function or supplying arguments.  A C::DynaLib moduleis available from \s-1CPAN\s0 sites which performs that function for somecommon system types.  And since the year 2000, there's also Inline::C,a module that allows you to write Perl subroutines in C.  Also availablefrom your local \s-1CPAN\s0 site..PPDynaLoader Interface Summary.PP.Vb 12\&  @dl_library_path\&  @dl_resolve_using\&  @dl_require_symbols\&  $dl_debug\&  @dl_librefs\&  @dl_modules\&  @dl_shared_objects\&                                                  Implemented in:\&  bootstrap($modulename)                               Perl\&  @filepaths = dl_findfile(@names)                     Perl\&  $flags = $modulename\->dl_load_flags                  Perl\&  $symref  = dl_find_symbol_anywhere($symbol)          Perl\&\&  $libref  = dl_load_file($filename, $flags)           C\&  $status  = dl_unload_file($libref)                   C\&  $symref  = dl_find_symbol($libref, $symbol)          C\&  @symbols = dl_undef_symbols()                        C\&  dl_install_xsub($name, $symref [, $filename])        C\&  $message = dl_error                                  C.Ve.ie n .IP "@dl_library_path" 4.el .IP "\f(CW@dl_library_path\fR" 4.IX Item "@dl_library_path"The standard/default list of directories in which \fIdl_findfile()\fR willsearch for libraries etc.  Directories are searched in order:\&\f(CW$dl_library_path\fR[0], [1], ... etc.Sp\&\f(CW@dl_library_path\fR is initialised to hold the list of 'normal' directories(\fI/usr/lib\fR, etc) determined by \fBConfigure\fR (\f(CW$Config{\*(Aqlibpth\*(Aq}\fR).  This shouldensure portability across a wide range of platforms..Sp\&\f(CW@dl_library_path\fR should also be initialised with any other directoriesthat can be determined from the environment at runtime (such as\&\s-1LD_LIBRARY_PATH\s0 for SunOS)..SpAfter initialisation \f(CW@dl_library_path\fR can be manipulated by anapplication using push and unshift before calling \fIdl_findfile()\fR.Unshift can be used to add directories to the front of the search ordereither to save search time or to override libraries with the same namein the 'normal' directories..SpThe load function that \fIdl_load_file()\fR calls may require an absolutepathname.  The \fIdl_findfile()\fR function and \f(CW@dl_library_path\fR can beused to search for and return the absolute pathname for thelibrary/object that you wish to load..ie n .IP "@dl_resolve_using" 4.el .IP "\f(CW@dl_resolve_using\fR" 4.IX Item "@dl_resolve_using"A list of additional libraries or other shared objects which can beused to resolve any undefined symbols that might be generated by alater call to \fIload_file()\fR..SpThis is only required on some platforms which do not handle dependentlibraries automatically.  For example the Socket Perl extensionlibrary (\fIauto/Socket/Socket.so\fR) contains references to many socketfunctions which need to be resolved when it's loaded.  Most platformswill automatically know where to find the 'dependent' library (e.g.,\&\fI/usr/lib/libsocket.so\fR).  A few platforms need to be told thelocation of the dependent library explicitly.  Use \f(CW@dl_resolve_using\fRfor this..SpExample usage:.Sp.Vb 1\&    @dl_resolve_using = dl_findfile(\*(Aq\-lsocket\*(Aq);.Ve.ie n .IP "@dl_require_symbols" 4.el .IP "\f(CW@dl_require_symbols\fR" 4.IX Item "@dl_require_symbols"A list of one or more symbol names that are in the library/object fileto be dynamically loaded.  This is only required on some platforms..ie n .IP "@dl_librefs" 4.el .IP "\f(CW@dl_librefs\fR" 4.IX Item "@dl_librefs"An array of the handles returned by successful calls to \fIdl_load_file()\fR,made by bootstrap, in the order in which they were loaded.Can be used with \fIdl_find_symbol()\fR to look for a symbol in any ofthe loaded files..ie n .IP "@dl_modules" 4.el .IP "\f(CW@dl_modules\fR" 4.IX Item "@dl_modules"An array of module (package) names that have been bootstrap'ed..ie n .IP "@dl_shared_objects" 4.el .IP "\f(CW@dl_shared_objects\fR" 4.IX Item "@dl_shared_objects"An array of file names for the shared objects that were loaded..IP "\fIdl_error()\fR" 4.IX Item "dl_error()"Syntax:.Sp.Vb 1\&    $message = dl_error();.Ve.Sp

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -