gettimeoday
by Johan Sundstr�m (�rkehertig av Lysators rootgrupp) @ Pike (-) developers forum
06 Dec '02
06 Dec '02
And I just remembered to check up on my broken Stdio.expand_symlinks()
which is a poor substitute for System.resolvepath(). I'll drop mine
before the release.
/ Johan Sundström (ärkehertig av Lysators rootgrupp)
Previous text:
>2002-11-03 15:02:
>Subject: it seems that Stdio.expand_symlinks() not work.
>--------------------------------------------------------------------
>[peterpan@server ~/tmp]$pwd
>/home/peterpan/tmp
>[peterpan@server ~/tmp]$ls -l
>total 16
>lrwxrwxrwx 1 peterpan wapmud 26 Nov 3 21:48 haha -> /home/peterpan/tmp/t1/xixi
>drwxr-xr-x 2 peterpan wapmud 4096 Nov 3 21:46 t1
>drwxr-xr-x 2 peterpan wapmud 4096 Nov 3 21:46 t2
>-rw-r--r-- 1 peterpan wapmud 202 Nov 3 21:57 t.pike
>-rw-r--r-- 1 peterpan wapmud 236 Nov 3 21:49 t.pike~
>lrwxrwxrwx 1 peterpan wapmud 7 Nov 3 21:47 xixi -> t1/xixi
>[peterpan@server ~/tmp]$ls -l t1
>total 4
>-rw-r--r-- 1 peterpan wapmud 14 Nov 3 21:46 xixi
>[peterpan@server ~/tmp]$ls -l t2
>total 0
>lrwxrwxrwx 1 peterpan wapmud 10 Nov 3 21:46 xixi -> ../t1/xixi
>[peterpan@server ~/tmp]$cat haha
>skadljfkalsjf
>[peterpan@server ~/tmp]$cat xixi
>skadljfkalsjf
>[peterpan@server ~/tmp]$cat t1/xixi
>skadljfkalsjf
>[peterpan@server ~/tmp]$cat t2/xixi
>skadljfkalsjf
>[peterpan@server ~/tmp]$cat t.pike
>void main()
>{
> write(Stdio.expand_symlinks("t1/xixi")+"\n");
> write(Stdio.expand_symlinks("t2/xixi")+"\n");
> write(Stdio.expand_symlinks("./xixi")+"\n");
> write(Stdio.expand_symlinks("./haha")+"\n");
>}
>[peterpan@server ~/tmp]$pike t.pike
>t1/xixi
>0
>0
>0
>
> / Brevbäraren
>
2
3
gettimeoday
by Peter Bortas @ Pike developers forum
06 Dec '02
06 Dec '02
Is System.gettimeoday() some getto version of gettimeofday(), of is
the documentation missinformed? My checkout seems to have the wrong
system module, so I can't check.
4
8
gettimeoday
by Per Hedbor () @ Pike (-) developers forum
06 Dec '02
The mmx.h Pike needs to utilise mmx, what kind of creature is that?
I haven't got any.
Any way that file could be included with the Pike CVS?
3
2
gcc 3.2
by Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
06 Dec '02
06 Dec '02
Or even better: -pedantic-errors
1
0
*boggle*
by Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum
06 Dec '02
06 Dec '02
What's this? Why is case 2 different from the other three?
Pike v7.3 release 62 running Hilfe v3.5 (Incremental Pike Frontend)
> function plus = `+;
> `+(("hello world"/" ")[*]);
(1) Result: ({ /* 2 elements */
"hello",
"world"
})
> plus(("hello world"/" ")[*]);
Compiler Error: 1:[*] not supported here.
> array(string) hi = "hello world"/" ";
> `+(hi[*]);
(2) Result: ({ /* 2 elements */
"hello",
"world"
})
> plus(hi[*]);
(3) Result: ({ /* 2 elements */
"hello",
"world"
})
>
1
0
Core!
by Johan Sundstr�m (�rkehertig av Lysators rootgrupp) @ Pike (-) developers forum
06 Dec '02
06 Dec '02
I just found a pretty minimized test case for a coredump recipe:
pelix> pike -t2 -e ''
/pike/home/marcus/Pike/7.3/src/object.c:577: Fatal error:
Couldn't load master object.
No stack - no backtrace.
zsh: IOT instruction (core dumped) pike -t2 -e
-t1 works like a charm, though. :)
In the interest of getting the CHANGES worked out sooner or later I
will try to (with the eager help of members of this conferance) work
out at least one undescribed entry in the CHANGES per day. Depending
on current level of boredom there might be more than one entry in a
day.
1st entry:
basetype()
Suggested entry, added to "Language additions":
o basetype(foo)
Returns the basic type of foo as opposed to typeof(foo) that returns
the full type. Also available as sprintf("%t", foo).
This is, incidentally, also why I have not yet written a standard
function for this.
Take disk 'Gb':s as an example, they can be anything from 1024^3 to
1000^3 bytes, the most common size being 1000 * 1024^2 bytes.