pike.git / src / modules / Yp / module.pmod.in

version» Context lines:

pike.git/src/modules/Yp/module.pmod.in:1:   // -*- Pike -*-   //   // YP (NIS) Functionality for Pike   // Per Hedbor & Henrik Grubbström 1996-1997   // - // $Id: module.pmod.in,v 1.18 2002/11/28 06:04:32 nilsson Exp $ + // $Id: module.pmod.in,v 1.19 2003/04/07 17:22:53 nilsson Exp $      #pike __REAL_VERSION__   inherit @module@;      #if constant(@module@.Domain)      // Usual nicknames   constant nicknames = ([    "passwd":"passwd.byname",    "group":"group.byname",
pike.git/src/modules/Yp/module.pmod.in:83:    mapping(string:string) cast_to_mapping()    {    return(domain->all(ypmap));    }       //! Call a function for each entry in the map.    //!    //! For each entry in the map, call the function @[fun].    //!    //! The function will be called like -  //! @tt{void fun(string key, string value)@}. +  //! @expr{void fun(string key, string value)@}.    //!    void map(function(string,string:void) fun)    {    domain->map(ypmap, fun);    }       //! Return the server that provides this map.    string server()    {    return(domain->server(ypmap));