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

version» Context lines:

pike.git/src/modules/Yp/yp.c:7: Inside #if defined(HAVE_RPC_TYPES_H)
  #endif /* HAVE_SYS_TYPES_H */   #ifdef HAVE_RPC_TYPES_H   #include <rpc/types.h>   #endif /* HAVE_RPC_TYPES_H */   #ifdef HAVE_RPC_RPC_H   #include <rpc/rpc.h>   #endif /* HAVE_RPC_RPC_H */   #ifdef HAVE_RPC_CLNT_H   #include <rpc/clnt.h>   #endif /* HAVE_RPC_CLNT_H */ - #include <rpcsvc/ypclnt.h> +    #include <rpcsvc/yp_prot.h> -  + #include <rpcsvc/ypclnt.h>      #include "stralloc.h"   #include "error.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"   #include "builtin_functions.h"   #include "module_support.h"    - RCSID("$Id: yp.c,v 1.13 1998/05/23 12:47:11 grubba Exp $"); + RCSID("$Id: yp.c,v 1.14 1998/08/08 13:56:56 grubba Exp $");      #define YPERROR(fun,err) do{ if(err) error("yp->%s(): %s\n", (fun), \    yperr_string(err)); }while(0)      struct my_yp_domain   {    char *domain;    int last_size; /* Optimize some allocations */   };   
pike.git/src/modules/Yp/yp.c:150:       if(err != YPERR_NOMORE)    YPERROR( "all", err );       pop_n_elems(args);   }      static void f_order(INT32 args)   {    int err; -  unsigned long ret; +  YP_ORDER_TYPE ret;       check_all_args("yp->order", args, BIT_STRING, 0);       err = yp_order( this->domain, sp[-args].u.string->str, &ret);       YPERROR("order", err );       pop_n_elems( args );    push_int( (INT32) ret );   }