pike.git / src / modules / Yp / yp.c

version» Context lines:

pike.git/src/modules/Yp/yp.c:124:       if(this->domain)    {    yp_unbind( this->domain );    free(this->domain);    }    this->domain = strdup( sp[-args].u.string->str );    err = yp_bind( this->domain );       YPERROR( err ); -  -  pop_n_elems(args); +    }      /*! @decl mapping(string:string) all(string map)    *!    *! Returns the whole map as a mapping.    *!    *! @[map] is the YP-map to search in. This must be the full map name,    *! you have to use @tt{passwd.byname@} instead of just @tt{passwd@}.    */   static void f_all(INT32 args)
pike.git/src/modules/Yp/yp.c:205:    push_string(make_shared_binary_string(retkey, retkeylen));    push_string(make_shared_binary_string(retval, retlen));    apply_svalue( f, 2 );       err = yp_next(this->domain, map, retkey, retkeylen,    &retkey, &retkeylen, &retval, &retlen);    } while(!err);       if(err != YPERR_NOMORE)    YPERROR( err ); -  -  pop_n_elems(args); +    }      /*! @decl int order(string map)    *!    *! Returns the 'order' number for the map @[map].    *!    *! This is usually the number of seconds since Jan 1 1970 (see @[time()]).    *! When the map is changed, this number will change as well.    *!    *! @[map] is the YP-map to search in. This must be the full map name.