Commit Graph

7229 Commits

Author SHA1 Message Date
florian
a01b377e40 * patch for #9449 by Sergei Gorelkin
git-svn-id: trunk@8289 -
2007-08-17 18:39:27 +00:00
Almindor
1e4dd0685a * fix bug #9438
git-svn-id: trunk@8288 -
2007-08-16 09:58:35 +00:00
Almindor
8a0eeb5e57 * make the updates also compilable (move struct down, add LPWSAMSG = PWSAMSG)
git-svn-id: trunk@8277 -
2007-08-13 11:01:04 +00:00
Almindor
3f6f91ae79 * adds WSARecvMsg and WSASendMsg along with requires structure to winsock2
git-svn-id: trunk@8276 -
2007-08-13 10:43:22 +00:00
Jonas Maebe
815cd2b39d + support for widestring manager based widechar conversions
(widechar<->char, widechar<>*string), based on patch from
    Rimgaudas Laucius (mantis #7758)
  * no longer perform compile-time widechar/string->char/ansi/
    shortstring conversions if they would destroy information
    (they can't cope with widechars with ord>=128). This means
    that you can now properly constant widechars/widestrings
    in source code with a {$codepage } set without risking that
    the compiler will mangle everything afterwards
  * support ESysEINVAL return code from iconv (happens if last
    multibyte char is incomplete)
  * fixed writing of widechars (were converted to char -> lost
    information)

git-svn-id: trunk@8274 -
2007-08-12 20:01:08 +00:00
Jonas Maebe
123362235b * use initc.fpgetCerrno rather than fpgeterrno to get the errno
results of the sem_* routines (since those always come from libc/
    libpthread)

git-svn-id: trunk@8266 -
2007-08-12 08:29:48 +00:00
Jonas Maebe
4457538435 * explicitly unmask SIGSEGV, SIGILL, SIGBUS and SIGFPE at the start
of a new thread (should fix #9073)

git-svn-id: trunk@8265 -
2007-08-11 20:59:37 +00:00
Jonas Maebe
ce86cedd4d * return wrAbandoned rather than wrError from IntbasiceventWaitFor
in case a sleep is interrupted while the event is being destroyed

git-svn-id: trunk@8260 -
2007-08-11 08:13:36 +00:00
Jonas Maebe
ef801ba3a3 * check once more whether we can lock after we've waited
for the entire timeout in IntbasiceventWaitFor

git-svn-id: trunk@8259 -
2007-08-11 08:07:44 +00:00
Jonas Maebe
494fb81dd8 * fixed semaphore implementation based on file handles (select needs
file descriptor + 1 as first parameter, select can also be EIntr)
  * changed IntbasiceventWaitFor (used by syncobjs) so it can emulate
    timeouts (using a loop and short sleeps) (mantis #9414)
  * also added wrAbandoned support to IntbasiceventWaitFor
  * enhanced tbrtlevt.pp to test new functionality

git-svn-id: trunk@8257 -
2007-08-10 20:20:44 +00:00
Tomas Hajny
908a116cfc * preserve gs in far_strlen
git-svn-id: trunk@8256 -
2007-08-09 18:51:15 +00:00
Tomas Hajny
05b3c0311b * make sure to preserve edi in free_memory_block
git-svn-id: trunk@8255 -
2007-08-09 18:41:27 +00:00
Tomas Hajny
1967deb137 * missing size modifier added
git-svn-id: trunk@8254 -
2007-08-09 18:38:09 +00:00
yury
1a661dc254 * TAPI fixes by S0vNark0m.
+ SimMgr API by S0vNark0m.

git-svn-id: trunk@8251 -
2007-08-09 09:55:01 +00:00
Jonas Maebe
fd98a0cc5b * don't call runerror if a unix threading error occurs (because this
immediately terminates the whole application), but instead call
    handleerrorframe (which can be converted into an exception) (#7954)

git-svn-id: trunk@8248 -
2007-08-08 13:59:17 +00:00
Jonas Maebe
f3a00b0731 * cache result of GetThreadManager in InitThreads
git-svn-id: trunk@8245 -
2007-08-08 11:33:54 +00:00
Jonas Maebe
e205481027 * fixed sparc bootstrap
* use -Av9 assembler option so it accepts the memory barrier opcodes

git-svn-id: trunk@8244 -
2007-08-08 09:48:37 +00:00
Jonas Maebe
98ad33a0c7 + added lwsync instruction to the compiler
* fixed compilation of ReadDependencyBarrier

git-svn-id: trunk@8243 -
2007-08-08 09:15:48 +00:00
Jonas Maebe
ad43c6a989 * fixed properties
git-svn-id: trunk@8242 -
2007-08-08 09:10:40 +00:00
peter
2e47433989 * fix typo
git-svn-id: trunk@8241 -
2007-08-08 06:00:18 +00:00
micha
d95b9082bb * add memory barrier prototypes + implementation for i386 and sparc + use lwsync for powerpc64
git-svn-id: trunk@8240 -
2007-08-07 20:37:08 +00:00
Jonas Maebe
134427700b * disabled overloaded operators for non-x86 because they don't compile
(the value is a packed array of bytes in this case, not a record)

git-svn-id: trunk@8231 -
2007-08-06 13:44:13 +00:00
yury
0e1357642e + Added TAPI declarations by SovNarKom.
git-svn-id: trunk@8230 -
2007-08-06 07:45:39 +00:00
peter
6d4ccd3b3f * operators for clongdouble
git-svn-id: trunk@8229 -
2007-08-06 07:12:51 +00:00
Jonas Maebe
49a545aef2 * fixed FormatFloat for non-x86 (mantis 9384)
git-svn-id: trunk@8220 -
2007-08-04 17:38:48 +00:00
yury
b07b8b557b * Added TransparentImage and TransparentBlt declarations.
git-svn-id: trunk@8218 -
2007-08-03 23:19:57 +00:00
florian
ea61793ca2 * fix by Carsten Bager
git-svn-id: trunk@8211 -
2007-08-02 07:44:32 +00:00
florian
9713d5cb21 * more properties fixed
git-svn-id: trunk@8210 -
2007-08-02 07:40:03 +00:00
florian
065b187c26 * properties set
git-svn-id: trunk@8209 -
2007-08-02 07:38:09 +00:00
yury
b40de09cdb * Update and cleanup.
git-svn-id: trunk@8208 -
2007-08-01 17:22:39 +00:00
yury
0d79d73dc3 * Fixed TSHFILEINFO declaration.
git-svn-id: trunk@8205 -
2007-07-31 21:58:05 +00:00
yury
c454c53ae7 * Fix and cleanup window styles.
git-svn-id: trunk@8204 -
2007-07-31 21:49:57 +00:00
yury
b0834a01a0 * Don't use changed registers list. Save used registers directly in asm code.
git-svn-id: trunk@8201 -
2007-07-30 17:26:45 +00:00
Legolas
87d67dcad6 * gba and nds work with new heap manager now (no need for a custom heap manager that allocates a single big block anymore)
git-svn-id: trunk@8200 -
2007-07-30 15:37:19 +00:00
yury
4b8777eb5a * Optimize syscalls for arm-linux.
git-svn-id: trunk@8191 -
2007-07-29 15:57:15 +00:00
yury
27db4ec55a * Final fix for threadvar access in syscall helpers on arm-linux. It fixes bugs #9191 and #9290.
git-svn-id: trunk@8189 -
2007-07-29 15:21:44 +00:00
yury
a24803c63d * Fixed threadvar access in syscall helpers on arm-linux. Bug #9290.
git-svn-id: trunk@8186 -
2007-07-29 12:01:22 +00:00
micha
7475f656f8 + add memory barrier routines for powerpc/64
git-svn-id: trunk@8179 -
2007-07-28 12:47:48 +00:00
micha
68dbca040e * fix floating point signal and exception handling, for linux/i386, test tfpu2 regression
git-svn-id: trunk@8152 -
2007-07-23 15:36:02 +00:00
Károly Balogh
8f27e64080 + regenerated Makefile with recent fpcmake
git-svn-id: trunk@8151 -
2007-07-23 15:06:25 +00:00
yury
f2df73cfe9 * Patch from Felipe Monteiro de Carvalho.
git-svn-id: trunk@8150 -
2007-07-23 13:25:30 +00:00
Károly Balogh
5f33a865a7 + added MorphOS specific sockets.pp (WIP, but already works at some level)
+ added sockets unit to Makefile.fpc (i have no recent fpcmake ATM to regenerate Makefile)

git-svn-id: trunk@8149 -
2007-07-23 10:29:28 +00:00
peter
8d53e54e3e * fix typos
git-svn-id: trunk@8146 -
2007-07-23 07:54:58 +00:00
peter
1db1bc598c * move setting of socketerror to real socketcall
git-svn-id: trunk@8140 -
2007-07-22 20:42:41 +00:00
Károly Balogh
bee56abb78 - dec(comment_typos,2);
git-svn-id: trunk@8130 -
2007-07-22 10:22:26 +00:00
daniel
34afbcc040 * Enable inline for ctypes.
git-svn-id: trunk@8129 -
2007-07-22 10:10:35 +00:00
daniel
354cd09f31 * long double=double on powerpc-linux
* educated guess this is the case on arm-linux as well
  * temporary change: do not alias clongdouble from unixtype into ctypes to prevent
    having to work in two places.

git-svn-id: trunk@8127 -
2007-07-22 10:04:48 +00:00
daniel
d51b735deb * Prevent range check errors on powerpc-linux
git-svn-id: trunk@8126 -
2007-07-22 09:53:21 +00:00
daniel
74ad03e264 * Remove double definition of O_LARGEFILE for powerpc-linux and give it
the correct value: $10000

git-svn-id: trunk@8123 -
2007-07-22 07:47:34 +00:00
florian
baafccf372 + added some constants missed for compatibility, resolves #9182
git-svn-id: trunk@8121 -
2007-07-21 20:19:29 +00:00
florian
6250a3ccb9 * proper definition of O_LARGEFILE for all cpu platforms
git-svn-id: trunk@8120 -
2007-07-21 19:45:44 +00:00
daniel
bb5fea342f * RTL updates needed to successfully cycle with -CIcommon_type.
git-svn-id: trunk@8119 -
2007-07-21 19:22:28 +00:00
florian
dc2a8787a1 + VarArrayPut and VarArrayGet from Igor, resolves #9161
git-svn-id: trunk@8117 -
2007-07-21 18:49:10 +00:00
daniel
f0087dad28 * Write zero to extra bytes of quadruple when converting to it.
git-svn-id: trunk@8115 -
2007-07-21 15:36:38 +00:00
daniel
4861c8b7ed * Convert clongdouble from double <=> quadruple on non-x86.
git-svn-id: trunk@8114 -
2007-07-21 15:32:15 +00:00
daniel
c5ac7638ed * Make clongdouble 16 bytes on Darwin.
git-svn-id: trunk@8113 -
2007-07-21 15:00:52 +00:00
daniel
2fbe0038b9 * Make clongdouble:
- 8 bytes on windows
    - For other platforms: 12 bytes on 32-bit and 16 bytes on 64-bit cpus.
    ... using a record with assignment overloads.

git-svn-id: trunk@8112 -
2007-07-21 13:02:11 +00:00
michael
7f58252179 * Extra mouse button defines from Pavel Ishenin
git-svn-id: trunk@8102 -
2007-07-19 12:08:41 +00:00
micha
dd350255a4 * print thread handle unsigned in unix thread debug info
git-svn-id: trunk@8094 -
2007-07-18 20:14:48 +00:00
micha
721ae51cd0 * dump stack when thread terminates because of exception (unix)
git-svn-id: trunk@8093 -
2007-07-18 20:13:39 +00:00
micha
0e64718cb2 * call HandleErrorAddrFrame on return of signal handler, reduces amount of code called within signal handler (for linux/i386)
git-svn-id: trunk@8092 -
2007-07-18 20:11:07 +00:00
Almindor
920660c460 * fix AssignFile to use "out" if the PARAMOUT define is defined (fixes 9275)
git-svn-id: trunk@8080 -
2007-07-16 21:47:31 +00:00
Almindor
fdecceebd0 * fix UnicodeToUtf8 if Dest is nil, patch by Sergei Gorelkin
git-svn-id: trunk@8078 -
2007-07-16 18:24:32 +00:00
yury
f591ba7e59 * Fixed GetScrollPos and GetScrollRange.
git-svn-id: trunk@8070 -
2007-07-15 22:35:37 +00:00
yury
ef3178cdb1 * Fixed default float exceptions mask for arm fpu. It fixes tw3160c.pp on arm-linux.
git-svn-id: trunk@8054 -
2007-07-14 19:46:22 +00:00
yury
4da2e1a04f * fixed conversion zero int64 to double in softfloat mode.
git-svn-id: trunk@8050 -
2007-07-14 18:45:00 +00:00
Vincent Snijders
9d0445a7ef * fixed checking if file is directory in Erase(File); it was broken if the directory had the FILE_ATTRIBUTE_NOT_CONTENT_INDEXED attribute too
git-svn-id: trunk@8049 -
2007-07-14 13:15:19 +00:00
yury
1807613f88 * Made NaN = 0.0/0.0 for arm-linux. It is calculated as Nan on Florian's arm-linux box. ln(-1.0) is calculated as -Inf on arm-linux and x86. It fixes bug #9132.
git-svn-id: trunk@8045 -
2007-07-14 08:55:54 +00:00
florian
6f6e60b723 * improved SSE check by Martin Schreiber
git-svn-id: trunk@8040 -
2007-07-13 21:16:48 +00:00
daniel
9a8aa52cc5 + Add setcap/getcap
+ Restore clone

git-svn-id: trunk@8033 -
2007-07-12 22:02:11 +00:00
Legolas
9021bbad98 * Added NDS CPU detection routine (ARM7 can't handle dsp extensions)
git-svn-id: trunk@8026 -
2007-07-12 11:29:49 +00:00
Almindor
279422cdde * add comment about stat.h source
git-svn-id: trunk@8022 -
2007-07-11 21:10:27 +00:00
tom_at_work
b62ede20d6 * fix stat record when compiling for ppc/linux using -dFPC_USE_LIBC
git-svn-id: trunk@8021 -
2007-07-11 21:05:23 +00:00
Almindor
b0fde4700f * fix the stupid pascal names in x86_64 linux stat
git-svn-id: trunk@8020 -
2007-07-11 21:02:34 +00:00
Almindor
5c1296e87b * preliminary x86_64 stat for FPC_USE_LIBC
git-svn-id: trunk@8019 -
2007-07-11 21:00:03 +00:00
Almindor
389ea20704 * fix FPC_USES_LIBC cycling, by fixing libc stat records (both 32 and 64 bit)
git-svn-id: trunk@8018 -
2007-07-11 20:55:09 +00:00
yury
04b640880c * fixed exp() for hardfloat on arm.
git-svn-id: trunk@8013 -
2007-07-10 20:31:47 +00:00
Legolas
cdf4841517 * Changed .elf extension to .nef (Not Executable File) for intermediate file builds in the NDS compiler (used on no$gba debugger for symbol table)
* Added nds target to ppudump.pp
* Fixed rtl compilation for nds target
* Changes in prt09.as

git-svn-id: trunk@8002 -
2007-07-09 22:17:36 +00:00
marco
9c45584938 * Safeloadlibrary
git-svn-id: trunk@7985 -
2007-07-09 08:07:42 +00:00
yury
55d6a37865 * Fixed bug #9221.
+ Test.

git-svn-id: trunk@7975 -
2007-07-07 17:37:34 +00:00
Almindor
f71c886752 * move the FUTEX down so uses doesn't get in the way
git-svn-id: trunk@7974 -
2007-07-07 09:23:18 +00:00
Almindor
5baca0cfd3 * fix IPC for FPC_USE_LIBS
* fix shmget to use size_t as per manpage
* directly use external, don't depend on ipccdecl.inc (may be removed if confirmed)

git-svn-id: trunk@7973 -
2007-07-07 09:13:23 +00:00
Almindor
1fa4e17c87 * make FUTEX_OP implemented also with FPC_USE_LIBC since it's a macro
git-svn-id: trunk@7972 -
2007-07-07 08:41:42 +00:00
yury
826ba045f1 * made records not packed to fix bus errors.
git-svn-id: trunk@7966 -
2007-07-06 08:52:32 +00:00
yury
6ffbbb5734 * fixed compilation.
git-svn-id: trunk@7965 -
2007-07-06 08:51:18 +00:00
florian
4917931c63 * don't compile objects in fpu emulation mode
git-svn-id: trunk@7964 -
2007-07-05 20:01:01 +00:00
Jonas Maebe
1eb1bf4c42 * fixed str(extended(0.005):0:2) and related problems
git-svn-id: trunk@7959 -
2007-07-05 15:25:01 +00:00
daniel
47fe287169 * Change to ptruint.
git-svn-id: trunk@7954 -
2007-07-05 07:35:12 +00:00
Jonas Maebe
17e0807a20 * fixed cycle (fpc_getmem argument from ptrint -> ptruint)
git-svn-id: trunk@7951 -
2007-07-04 19:57:07 +00:00
daniel
0c3a2a257d * Convert heap to ptruint.
git-svn-id: trunk@7950 -
2007-07-04 19:46:47 +00:00
Jonas Maebe
0d8594a705 * made cwstring thread safe without locks + test (twide4): widestring
manager now has two extra parameterless procedures (ThreadInitProc
    and ThreadFiniProc) which are called whenever a thread begins/ends,
    and cwstring uses these to create separate iconv handles for
    each thread (via threadvars)
  * renamed UCS4 to UCS-4BE/LE, because UCS4 is not recognised by most
    systems
  * clean up all iconv handles on exit, and check whether they are
    valid before doing so

git-svn-id: trunk@7949 -
2007-07-04 18:10:34 +00:00
daniel
6d059a0640 * Convert to code that also works correct in $T+ case.
* Remove typecasts to longint.

git-svn-id: trunk@7940 -
2007-07-03 21:40:54 +00:00
daniel
02bed23a11 * Prevent range check error at compile time.
git-svn-id: trunk@7938 -
2007-07-03 21:28:59 +00:00
Tomas Hajny
581515d8e5 * give up timeslices while waiting in SysGetMouseEvent, compilation fix plus change of pointer conversion to unsigned
git-svn-id: trunk@7937 -
2007-07-03 21:00:01 +00:00
yury
8a0cc8c888 * Reallocate source winlike widestring on assign. It fixes bug #9190.
* Error handling on allocating winlike widestring.
+ Test.

git-svn-id: trunk@7917 -
2007-07-01 21:57:39 +00:00
yury
ec2d657a32 * Small addition to r7911.
git-svn-id: trunk@7914 -
2007-07-01 20:29:01 +00:00
yury
8379edbb5d * Clean fix for bug #9170. Thanks Peter.
git-svn-id: trunk@7911 -
2007-07-01 18:57:49 +00:00
daniel
296501f036 * Remove more ptrint usage.'
git-svn-id: trunk@7909 -
2007-07-01 15:44:52 +00:00
florian
4ba2a49318 * compilation fixed
git-svn-id: trunk@7904 -
2007-07-01 14:43:06 +00:00
daniel
5e24870b8b * Pointer to integer conversion not necessary here.
git-svn-id: trunk@7902 -
2007-07-01 11:42:34 +00:00