Commit Graph

11228 Commits

Author SHA1 Message Date
Jonas Maebe
6fb86a34bb * the i386/x86-64 cpu units depend on objpas
git-svn-id: trunk@29310 -
2014-12-21 15:08:16 +00:00
pierre
fdbfe7dae0 Remove double unixcp entry which caused installation failure
git-svn-id: trunk@29302 -
2014-12-17 09:57:52 +00:00
marcus
7c42cb8b0c Amicommon: Change back WindowPtr in DiskSize/DiskFree
git-svn-id: trunk@29299 -
2014-12-14 22:38:05 +00:00
marcus
9c635671ce amicommon: DiskSize/DiskFree implemented with some helper functions
git-svn-id: trunk@29297 -
2014-12-14 21:33:28 +00:00
marcus
6767ed7103 Amiga, AROS, MorphOS: Sysutils, GetDirs must also cut at DriveSeparator
git-svn-id: trunk@29294 -
2014-12-14 20:16:23 +00:00
florian
09220c6ad3 + add GetIconInfo, patch by Andrew G. Khodotov, resolves #26772
git-svn-id: trunk@29291 -
2014-12-14 18:11:03 +00:00
Jonas Maebe
63bd65942b * fall back to UTF-8 for darwin in unixcp.GetSystemCodePage if no LC_*/LANG
environment variables are set
  * if no LC_*/LANG environment variables are set, let cwstring fall back to
    unixcp.GetSystemCodePage
   o this is mainly to avoid problems on OS X, where under certain
     circumstances these variables are not set for GUI programs and
     as a result we set the system code page to ASCII

git-svn-id: trunk@29257 -
2014-12-11 19:11:11 +00:00
svenbarth
fe49a4b60c Fix Fp*Stat calls when compiling with FPC_USE_LIBC for x86_64-linux.
rtl/linux/ostypes.inc:
  * correctly define the _STAT_VER_* constants for x86_64 (the ifdefs are based on those in the C header; for other platforms this needs to be checked)

git-svn-id: trunk@29241 -
2014-12-09 21:23:39 +00:00
svenbarth
01278e2800 Fix three warnings when compiling with FPC_USE_LIBC.
osmacro.inc:
  * FpFstat, fpLstat and FpStat: correctly set the result value instead of relying on the result location being the same for cdecl functions as for register functions

git-svn-id: trunk@29240 -
2014-12-09 21:21:45 +00:00
marcus
96ac520e73 AmiCommon: DiskFree/DiskSize for >2GB
AROS: fast BPTR Pointer (ABIv0)

git-svn-id: trunk@29222 -
2014-12-08 21:49:01 +00:00
Jonas Maebe
cec82a1540 * translate placeholder code page numbers into actual code pages in
fpc_ansistr_to_widechararray(), so that CP_ACP/CP_OEM etc are properly
    handled (fixes assign/assignfile with non-ansi characters in source files
    that don't explicitly specify the code page)

git-svn-id: trunk@29218 -
2014-12-08 12:11:33 +00:00
marco
2a57956032 * dfly rtl dir from mantis #27091
git-svn-id: trunk@29214 -
2014-12-07 20:35:05 +00:00
marco
2578514853 * first dragonfly patch (existing most). Mantis #27091
git-svn-id: trunk@29213 -
2014-12-07 20:27:02 +00:00
florian
0d717c7e0e * update by newer lazarus version
git-svn-id: trunk@29212 -
2014-12-07 18:44:33 +00:00
sergei
92447a9a20 * Moved local typed constants having the same value in several routines to global scope.
git-svn-id: trunk@29207 -
2014-12-06 13:07:32 +00:00
pierre
606b0a99c7 Remove wrong close call after failed Reset
git-svn-id: trunk@29200 -
2014-12-04 13:10:08 +00:00
Jeppe Johansen
d4461efae3 Fix broken ldrd assembler syntax in RTL
git-svn-id: trunk@29187 -
2014-11-30 17:30:46 +00:00
Tomas Hajny
1dceddc302 * minor update of the GetLastOSError support infrastructure
git-svn-id: trunk@29179 -
2014-11-29 01:43:38 +00:00
Tomas Hajny
c3fbfcb27b * first part of UnicodeStringManager routines implementation for OS/2
git-svn-id: trunk@29178 -
2014-11-29 01:42:29 +00:00
Tomas Hajny
acbca7254d * remove unused local variable
git-svn-id: trunk@29177 -
2014-11-29 01:29:31 +00:00
pierre
1a83b76a8f Add fpwidestring unit
git-svn-id: trunk@29146 -
2014-11-25 10:52:52 +00:00
pierre
e0aafc571a Add fpwidestring unit
git-svn-id: trunk@29145 -
2014-11-25 10:48:28 +00:00
pierre
7ffca97a68 OpenBSD support for OS version specific syscall numbers
git-svn-id: trunk@29136 -
2014-11-23 21:59:25 +00:00
pierre
1d1215ede3 Include setsysnr.inc and call SetSyscallNumbers if FPC_HAS_SETSYSNR_INC is defined
git-svn-id: trunk@29135 -
2014-11-23 21:57:33 +00:00
pierre
6141820af3 Regenerate after: Set explicit rules for sysctl and baseunix compilation
git-svn-id: trunk@29134 -
2014-11-23 21:55:30 +00:00
pierre
aa396cd157 * Set explicit rules for sysctl and baseunix compilation
git-svn-id: trunk@29133 -
2014-11-23 21:54:17 +00:00
pierre
7bbb30ccd4 * Reset filerec mode field to fmClosed if the system call to open the file failed
git-svn-id: trunk@29132 -
2014-11-23 21:49:29 +00:00
sergei
f456bb3a25 * Re-implement ln(x) also for x87-based x86_64 targets (counterpart of r27367,r27518,r27552,r27553 for i386 target).
git-svn-id: trunk@29131 -
2014-11-23 21:37:32 +00:00
sergei
ae68a4962f - RTL: merged functionality of InitWideStringManager into InitUnicodeStringManager and removed the former.
git-svn-id: trunk@29130 -
2014-11-23 21:09:00 +00:00
florian
4d5f1f04fe * solution in r29126 was brute force, fixed
git-svn-id: trunk@29128 -
2014-11-23 20:37:20 +00:00
svenbarth
2f613f71d7 Readd RT_RCDATA to the Types unit, but with a deprecated message so that users use the Windows one instead.
rtl/objpas/types.pp:
  + readd RT_RCDATA as a reference to the one declared in the Windows unit for Win32 and Win64; also add a deprecated message that advices users to use the one declared in the Windows instead.

git-svn-id: trunk@29127 -
2014-11-23 20:32:21 +00:00
florian
9a31cba3d3 * do not blindly insert decimal seperators in StrToFloat, resolves #27029
git-svn-id: trunk@29126 -
2014-11-23 20:18:19 +00:00
nickysn
4fe1ec9c51 * fixed TSingleRec.SetSign on 16 and 8-bit CPUs
git-svn-id: trunk@29120 -
2014-11-23 14:14:03 +00:00
sergei
66d735c536 - MIPS: forward declaration of fpc_threadvar_relocate_proc is not needed.
git-svn-id: trunk@29115 -
2014-11-22 20:48:53 +00:00
sergei
3a5e6485b5 - RTL: removed InitVariantManager, it was an empty procedure since day 1.
git-svn-id: trunk@29114 -
2014-11-22 20:35:46 +00:00
pierre
673cc28f73 Regenerated after commit 29104: Add missing rule for unicodenmtable unit
git-svn-id: trunk@29105 -
2014-11-22 14:08:55 +00:00
pierre
c013d0b6e2 Add missing rule for unicodenmtable unit
git-svn-id: trunk@29104 -
2014-11-22 14:08:21 +00:00
svenbarth
ace1ea0070 Fix compilation of NativeNT RTL
rtl/objpas/types.pp:
  - remove declaration of RT_RCDATA which is part of System since we have resource support

git-svn-id: trunk@29102 -
2014-11-21 14:33:58 +00:00
pierre
34012444af Regenerated Makefile after fix compilation of wince RTL with make 3.82 on windows
git-svn-id: trunk@29101 -
2014-11-21 14:28:31 +00:00
pierre
cf1124a83c Fix compilation of wince RTL with make 3.82 on windows
git-svn-id: trunk@29100 -
2014-11-21 14:28:13 +00:00
pierre
8df8c22848 Call Errno2inoutres for nativent failure calling NtClose inside do_close
git-svn-id: trunk@29096 -
2014-11-20 22:37:25 +00:00
pierre
90537e94a0 Call Errno2noutres if system call to close the handle fails in do_close for win and unix
git-svn-id: trunk@29095 -
2014-11-20 22:00:35 +00:00
pierre
260c6583cf Only set StdInputHandle, StdOutputHandle and StdErrorHandle once
git-svn-id: trunk@29094 -
2014-11-20 21:57:15 +00:00
florian
7180d184c5 + implements TExtended80Rec, TDoubleRec, TSingleRec
+ test

git-svn-id: trunk@29084 -
2014-11-16 20:47:33 +00:00
Tomas Hajny
bf7e71da47 * new constants for options used in recently added APIs
git-svn-id: trunk@29075 -
2014-11-15 11:15:29 +00:00
Tomas Hajny
8c7fc80580 * yet more OS/2 API functions added
git-svn-id: trunk@29073 -
2014-11-14 18:59:52 +00:00
yury
c40960466a * More correctly scan Elf Auxiliary Vector. Fixes possible crash when the first vector entry is AT_NULL. Issue #26973.
git-svn-id: trunk@29065 -
2014-11-12 14:52:56 +00:00
marco
3fbcca0e77 * change ulargeinteger quadpart to unsinged, mantis #27023
git-svn-id: trunk@29059 -
2014-11-11 08:30:14 +00:00
pierre
d01bf2dea3 Multifield pthread_attr_t for NetBSD
git-svn-id: trunk@29058 -
2014-11-10 23:13:25 +00:00
pierre
5659e910ef Also define __CPU_SIMPLE_LOCK_PAD for x86_64 netbsd
git-svn-id: trunk@29057 -
2014-11-10 23:12:43 +00:00