Commit Graph

375 Commits

Author SHA1 Message Date
marco
199f7535b4 * fix pipe call for openbsd. fpmake now seems to work.
git-svn-id: trunk@19440 -
2011-10-09 19:34:21 +00:00
pierre
a6280de177 * Fix getdirentries problem for openbsd
git-svn-id: trunk@19418 -
2011-10-08 16:46:38 +00:00
pierre
03b4681c1b * Rectify position of BirthTime fields in Stat record for openbsd
git-svn-id: trunk@19416 -
2011-10-08 13:01:05 +00:00
pierre
d1b2e2d439 Fix fpgetcwd for openbsd
git-svn-id: trunk@19410 -
2011-10-07 21:51:03 +00:00
pierre
902ba04ecd * Fix stat type for openbsd
git-svn-id: trunk@19409 -
2011-10-07 21:28:08 +00:00
pierre
7f69e6426d * Try to update i386/openbsd port
git-svn-id: trunk@19350 -
2011-10-03 23:22:28 +00:00
pierre
b9009d8c02 * Fix PIC code for BSD x86_64 syscall and x86_64 freebsd startup assembler files
git-svn-id: trunk@19181 -
2011-09-22 21:16:42 +00:00
marco
07fabab526 * fpgetsid, Mantis
git-svn-id: trunk@19178 -
2011-09-22 13:21:38 +00:00
Jonas Maebe
6920c7a0c1 * fixed stat/fstat-related types for iphonesim platform
(mantis )

git-svn-id: trunk@19078 -
2011-09-17 09:31:32 +00:00
pierre
889caf5911 * fix type of fourth parameter of msgrcv function
git-svn-id: trunk@16409 -
2010-11-23 23:44:34 +00:00
pierre
56a35214ad * Avoid warning at compilation
git-svn-id: trunk@15894 -
2010-08-24 14:57:01 +00:00
marco
6cc641c7bb * another fix for mmap from Chrisopher Key. 32-bit this time. Mostly in
unused arguments atm, but could be important for other uses of mmap.

git-svn-id: trunk@15871 -
2010-08-22 09:46:17 +00:00
marco
c59973d149 * patch from Christopher Key (via Alonso Cardenas Marquez) to fix mmap
syscall.  Recent versions of FreeBSD check the seventh parameter, and
    that code wasn't correct in FPC.

git-svn-id: trunk@15785 -
2010-08-12 10:56:31 +00:00
daniel
1009a84e25 + Add modify_ldt to linux unit
+ Add sched_yield to linux unit
  - Remove clone for m68k from linux unit (unimplemented assembler section)
  + Add fpsigtimedwait to baseunix unit

git-svn-id: trunk@15602 -
2010-07-18 21:53:26 +00:00
marco
5fac78e334 * start exchanging untyped "Pointer" handle types to pointer to empty records.
see discussion mantis 16607

git-svn-id: trunk@15404 -
2010-06-10 20:22:22 +00:00
Jonas Maebe
255a9e7d22 * dirent structure available on 10.6 and iPhoneOS
* added some missing private fields to "dir" type for all Darwin platforms

git-svn-id: trunk@14334 -
2009-12-05 11:29:59 +00:00
marco
778505701c * set/getrlimit now also visible in baseunix when syscalls are used.
on systems that force ugetrlimit, use that transparently. (since 
    ugetrlimit is not posix in theory or practice, we can't export it),
    resolves 13916

git-svn-id: trunk@13903 -
2009-10-17 19:14:09 +00:00
marco
5121f470a2 * moved ugetrlimit to the implementation (as linux specific call it shouldn't be exported)
* syscall implementation for FreeBSD of get/setrlimit

git-svn-id: trunk@13875 -
2009-10-16 18:47:43 +00:00
Jonas Maebe
c40d6cca8b + Darwin-specific fcntl constants
git-svn-id: trunk@13186 -
2009-05-23 10:10:56 +00:00
Jonas Maebe
f6d452c2c0 * remove the RTL's installed signal handlers at the end of the system
unit's initialization code in case we're in a library
  + implemented InquireSignal(), AbandonSignalHandler(), HookSignal() and
    UnhookSignal() in the sysutils unit
  * for Kylix compatibility, these routines support operating on
    SIGINT and SIGQUIT as well, although they are not hooked by default
    by FPC. The run time errors/exception codes for these signals are
    resp. 217 and 233 (same as in Kylix; I changed ENoWideStringSupport
    to 234).
  * changed the BSD syscall version of fpsigaction to use pointer
    rather than "var" arguments (compatible with other targets, and
    required to be able to pass nil arguments inside the system unit)
  -> together fixes mantis 

git-svn-id: trunk@13077 -
2009-05-02 09:40:44 +00:00
Jonas Maebe
d6f3ecc9fc * fixed definition of ino_t (64 instead of 32 bit) and of stat record
(slightly different order of fields) for darwin/arm

git-svn-id: trunk@13069 -
2009-05-01 11:18:18 +00:00
Jonas Maebe
1f6ec36064 * save/restore errno inside reenable_signal, because it can be called
from inside signal handlers

git-svn-id: trunk@12997 -
2009-04-04 09:59:41 +00:00
Jonas Maebe
590f4d2efc - deleted (old 1.0.x compatibility file)
git-svn-id: trunk@12928 -
2009-03-19 22:38:05 +00:00
Jonas Maebe
a8eb1cc30b - removed FPC_DARWIN_JMP_MAIN and FPC_DARWIN_PASCALMAIN defines and ifdefs
git-svn-id: trunk@12897 -
2009-03-15 12:21:59 +00:00
Jonas Maebe
d4d7b695c7 - removed all "islibrary:=false;" assignments from system unit
initialisation code, because that's a typed constant already initialised
    to that value and it interferes with a generic solution to set islibrary
    to true for libraries

git-svn-id: trunk@12376 -
2008-12-17 17:48:04 +00:00
Jonas Maebe
d9c5cd76cd * some more darwin/arm stuff I forgot to commit earlier:
o softfloat support for bsd/system.pp (enabled when compiling for ARM)
    o include darwin/arm sigaction structs in darwin/signal.inc when
      compiling for ARM (can't commit the file itself that contains
      those structs due to licensing issues though)

git-svn-id: trunk@12327 -
2008-12-10 21:10:59 +00:00
micha
4594758ae5 + add poll support for unix
git-svn-id: trunk@12128 -
2008-11-16 17:05:47 +00:00
marco
699a0ba70f * another part of Almindor's fix.
git-svn-id: trunk@12007 -
2008-11-01 11:53:21 +00:00
Almindor
dbe3cfba21 * remove unused oldfpccall from amd64 BSD syscall code
git-svn-id: trunk@12003 -
2008-10-31 18:19:44 +00:00
Almindor
1ed71f011c * proper fix for the kqueue struct. Use PtrUInt and PtrInt respectively...
git-svn-id: trunk@11994 -
2008-10-29 19:17:53 +00:00
marco
3f5511661a * lots of little longint() to TSysParam() fixes. Ancient code, brr.
git-svn-id: trunk@11790 -
2008-09-15 20:01:17 +00:00
florian
7ab3b2e3f6 * jb -> jnb
git-svn-id: trunk@11771 -
2008-09-13 18:17:13 +00:00
florian
9c6e831c7a * fixed several syscall stuff for x86_64-freebsd
git-svn-id: trunk@11766 -
2008-09-13 15:21:17 +00:00
Jonas Maebe
11ede88bec * fixed compilation
git-svn-id: trunk@11741 -
2008-09-10 20:54:00 +00:00
Jonas Maebe
7aee2f3d71 * moved fplstat(ansistring,pstat) overload to bunxovl(h).inc, so all
platforms have (fixes compilation for FPC_USE_LIBC platforms after
    r11681)

git-svn-id: trunk@11693 -
2008-09-02 10:14:45 +00:00
marco
381ab23ad5 * remove need for freebsd5 directive. merge to fixes after rc1
git-svn-id: trunk@11142 -
2008-05-31 16:09:18 +00:00
Jonas Maebe
57087da620 * return an empty string for paramstr(value>paramcount) (already correct
for other targets, mantis )

git-svn-id: trunk@10704 -
2008-04-18 16:56:44 +00:00
marco
36b557b142 * quick test successful -> commit
git-svn-id: trunk@10626 -
2008-04-11 15:00:26 +00:00
peter
5acb3649df * revert r9557, the performance impact is to big for an academic corner
case optimziation

git-svn-id: trunk@9603 -
2007-12-31 13:36:16 +00:00
yury
0dcad4d822 * Implemented late thread manager initialization. Thread manager code is not included to executable if thread stuff are not used. WinCE executable size is reduced by 4KB, Win32 executable size is reduced by 3KB. No testsuite regressions.
git-svn-id: trunk@9557 -
2007-12-28 14:40:28 +00:00
Jonas Maebe
69c97f3ac6 + call SysResetFPU and SysInitFPU like for other platforms
git-svn-id: trunk@9458 -
2007-12-15 15:15:28 +00:00
Jonas Maebe
b20652821d + call fpc_cpucodeinit, so sse_support gets initialised for *bsd/darwin
+ support for catching sigill on FreeBSD in case not running on
    an SSE2-capable cpu (untested) -- Darwin only runs on SSE2-capable 
    cpus

git-svn-id: trunk@9419 -
2007-12-08 22:56:58 +00:00
Jonas Maebe
f60c72b773 * fixed ioctl for non-linux: the third parameter is "..." there rather
than a pointer. The interface still accepts a plain pointer for
    backwards compatibility.

git-svn-id: trunk@9176 -
2007-11-10 18:22:37 +00:00
Almindor
fdcc5f4332 * use TIOCtlRequest instead of hard ifdefs to remove warnings
git-svn-id: trunk@8679 -
2007-09-29 14:22:41 +00:00
Almindor
d2e4f53a13 * hopefuly fix the fp* problems for stat and others
git-svn-id: trunk@8405 -
2007-09-08 13:51:39 +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
marco
2214c11330 * removed restoration ofa compability that never existed
git-svn-id: trunk@7267 -
2007-05-04 22:06:12 +00:00
marco
fd6f6cf7e9 * fix for 8801. mmap constants inconsistancy. Old constants are aliased for compat. non portable moved to OS specific units (merge)
git-svn-id: trunk@7265 -
2007-05-04 21:23:02 +00:00
marco
96ac89f6d5 * 64-bit FreeBSD port files
git-svn-id: trunk@7082 -
2007-04-09 09:09:01 +00:00
marco
793ef9fdf1 * little fixes in prep of x86_64 port.
git-svn-id: trunk@6979 -
2007-03-24 21:32:16 +00:00
daniel
d030103742 + Restore "stat" data structure in backward compatible state
git-svn-id: trunk@6963 -
2007-03-23 22:23:24 +00:00
Jonas Maebe
c13ff3729b * Merged 2.3 branch changes:
+ darwin/ppc64 support
    + val/str/read(ln)/write(ln) support for enums
    + simple cse at the node tree level
    + if-node simplify support
    + simple ssa support for memory locations
    + support for optional overflow/rangecheck boolean parameters for
      operators
    * a lot of unification of the ppc32/ppc64 code generators


........
r6380 | jonas | 2007-02-08 21:25:36 +0100 (Thu, 08 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ncgld.pas
   M /branches/fpc_2_3/compiler/tgobj.pas
   A /branches/fpc_2_3/tests/webtbs/tw8283.pp

  + support for replacing the memory location of a temp (including
    local variables) with that of another temp to avoid unnecessary
    copies (mantis )

........
r6381 | jonas | 2007-02-08 22:53:36 +0100 (Thu, 08 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/nflw.pas
   A /branches/fpc_2_3/tests/webtbs/tw8282.pp

  + simplify support for ifn (based on patch by Florian)

........
r6386 | peter | 2007-02-09 13:48:53 +0100 (Fri, 09 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/htypechk.pas
   M /branches/fpc_2_3/compiler/ncal.pas
   M /branches/fpc_2_3/compiler/symconst.pas

  * overflow,rangecheck optional parameters for operators, patch from 8281

........
r6391 | jonas | 2007-02-09 23:52:13 +0100 (Fri, 09 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc/agppcgas.pas
   M /branches/fpc_2_3/compiler/powerpc64/cpunode.pas
   D /branches/fpc_2_3/compiler/powerpc64/nppcinl.pas
   M /branches/fpc_2_3/compiler/ppcgen/ngppcinl.pas

  * merged fsqrt(s) support to common powerpc unit, activate for ppc32
    if -Op970 is used (still default for ppc64, since default cpu there
    is already ppc970)

........
r6394 | jonas | 2007-02-10 18:58:47 +0100 (Sat, 10 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc/cgcpu.pas
   M /branches/fpc_2_3/compiler/powerpc64/cgcpu.pas
   M /branches/fpc_2_3/compiler/ppcgen/cgppc.pas

  * adapted a_jmp_name for darwin/ppc64
  * merged g_intf_wrapper for ppc32 and ppc64, and added darwin/ppc64
    support to it

........
r6396 | jonas | 2007-02-10 20:16:06 +0100 (Sat, 10 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/cgobj.pas

  + darwin/ppc64 support for g_indirect_sym_load

........
r6397 | jonas | 2007-02-10 20:22:49 +0100 (Sat, 10 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc/cgcpu.pas
   M /branches/fpc_2_3/compiler/powerpc64/cgcpu.pas
   M /branches/fpc_2_3/compiler/ppcgen/cgppc.pas

  + darwin/ppc64 support to ppc64's fixref
  * moved ppc32 a_load_store to cgppc and use it for darwin/ppc64 as
    well (its relocatable symbols are only 32 bits large)

........
r6399 | jonas | 2007-02-10 22:02:37 +0100 (Sat, 10 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems.pas

  + system_x86_64_darwin identifier
  + set default source system for system_x86_64_darwin and
    system_powerpc64_darwin

........
r6404 | jonas | 2007-02-10 23:01:23 +0100 (Sat, 10 Feb 2007) | 5 lines
Changed paths:
   M /branches/fpc_2_3/compiler/aasmdata.pas
   M /branches/fpc_2_3/compiler/aggas.pas
   M /branches/fpc_2_3/compiler/cgobj.pas
   M /branches/fpc_2_3/compiler/cgutils.pas
   M /branches/fpc_2_3/compiler/cresstr.pas
   M /branches/fpc_2_3/compiler/dbgdwarf.pas
   M /branches/fpc_2_3/compiler/dbgstabs.pas
   M /branches/fpc_2_3/compiler/ncgutil.pas
   M /branches/fpc_2_3/compiler/ogelf.pas
   M /branches/fpc_2_3/compiler/pdecvar.pas
   M /branches/fpc_2_3/compiler/pmodules.pas
   M /branches/fpc_2_3/compiler/symdef.pas
   M /branches/fpc_2_3/compiler/systems.pas

  + system_x86_64_darwin identifier
  + systems_darwin set which collects all darwin variants
  + added support for darwin/ppc64 and darwin/x86_64 where needed in
    the generic code

........
r6406 | jonas | 2007-02-10 23:24:32 +0100 (Sat, 10 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/cgobj.pas

  * ifdef cpu64 -> ifdef cpu64bit

........
r6409 | jonas | 2007-02-11 00:34:04 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/pdecvar.pas

  * fixed ppc64 compilation

........
r6413 | jonas | 2007-02-11 12:41:27 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/bsd/system.pp
   M /branches/fpc_2_3/rtl/darwin/powerpc/sig_cpu.inc
   M /branches/fpc_2_3/rtl/darwin/signal.inc

  + darwin/ppc64 support for signal routines

........
r6415 | jonas | 2007-02-11 13:54:53 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems/i_linux.pas

  * set abi of linux/ppc64 to abi_powerpc_sysv

........
r6416 | jonas | 2007-02-11 13:55:51 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc64/cputarg.pas
   M /branches/fpc_2_3/compiler/systems/i_bsd.pas
   M /branches/fpc_2_3/compiler/systems/t_bsd.pas

  + darwin/ppc64 source and target information

........
r6418 | jonas | 2007-02-11 14:19:55 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/powerpc64/math.inc

  * darwin/ppc64 compilation fixes

........
r6419 | jonas | 2007-02-11 14:22:22 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc/cgcpu.pas
   M /branches/fpc_2_3/compiler/powerpc64/cgcpu.pas
   M /branches/fpc_2_3/compiler/ppcgen/cgppc.pas

  * darwin/ppc64 needs the 32 bit version of a_loadaddr_ref_reg

........
r6420 | jonas | 2007-02-11 14:22:55 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/utils/fpcm/fpcmmain.pp

  + darwin/ppc64 support

........
r6426 | jonas | 2007-02-11 16:13:19 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc64/rappcgas.pas

  * fixed refaddr parsing for darwin/ppc64

........
r6427 | jonas | 2007-02-11 16:14:21 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc/agppcgas.pas
   M /branches/fpc_2_3/compiler/powerpc64/agppcgas.pas
   A /branches/fpc_2_3/compiler/ppcgen/agppcutl.pas

  * moved ppc32/ppc64 assembler writer helpers to a common unit

........
r6430 | jonas | 2007-02-11 17:53:23 +0100 (Sun, 11 Feb 2007) | 4 lines
Changed paths:
   D /branches/fpc_2_3/rtl/darwin/powerpc/sig_cpu.inc
   D /branches/fpc_2_3/rtl/darwin/powerpc/sighnd.inc
   A /branches/fpc_2_3/rtl/darwin/powerpc64
   A /branches/fpc_2_3/rtl/darwin/powerpc64/sig_cpu.inc
   A /branches/fpc_2_3/rtl/darwin/powerpc64/sighnd.inc
   A /branches/fpc_2_3/rtl/darwin/ppcgen
   A /branches/fpc_2_3/rtl/darwin/ppcgen/ppchnd.inc (from /branches/fpc_2_3/rtl/darwin/powerpc/sighnd.inc:6422)
   A /branches/fpc_2_3/rtl/darwin/ppcgen/sig_ppc.inc (from /branches/fpc_2_3/rtl/darwin/powerpc/sig_cpu.inc:6422)
   M /branches/fpc_2_3/rtl/darwin/signal.inc

  * fixed ppc/ppc64 signal include handling (both real files are in
    ppcgen, dummies in powerpc and powerpc64 which include those files)
    (1st step because pre-commit filter can't handle replaced files)

........
r6431 | jonas | 2007-02-11 17:53:47 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   A /branches/fpc_2_3/rtl/darwin/powerpc/sig_cpu.inc
   A /branches/fpc_2_3/rtl/darwin/powerpc/sighnd.inc

  * second step of signal include patch

........
r6432 | jonas | 2007-02-11 19:00:12 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems/t_bsd.pas

  * changed darwin checks to use systems_darwin constant

........
r6433 | jonas | 2007-02-11 19:05:38 +0100 (Sun, 11 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc64/cgcpu.pas

  * handle non-multiple-of-4 offsets with 64 bit loads/stores for
    darwin/ppc64

........
r6434 | jonas | 2007-02-11 19:05:56 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   D /branches/fpc_2_3/compiler/powerpc/agppcgas.pas
   D /branches/fpc_2_3/compiler/powerpc64/agppcgas.pas
   A /branches/fpc_2_3/compiler/ppcgen/agppcgas.pas (from /branches/fpc_2_3/compiler/ppcgen/agppcutl.pas:6427)
   D /branches/fpc_2_3/compiler/ppcgen/agppcutl.pas

  * completely merged ppc assembler writers

........
r6435 | jonas | 2007-02-11 19:06:40 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/darwin/console.pp
   M /branches/fpc_2_3/rtl/darwin/termiosproc.inc

  * fixed 64 bit compilation

........
r6436 | jonas | 2007-02-11 19:09:28 +0100 (Sun, 11 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/packages/extra/Makefile.fpc

  * universal interfaces aren't 64 bit ready yet -> only compile for
    darwin/ppc and darwin/i386

........
r6438 | jonas | 2007-02-11 19:22:34 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   A /branches/fpc_2_3/tests/test/cg/obj/darwin/powerpc64
   A /branches/fpc_2_3/tests/test/cg/obj/darwin/powerpc64/ctest.o
   A /branches/fpc_2_3/tests/test/cg/obj/darwin/powerpc64/tcext3.o
   A /branches/fpc_2_3/tests/test/cg/obj/darwin/powerpc64/tcext4.o
   A /branches/fpc_2_3/tests/test/cg/obj/darwin/powerpc64/tcext5.o

  + compiled for darwin/ppc64

........
r6439 | jonas | 2007-02-11 20:24:42 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ppcgen/cgppc.pas

  * patch from Thomas to fix linux/ppc64

........
r6440 | jonas | 2007-02-11 20:25:15 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems.pas

  * fixed setting source OS for darwin/ppc64

........
r6444 | florian | 2007-02-11 22:24:20 +0100 (Sun, 11 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/globtype.pas
   M /branches/fpc_2_3/compiler/nopt.pas
   M /branches/fpc_2_3/compiler/nutils.pas
   M /branches/fpc_2_3/compiler/optcse.pas
   M /branches/fpc_2_3/compiler/psub.pas

+ first node cse implementation

........
r6445 | jonas | 2007-02-11 22:30:07 +0100 (Sun, 11 Feb 2007) | 6 lines
Changed paths:
   M /branches/fpc_2_3/compiler/cresstr.pas

  * hack to work around strange darwin/ppc64 linker bug: it seems to
    have problems if you put a global symbol at the end of a section
    without any data following (at least in case of the resource strings
    section) -> add dummy byte at the end for darwin/ppc64 (otherwise
    it messes up the address of the first symbol stub entry)

........
r6449 | jonas | 2007-02-11 23:23:44 +0100 (Sun, 11 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems/i_bsd.pas

  * cpupowerpc is defined for both ppc32 and ppc64 ->
    changed to cpupowerpc32 to avoid defining source
    wrongly on ppc64

........
r6450 | jonas | 2007-02-11 23:26:34 +0100 (Sun, 11 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ppcgen/ngppcset.pas

  * disable jump tables for darwin/ppc64 for now, don't work
    yet for some reason

........
r6451 | florian | 2007-02-11 23:54:37 +0100 (Sun, 11 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ncal.pas
   M /branches/fpc_2_3/compiler/nutils.pas
   M /branches/fpc_2_3/compiler/optcse.pas

* improved cse
* better complexity calculation for subscript nodes with classes or interfaces

........
r6456 | jonas | 2007-02-12 19:33:22 +0100 (Mon, 12 Feb 2007) | 4 lines
Changed paths:
   M /branches/fpc_2_3/compiler/nutils.pas

  + support for notn,shln,shrn,equaln,unequaln,gtn,gten,ltn,lten in
    node_cplexity()
  * mark muln,divn,modn as more complex

........
r6469 | jonas | 2007-02-13 15:56:01 +0100 (Tue, 13 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/optcse.pas

  * fixed when cross-compiling a 64 bit compiler from a 32 bit platform

........
r6471 | jonas | 2007-02-13 16:17:16 +0100 (Tue, 13 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc64/cputarg.pas

  * include stabs support (can work on darwin/ppc64, but doesn't work
    yet)

........
r6473 | jonas | 2007-02-13 16:45:48 +0100 (Tue, 13 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc64/cgcpu.pas
   M /branches/fpc_2_3/compiler/powerpc64/cpupara.pas

  * R2 is a volatile and usable register under darwin/ppc64
  * R13 is a reserved non-volatile register under darwin/ppc64 (tls)

........
r6479 | jonas | 2007-02-13 20:40:50 +0100 (Tue, 13 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems/i_bsd.pas

  * maxCrecordalign seems to have to be 8 rather 4, in spite of what
    the ABI docs say (although they are contradictory to some extent)

........
r6487 | jonas | 2007-02-14 15:57:40 +0100 (Wed, 14 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/tests/webtbs/tw8153a.pp

  * fixed for darwin/ppc64

........
r6488 | jonas | 2007-02-14 15:58:56 +0100 (Wed, 14 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/tests/webtbs/tw7851a.pp

  * fixed for darwin/ppc64

........
r6494 | jonas | 2007-02-15 19:36:55 +0100 (Thu, 15 Feb 2007) | 3 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems/i_bsd.pas

  * set default debug info for darwin/ppc64 to dwarf2 since
    it works better than stabs currently

........
r6500 | jonas | 2007-02-15 21:38:16 +0100 (Thu, 15 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/version.pas

  * updated version to 2.3.0

........
r6505 | jonas | 2007-02-15 22:39:28 +0100 (Thu, 15 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/version.pas

  * changed version to 2.3.1

........
r6511 | jonas | 2007-02-16 15:17:24 +0100 (Fri, 16 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/powerpc64/itcpugas.pas

  * system_powerpc_darwin -> system_powerpc64_darwin

........
r6546 | daniel | 2007-02-18 15:48:54 +0100 (Sun, 18 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ncginl.pas
   M /branches/fpc_2_3/compiler/ncgld.pas
   M /branches/fpc_2_3/compiler/ncgrtti.pas
   M /branches/fpc_2_3/compiler/ncnv.pas
   M /branches/fpc_2_3/compiler/ninl.pas
   M /branches/fpc_2_3/compiler/nld.pas
   M /branches/fpc_2_3/compiler/nutils.pas
   M /branches/fpc_2_3/compiler/pinline.pas
   M /branches/fpc_2_3/rtl/inc/astrings.inc
   M /branches/fpc_2_3/rtl/inc/compproc.inc
   M /branches/fpc_2_3/rtl/inc/sstrings.inc
   M /branches/fpc_2_3/rtl/inc/text.inc
   M /branches/fpc_2_3/rtl/inc/wstrings.inc

  + Val/str/read/write support for enumeration types.

........
r6547 | daniel | 2007-02-18 17:01:20 +0100 (Sun, 18 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/inc/sstrings.inc

  * Fix val code that I broke.

........
r6571 | daniel | 2007-02-20 09:27:44 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/inc/astrings.inc
   M /branches/fpc_2_3/rtl/inc/sstrings.inc
   M /branches/fpc_2_3/rtl/inc/text.inc
   M /branches/fpc_2_3/rtl/inc/wstrings.inc

  * o2s -> ord2str, s2o -> str2ord

........
r6572 | daniel | 2007-02-20 09:33:30 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ncgld.pas
   M /branches/fpc_2_3/compiler/ncgrtti.pas
   M /branches/fpc_2_3/compiler/ninl.pas
   M /branches/fpc_2_3/compiler/nld.pas

  * o2s -> ord2str, s2o -> str2ord

........
r6574 | daniel | 2007-02-20 12:07:58 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/inc/compproc.inc

  * o2s -> ord2str, s2o -> str2ord

........
r6578 | daniel | 2007-02-20 22:18:49 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/rtl/inc/text.inc

  * Change longint to valsint.

........
r6579 | daniel | 2007-02-20 22:29:09 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ninl.pas

  * Handle ordinal currency types.

........
r6580 | jonas | 2007-02-20 22:29:11 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ncgrtti.pas

  * fixed compilation for cpurequiresproperalignment

........
r6581 | jonas | 2007-02-20 22:30:21 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ninl.pas

  * fixed typo

........
r6582 | daniel | 2007-02-20 22:36:19 +0100 (Tue, 20 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/ninl.pas

  * Set is_real to true.

........
r6590 | jonas | 2007-02-21 20:23:54 +0100 (Wed, 21 Feb 2007) | 2 lines
Changed paths:
   M /branches/fpc_2_3/compiler/systems/i_bsd.pas

  * set tf_dwarf_only_local_labels for darwin/ppc64

git-svn-id: trunk@6720 -
2007-03-04 20:16:57 +00:00
Jonas Maebe
31fa4e78c9 * call libc's exit instead of _exit when doing a halt, so the
libc atexit handlers are called

git-svn-id: trunk@6078 -
2007-01-19 21:05:28 +00:00
Jonas Maebe
60ba78459c * pthread_t/TThreadID is a pointer on all BSDs/Darwin
git-svn-id: trunk@5285 -
2006-11-08 12:24:39 +00:00
marco
6b6cf119ef * fpgetcwd syscall edition returnvalue fix.
git-svn-id: trunk@5258 -
2006-11-05 21:52:58 +00:00
Almindor
0fcb772a28 * removes syscalls unit from bsd.pas uses clause if libc is used
git-svn-id: trunk@5240 -
2006-11-05 12:51:34 +00:00
florian
4626f2c489 * NetBSD rtl compiles again
git-svn-id: trunk@5049 -
2006-10-28 22:17:49 +00:00
Jonas Maebe
307520b550 * change argc from cardinal into longint
git-svn-id: trunk@4801 -
2006-10-04 21:31:46 +00:00
Almindor
5d469b6847 * changed "directives" macro to "extdecl" to be more lazarus-friendly
git-svn-id: trunk@4778 -
2006-10-03 16:38:36 +00:00
Almindor
adf89bd95d * adds info about bsd.pas
git-svn-id: trunk@4705 -
2006-09-24 11:38:59 +00:00
Jonas Maebe
a296f9f816 * use unixtype instead of hardcoded types
* use pcint instead of plongint

git-svn-id: trunk@4574 -
2006-09-08 17:34:38 +00:00
Jonas Maebe
51f130ca3d + cdecl modifier for FPC_USE_LIBC
git-svn-id: trunk@4573 -
2006-09-08 16:13:00 +00:00
Jonas Maebe
9e801eb048 * removed/conditionalised several unused variables
git-svn-id: trunk@4199 -
2006-07-14 20:44:57 +00:00
Jonas Maebe
822e41689d fixed Do_IsDevice()
git-svn-id: trunk@3022 -
2006-03-24 19:53:32 +00:00
Jonas Maebe
2a90c43cea + turn on fpu exceptions for darwin/i386
git-svn-id: trunk@2928 -
2006-03-15 21:32:50 +00:00
Jonas Maebe
a90e3b3e1d * fixed argc/argv/envp catching for darwin/x86 (not really nice, but
works)

git-svn-id: trunk@2848 -
2006-03-10 23:45:37 +00:00
marco
6f0e817973 * pwrite/writev for *BSD + FPC_USE_LIBC. Requires IOVEC et al to be defined in ostypes.inc
git-svn-id: trunk@2734 -
2006-03-04 14:21:42 +00:00
marco
1656cdc574 * little fixes related to KQueue and Sendfile
git-svn-id: trunk@2529 -
2006-02-12 14:12:15 +00:00
marco
a2fb3fb60d * Initial implementation based on an implementation of Ales Katona.
git-svn-id: trunk@2519 -
2006-02-11 20:02:13 +00:00
marco
768bf94a99 * more "shared" fixes
git-svn-id: trunk@2295 -
2006-01-15 14:56:20 +00:00
marco
b6ac26d673 * picified syscall code
git-svn-id: trunk@2292 -
2006-01-15 12:00:49 +00:00
marco
b6ed07eb30 * fixed RLIMIT_VMEM gotcha
git-svn-id: trunk@1754 -
2005-11-15 11:15:27 +00:00
marco
238510c59d * added resource consts and types
git-svn-id: trunk@1749 -
2005-11-14 11:31:28 +00:00
tom_at_work
1b4b42fdd6 * added CheckInitialStkLen() function which checks whether the given stack size value is valid on the OS when creating a thread, fixing stack checking
git-svn-id: trunk@1722 -
2005-11-11 12:16:08 +00:00
Jonas Maebe
9d9fd923d9 * the 'main' procedure for darwin is now placed in the main program instead
of in the system unit
+ ability to rename this 'main' symbol (-XM<x>, e.g. -XMSDL_main for SDL), for
  all OS'es
+ mention the -Xm parameter in the help

git-svn-id: trunk@503 -
2005-06-26 13:24:12 +00:00
michael
21425e303c + Removed HASVARIANT define
git-svn-id: trunk@244 -
2005-06-07 20:48:31 +00:00
michael
8a226bba52 + Removed HASWIDESTRING/HASWIDECHAR defines
git-svn-id: trunk@241 -
2005-06-07 20:42:22 +00:00
michael
23ad0ae1ec + Removed HASINTF and VER1_0 defines
git-svn-id: trunk@239 -
2005-06-07 20:30:03 +00:00
peter
4ace790492 * remove $Log
git-svn-id: trunk@231 -
2005-06-07 09:47:55 +00:00
Jonas Maebe
7ba46ce6f0 * Darwin TThreadID is a pointer
* BeginThread now returns a TThreadID instead of dword

git-svn-id: trunk@189 -
2005-06-04 09:33:39 +00:00
Jonas Maebe
7a79e0f083 * use definition of pthread_mutex_t from ptypes.h instead of
the linux definition in the system unit

git-svn-id: trunk@185 -
2005-06-03 21:07:04 +00:00
michael
aea4d56d46 + Reversed setup of stdio and arguments to fix bug
git-svn-id: trunk@114 -
2005-05-25 21:47:52 +00:00
marco
1efce6412b * FPC_USE_LIBC and uuidgen(2) support under IFDEF FREEBSD5.
git-svn-id: trunk@72 -
2005-05-22 14:24:55 +00:00
marco
1467901e3e * Fixes for some $LOG$ removal snafu's
git-svn-id: trunk@57 -
2005-05-21 23:15:32 +00:00
michael
180fd52858 + Reworked GUID creation
git-svn-id: trunk@43 -
2005-05-21 10:03:44 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
michael
ffb55c4254 + Removed VER1_0 defines
git-svn-id: trunk@33 -
2005-05-19 21:14:45 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
marco
8884d2e079 * mmap had another, yet unknown 8th parameter which must be 0 and comes after the offset param 2005-04-24 19:11:28 +00:00
florian
4aa4aeae79 + TThreadID 2005-04-13 20:10:50 +00:00
Jonas Maebe
2426ecafc3 * fixed several warnings and notes about unused variables (mainly) or
uninitialised use of variables/function results (a few)
2005-03-25 22:53:39 +00:00
marco
3567f25001 * fix from mischi 2005-03-13 14:11:06 +00:00
Jonas Maebe
1ec1e7f2f8 * fixed wifexited and wstopsig 2005-02-15 22:27:45 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
peter
f397aadd96 * ctypes.inc moved to unix/ 2005-02-13 21:56:28 +00:00
peter
4534feb917 * include file cleanup part 2 2005-02-13 21:47:56 +00:00
peter
ae8b7b153b * include file cleanup 2005-02-13 20:01:37 +00:00
peter
2808b3acea * moved to unix 2005-02-07 22:04:55 +00:00
peter
86025bbcb6 * moved file and dir functions to sysfile/sysdir
* win32 thread in systemunit
2005-02-06 13:06:20 +00:00
peter
f5bc749953 * bsd thread updates 2005-02-06 12:16:52 +00:00
florian
5793f2037f + added the new types from linux 2005-02-06 08:50:22 +00:00
florian
4f7560d89e * improved widestring infrastructure manager 2005-02-01 20:22:49 +00:00
Tomas Hajny
353d5cc3de + GetProcessID added 2004-12-05 14:36:37 +00:00
marco
0d1d1a2c1b * fpsettimeofday. 2004-12-02 18:24:35 +00:00
marco
75019cf36a * initial settimeofday 2004-12-02 15:11:42 +00:00
marco
c505806918 * tz_ prefixed for timezone 2004-12-02 11:22:11 +00:00
marco
c8335a9d75 * libc fixes 2004-11-21 17:49:28 +00:00
marco
d3cb19214b * external rework. Mostly done. 2004-11-19 13:15:14 +00:00
marco
42404cd68e * moved some calls from unix to baseunix. Darwin untested. 2004-11-14 12:21:08 +00:00
peter
dbc2025604 ErrOutput added 2004-11-04 09:32:31 +00:00
marco
b903ce5a9a * Pathstr eliminated 2004-11-03 15:00:43 +00:00
peter
869b0ecc85 * compiler defined HEAP and HEAPSIZE removed 2004-10-25 15:38:59 +00:00
Jonas Maebe
159912ec47 * fixed definition of pthread_mutex_t for non-linux targets (and for
linux as well, actually).
  * base libpthread definitions are now in ptypes.inc, included in unixtype
    They sometimes have an extra underscore in front of their name, in
    case they were also exported by the packages/base/pthreads unit, so
    they can keep their original name there
  * cthreadds unit now imports systuils, because it uses exceptions (it
    already did so before as well)
  * fixed many linux definitions of libpthread functions in pthrlinux.inc
    (integer -> cint etc)
  + added culonglong type to ctype.inc
2004-09-09 20:29:06 +00:00
marco
f498e954a5 * small 1.0.x fix to earlier patch 2004-07-18 11:32:24 +00:00
marco
93c356f300 * generalised the {$ifdef cpu_i386} ..powerpc stuff to FPC_BIG_ENDIAN and
FPC_LITTLE_ENDIAN
2004-07-17 16:02:58 +00:00
Jonas Maebe
dbedc97141 * initialise StackLength (fixes stack checking in general, and tw2897 in
particular)
2004-07-17 15:31:03 +00:00
Jonas Maebe
0ba2497f24 * don't use O_CREATE when opening a file for appending (fixes tw1744) 2004-07-17 15:20:55 +00:00
daniel
51f00ff000 * Moved declarations downwards 2004-07-03 22:49:34 +00:00
marco
8dc79129e2 * small fix for 1.0.x cycling 2004-07-03 22:48:49 +00:00
daniel
9a23e896b3 * Declared envp,argc,argv in interface for Darwin 2004-07-03 22:44:37 +00:00
marco
47e72b772e * moved heap.inc and text.inc before sysalloc as suggested. Why wasn't this
done directly?
2004-06-19 08:06:04 +00:00
peter
2ed14823c5 * New heapmanager that releases memory back to the OS, donated
by Micha Nelissen
2004-06-17 16:16:13 +00:00
Jonas Maebe
5c5c449ecf * moved fpgeterrno/fpseterrno declarations to before their actual usage 2004-05-31 18:03:51 +00:00
marco
0e999633e3 * threadvar errno fix 2004-05-28 21:40:28 +00:00
marco
24bf59caa6 * errno+4 becomes errno+8 2004-05-18 20:05:01 +00:00
marco
5787d92d8f * x86_64 patches 2004-05-17 19:20:09 +00:00
marco
13a860eefc * syscallnr for __syscall entered 2004-05-16 21:01:23 +00:00
marco
06dd389fce * Initial versions 2004-05-16 20:48:32 +00:00
peter
94adf83a8b * use thandle in do_* 2004-05-16 18:51:20 +00:00
marco
1340afc320 * IPC reform 2004-04-25 19:15:43 +00:00
peter
041eb4aa1d * do_read/do_write addr argument changed to pointer 2004-04-22 21:10:56 +00:00
marco
93d838bd4d * fpnice fixes 2004-04-22 16:22:10 +00:00
marco
93622ec2e8 * UnixType changes. Please report problems to me. 2004-03-04 22:15:16 +00:00
marco
66187f0b2e * forgotten? 2004-02-29 13:46:52 +00:00
Jonas Maebe
4e37beb962 + fpnanosleep for oscdeclh.inc
- removed obsolete darwin remarks from bsd/ossysc.inc
2004-02-06 20:47:00 +00:00
marco
0db9132414 bsd 2004-01-22 13:46:14 +00:00
Tomas Hajny
e0f9297e01 * ExecuteProcess fixes, ProcessID and ThreadID added 2004-01-20 23:05:31 +00:00
marco
e03e8b5a27 * o_creat added when o_append 2004-01-06 15:42:05 +00:00
Jonas Maebe
e6c3cc44c9 * declare C-library routines as external in libc for Darwin (so we
generate proper import entries)
2004-01-04 21:04:08 +00:00
Jonas Maebe
20e0d970e9 + geterrnolocation for Darwin
+ C-style main for Darwin (generic, can be used for anything)
2004-01-04 20:32:05 +00:00
Jonas Maebe
d6743c1491 * moved SIG_MAXSIG and wordsinsigset constants from bunxtype.inc to
ptypes.inc (already there for Darwin)
2004-01-04 20:08:45 +00:00
marco
5ec7fdfe02 * fix for 1.0 compability issue 2004-01-03 23:56:11 +00:00
marco
5ba857f706 * typo fix 2004-01-03 14:56:10 +00:00
marco
5cb92b4d59 * sighnd to separate file, like linux. Some comments removed 2004-01-03 12:35:39 +00:00
marco
fdf4095798 * few small freebsd fixes backported from debugging linux 2004-01-01 17:07:21 +00:00
marco
b6f9f170f7 * FPC_USE_LIBC 2003-12-30 12:24:01 +00:00
peter
03d60dec7f * fix getdir when directory contains files that give EACCESS 2003-12-21 20:31:50 +00:00
marco
8fc8644de0 * nil <-> 0 changes 2003-12-16 19:43:53 +00:00
marco
ae1f7f63b6 * fix for repeating 'x' bug 2003-12-14 14:47:02 +00:00
marco
42f329de27 * property support under ifndef ver1_0 2003-12-10 17:13:43 +00:00