pike.git / src / builtin_functions.c

version» Context lines:

pike.git/src/builtin_functions.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin_functions.c,v 1.476 2003/02/15 17:33:33 grubba Exp $ + || $Id: builtin_functions.c,v 1.477 2003/02/16 04:23:18 mast Exp $   */      #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.476 2003/02/15 17:33:33 grubba Exp $"); + RCSID("$Id: builtin_functions.c,v 1.477 2003/02/16 04:23:18 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"   #include "pike_error.h"   #include "constants.h"   #include "mapping.h"   #include "stralloc.h"
pike.git/src/builtin_functions.c:3683:    *! and @[`==()].    *!    *! @returns    *! The first argument will be returned.    *!    *! @note    *! The sorting algorithm used is not stable, ie elements that are equal    *! may get reordered.    *!    *! @seealso -  *! @[reverse()] +  *! @[Array.sort_array], @[reverse()]    */   PMOD_EXPORT void f_sort(INT32 args)   {    INT32 e,*order;       if(args < 1)    SIMPLE_TOO_FEW_ARGS_ERROR("sort", 1);       for(e=0;e<args;e++)    {
pike.git/src/builtin_functions.c:5954:   /*! @decl int gethrvtime (void|int nsec)    *!    *! Return the CPU time that has been consumed by this process or    *! thread. -1 is returned if the system couldn't determine it. The    *! time is normally returned in microseconds, but if the optional    *! argument @[nsec] is nonzero it's returned in nanoseconds.    *!    *! The CPU time includes both user and system time, i.e. it's    *! approximately the same thing you would get by adding together the    *! "utime" and "stime" fields returned by @[System.getrusage] (but -  *! perhaps with better accurancy). It's however system dependent +  *! perhaps with better accuracy). It's however system dependent    *! whether or not it's the time consumed in all threads or in the    *! current one only; @[System.CPU_TIME_IS_THREAD_LOCAL] tells which.    *!    *! @note    *! The actual accuracy on many systems is significantly less than    *! milliseconds or nanoseconds.    *!    *! @note    *! The garbage collector might run automatically at any time. The    *! time it takes is not included in the figure returned by this