Linux Manuals session 3

Section 3: library functions

  • |

    envz (3) Linux Manual Page

    NAME envz_add, envz_entry, envz_get, envz_merge, envz_remove, envz_strip – environment string support SYNOPSIS #include <envz.h> error_t envz_add(char **envz, size_t *envz_len, const char *name, const char *value); char *envz_entry(const char *envz, size_t envz_len, const char *name); char *envz_get(const char *envz, size_t envz_len, const char *name); error_t envz_merge(char **envz, size_t *envz_len, const char *envz2, size_t envz2_len, int override);…

  • |

    ensureStrikeInGrid (3) Linux Manual Page

    QuantLib::FDVanillaEngine – Finite-differences pricing engine for BSM one asset options. Synopsis #include <ql/pricingengines/vanilla/fdvanillaengine.hpp> Inherited by FDEuropeanEngine, FDMultiPeriodEngine, and FDStepConditionEngine. Public Member Functions FDVanillaEngine (const boost::shared_ptr< GeneralizedBlackScholesProcess > &process, Size timeSteps, Size gridPoints, bool timeDependent=false) const Array & grid () const Protected Types typedef BoundaryCondition< TridiagonalOperator > bc_type Protected Member Functions virtual void setupArguments (const PricingEngine::arguments…

  • |

    engine_ (3) Linux Manual Page

    NAME QuantLib::Instrument – Abstract instrument class. SYNOPSIS #include <ql/instrument.hpp> Inherits QuantLib::LazyObject. Inherited by Bond, CapFloor, CDO, CdsOption, Commodity, CompositeInstrument, CreditDefaultSwap, Forward, InflationSwap, NthToDefault, Option, PathMultiAssetOption, RiskyAssetSwap, Stock, Swap, SyntheticCDO, VarianceOption, and VarianceSwap. Public Member Functions virtual void setupArguments (PricingEngine::arguments *) const virtual void fetchResults (const PricingEngine::results *) const Inspectors Real NPV () const returns the…

  • |

    engine (3) Linux Manual Page

    NAME QuantLib::QuantoVanillaOption – quanto version of a vanilla option SYNOPSIS #include <ql/instruments/quantovanillaoption.hpp> Inherits QuantLib::OneAssetOption. Public Types typedef OneAssetOption::arguments arguments typedef QuantoOptionResults< OneAssetOption::results > results typedef GenericEngine< arguments, results > engine Public Member Functions QuantoVanillaOption (const boost::shared_ptr< StrikedTypePayoff > &, const boost::shared_ptr< Exercise > &) void fetchResults (const PricingEngine::results *) const greeks Real qvega () const…

  • |

    enforcesTodaysHistoricFixings (3) Linux Manual Page

    QuantLib::Settings – global repository for run-time library settings Synopsis #include <ql/settings.hpp> Inherits Singleton< Settings >. Public Member Functions DateProxy & evaluationDate () the date at which pricing is to be performed. const DateProxy & evaluationDate () const bool & enforcesTodaysHistoricFixings () bool enforcesTodaysHistoricFixings () const Friends class Singleton< Settings > std::ostream & operator<< (std::ostream &,…

  • |

    endutxent (3) Linux Manual Page

    NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname – access utmp file entries SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); struct utmp *pututline(const struct utmp *ut); void setutent(void); void endutent(void); int utmpname(const char *file); DESCRIPTION New applications should use the POSIX.1-specified "utmpx" versions of…

  • |

    endutent (3) Linux Manual Page

    NAME getutent, getutid, getutline, pututline, setutent, endutent, utmpname – access utmp file entries SYNOPSIS #include <utmp.h> struct utmp *getutent(void); struct utmp *getutid(const struct utmp *ut); struct utmp *getutline(const struct utmp *ut); struct utmp *pututline(const struct utmp *ut); void setutent(void); void endutent(void); int utmpname(const char *file); DESCRIPTION New applications should use the POSIX.1-specified "utmpx" versions of…

  • |

    endusershell (3) Linux Manual Page

    NAME getusershell, setusershell, endusershell – get permitted user shells SYNOPSIS #include <unistd.h> char *getusershell(void); void setusershell(void); void endusershell(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): getusershell(), setusershell(), endusershell(): Since glibc 2.21 : _DEFAULT_SOURCE In glibc 2.19 and 2.20 : _DEFAULT_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE & nbsp; < &nbsp; 500) Up to and including glibc…

  • |

    endttyent (3) Linux Manual Page

    NAME getttyent, getttynam, setttyent, endttyent – get ttys file entry SYNOPSIS #include <ttyent.h> struct ttyent *getttyent(void); struct ttyent *getttynam(const char *name); int setttyent(void); int endttyent(void); DESCRIPTION These functions provide an interface to the file _PATH_TTYS (e.g., /etc/ttys). The function setttyent() opens the file or rewinds it if already open. The function endttyent() closes the file….

  • |

    endspent (3) Linux Manual Page

    NAME getspnam, getspnam_r, getspent, getspent_r, setspent, endspent, fgetspent, fgetspent_r, sgetspent, sgetspent_r, putspent, lckpwdf, ulckpwdf – get shadow password file entry SYNOPSIS /* General shadow password file API */ #include <shadow.h> struct spwd *getspnam(const char *name); struct spwd *getspent(void); void setspent(void); void endspent(void); struct spwd *fgetspent(FILE *stream); struct spwd *sgetspent(const char *s); int putspent(const struct spwd…

  • |

    endservent (3) Linux Manual Page

    NAME getservent, getservbyname, getservbyport, setservent, endservent – get service entry SYNOPSIS #include <netdb.h> struct servent *getservent(void); struct servent *getservbyname(const char *name, const char *proto); struct servent *getservbyport(int port, const char *proto); void setservent(int stayopen); void endservent(void); DESCRIPTION The getservent() function reads the next entry from the services database (see services(5)) and returns a servent structure…

  • |

    endrpcent (3) Linux Manual Page

    NAME getrpcent, getrpcbyname, getrpcbynumber, setrpcent, endrpcent – get RPC entry SYNOPSIS #include <netdb.h> struct rpcent *getrpcent(void); struct rpcent *getrpcbyname(const char *name); struct rpcent *getrpcbynumber(int number); void setrpcent(int stayopen); void endrpcent(void); DESCRIPTION The getrpcent(), getrpcbyname(), and getrpcbynumber() functions each return a pointer to an object with the following structure containing the broken-out fields of an entry…

  • |

    endpwent (3) Linux Manual Page

    NAME getpwent, setpwent, endpwent – get password file entry SYNOPSIS #include <pwd.h> #include <sys/types.h> struct passwd *getpwent(void); void setpwent(void); void endpwent(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): getpwent(), setpwent(), endpwent(): _XOPEN_SOURCE >= 500     || /* Glibc since 2.19: */ _DEFAULT_SOURCE     || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE DESCRIPTION The getpwent() function returns a pointer to a structure containing the broken-out fields of a…

  • |

    endprotoent (3) Linux Manual Page

    NAME getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent – get protocol entry SYNOPSIS #include <netdb.h> struct protoent *getprotoent(void); struct protoent *getprotobyname(const char *name); struct protoent *getprotobynumber(int proto); void setprotoent(int stayopen); void endprotoent(void); DESCRIPTION The getprotoent() function reads the next entry from the protocols database (see protocols(5)) and returns a protoent structure containing the broken-out fields from the…

  • |

    endnetgrent (3) Linux Manual Page

    NAME setnetgrent, endnetgrent, getnetgrent, getnetgrent_r, innetgr – handle network group entries SYNOPSIS #include <netdb.h> int setnetgrent(const char *netgroup); void endnetgrent(void); int getnetgrent(char **host, char **user, char **domain); int getnetgrent_r(char **host, char **user, char **domain, char *buf, size_t buflen); int innetgr(const char *netgroup, const char *host, const char *user, const char *domain); Feature Test Macro Requirements…

  • |

    endnetent (3) Linux Manual Page

    NAME getnetent, getnetbyname, getnetbyaddr, setnetent, endnetent – get network entry SYNOPSIS #include <netdb.h> struct netent *getnetent(void); struct netent *getnetbyname(const char *name); struct netent *getnetbyaddr(uint32_t net, int type); void setnetent(int stayopen); void endnetent(void); DESCRIPTION The getnetent() function reads the next entry from the networks database and returns a netent structure containing the broken-out fields from the…

  • |

    endmntent (3) Linux Manual Page

    NAME getmntent, setmntent, addmntent, endmntent, hasmntopt, getmntent_r – get filesystem descriptor file entry SYNOPSIS #include <mntent.h> #include <stdio.h> FILE *setmntent(const char *filename, const char *type); struct mntent *getmntent(FILE *stream); int addmntent(FILE *stream, const struct mntent *mnt); int endmntent(FILE *streamp); char *hasmntopt(const struct mntent *mnt, const char *opt); /* GNU extension */ #include <mntent.h> struct mntent…

  • |

    endian (3) Linux Manual Page

    NAME htobe16, htole16, be16toh, le16toh, htobe32, htole32, be32toh, le32toh, htobe64, htole64, be64toh, le64toh – convert values between host and big-/little-endian byte order SYNOPSIS #include <endian.h> uint16_t htobe16(uint16_t host_16bits); uint16_t htole16(uint16_t host_16bits); uint16_t be16toh(uint16_t big_endian_16bits); uint16_t le16toh(uint16_t little_endian_16bits); uint32_t htobe32(uint32_t host_32bits); uint32_t htole32(uint32_t host_32bits); uint32_t be32toh(uint32_t big_endian_32bits); uint32_t le32toh(uint32_t little_endian_32bits); uint64_t htobe64(uint64_t host_64bits); uint64_t htole64(uint64_t host_64bits);…

  • |

    endhostent (3) Linux Manual Page

    NAME gethostbyname, gethostbyaddr, sethostent, gethostent, endhostent, h_errno, herror, hstrerror, gethostbyaddr_r, gethostbyname2, gethostbyname2_r, gethostbyname_r, gethostent_r – get network host entry SYNOPSIS #include <netdb.h> extern int h_errno; struct hostent *gethostbyname(const char *name); #include <sys/socket.h> /* for AF_INET */ struct hostent *gethostbyaddr(const void *addr, socklen_t len, int type); void sethostent(int stayopen); void endhostent(void); void herror(const char *s); const…

  • |

    endgrent (3) Linux Manual Page

    NAME getgrent, setgrent, endgrent – get group file entry SYNOPSIS #include <grp.h> #include <sys/types.h> struct group *getgrent(void); void setgrent(void); void endgrent(void); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): setgrent(): _XOPEN_SOURCE >= 500     || /* Glibc since 2.19: */ _DEFAULT_SOURCE     || /* Glibc versions <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE getgrent(), endgrent(): Since glibc 2.22:     _XOPEN_SOURCE >= 500 ||         _DEFAULT_SOURCE Glibc 2.21 and earlier     _XOPEN_SOURCE >= 500         || /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200809L         || /* Glibc versions <= 2.19: */ _BSD_SOURCE…