Commit Graph

334 Commits

Author SHA1 Message Date
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 #8283)

........
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 #3962
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
marco
f4db4860b5 * property errno defined 2003-12-10 17:08:28 +00:00
marco
e3796bafa3 * fix from sebastian 2003-11-30 12:40:29 +00:00
marco
0610caa107 * termio unit 2003-11-19 17:11:39 +00:00
marco
359a077da1 * Small fixes for EAGAIN. bunxfunc only has comments added. 2003-11-18 10:12:25 +00:00
marco
5526f18914 * fixed some linuxerror probs 2003-11-13 17:49:24 +00:00
marco
aebc04656f * fixes for signal handling. 2003-10-27 17:12:45 +00:00
marco
16c7ca4606 * moved sigprocmask to system 2003-10-26 17:01:04 +00:00
marco
fa766600ed * texception4 fix merge 2003-10-26 16:42:22 +00:00
olle
527a79b0dc * changed i386 to cpui386 2003-10-17 22:10:30 +00:00
peter
ab5352d3f1 * fpnanosleep exported in baseunix
* fpnanosleep has pointer arguments to be C compliant
2003-09-27 13:45:58 +00:00
peter
87f0147dff * fpISxxx renamed 2003-09-27 13:04:58 +00:00
marco
688866ff4f * FCL now compiles for FreeBSD with new 1.1. Now Linux. 2003-09-20 12:38:29 +00:00
marco
feee65f98f * ostype include moved to top 2003-09-17 16:02:31 +00:00
marco
fd77009ae5 * stat macro fixes voor BSD 2003-09-17 11:52:05 +00:00
marco
a99cf467f9 * pointer's of some basetypes 2003-09-16 21:20:40 +00:00
marco
5ce9550d57 * mmap typing fixes 2003-09-16 12:45:49 +00:00
marco
08eb5ac89f * small fixes. FreeBSD now cycles 2003-09-15 20:08:49 +00:00
marco
83b0b82e11 * fix 2003-09-15 07:23:51 +00:00
marco
7efaf7dee2 * Unix reform stage two. Remove all calls from Unix that exist in Baseunix. 2003-09-14 20:15:01 +00:00
olle
2931590e9b - removed parameter from fpc_iocheck 2003-08-21 22:21:00 +00:00
marco
bb651017e8 * Moved prototypes outside of baseunix. And shared with linux for now 2003-06-03 14:23:45 +00:00
marco
6c4e662ab1 * Several small fixes to harmonize the *BSD rtls and Linux. 2003-06-01 16:35:27 +00:00
marco
e3c50b2399 * Getting NetBSD/i386 to compile. 2003-05-30 19:58:40 +00:00
marco
56ddd7f08f * Some other workaround 2003-05-29 21:45:23 +00:00
marco
50917559bd * progname fix. 2003-05-29 20:54:09 +00:00
marco
dc3b985838 * only moved around the off_t calls, and made an exception (includefile)
for NetBSD/powerpc
2003-05-29 20:52:55 +00:00
marco
229355b286 * small fix 2003-05-29 13:42:58 +00:00
marco
04926a9844 * 7 parameter syscall added. *BSD has calls with more params due to __syscall etc 2003-05-29 13:14:07 +00:00
Jonas Maebe
0185f7684a - disabled nanosleep for darwin for now
+ getcwd for darwin
2003-05-26 21:29:16 +00:00
Jonas Maebe
f9d90e0a63 + added from linux 2003-05-25 14:07:26 +00:00
Jonas Maebe
34cdc0a37f * several fixes, addition of Mach trap numbers (thye are simply syscalls
with a negative number)
2003-05-25 13:51:58 +00:00
marco
2478552240 * fix octal that broke 1.0.x 2003-01-21 15:34:59 +00:00
marco
cc042060e0 * renamed after baseunix changes. 2003-01-05 19:18:16 +00:00
marco
cc8f33e2ad * Small sigprocmask fix 2003-01-05 19:10:05 +00:00
marco
832a1bcb96 * FreeBSD compiles now with baseunix mods. 2003-01-05 19:01:28 +00:00
marco
0575776395 * Renamed to bunxtype.inc (from osposixh.inc), some minor changes
(as introduced going from posix unit to baseunix)
2003-01-03 15:45:21 +00:00
marco
190b09a5dd * copied and checked from Linux. 2003-01-03 11:21:32 +00:00
marco
12e9c34aac * Fix setitimer. 2002-11-14 13:25:27 +00:00
marco
5c5fc48e2c * took out the generic sethandling. 2002-11-14 12:34:20 +00:00
marco
cd427582de * sigset functions more flexible, small changes to sys_time 2002-11-13 18:15:08 +00:00
marco
bcff2b841c * Ugly hack to temporarily be able to use system.pp for Linux too 2002-11-12 14:57:48 +00:00