summaryrefslogtreecommitdiff
path: root/rtl/unix
Commit message (Collapse)AuthorAgeFilesLines
* * don't try to set the iconv transliterate property in case the iconvjonas2012-01-041-1/+2
| | | | | | | encoder was not successfully initialised git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19965 3ad0048d-3df7-0310-abae-a5850022a9f2
* * default to UTF-8 as system code page in case nl_langinfo(CODESET) returnsjonas2012-01-041-1/+11
| | | | | | | an empty string git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19964 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Improved efficiency of Now/Date/Timemichael2011-11-021-15/+24
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19572 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Added ReReadTimeZonemichael2011-11-012-0/+7
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19569 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: paul2011-10-251-4/+4
| | | | | | | - replace ifndef ver2_4 with ifdef FPC_HAS_CPSTRING for places with TextRec.CodePage access - convert codepages for Read and Write text file operations git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19545 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: set codepages for TextRec field when Text file is opened + update this ↵paul2011-10-251-0/+24
| | | | | | field for standard IO files when cwstring is used git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19543 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: add WideStringManager.GetStandardCodePageProc method to retrieve system ↵paul2011-10-251-1/+7
| | | | | | ansi and console code pages git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19539 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: make cwstring.pp dependent of dynlibs, load iconvctl dynamicallypaul2011-10-251-8/+33
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19538 3ad0048d-3df7-0310-abae-a5850022a9f2
* * support for iOS-specific location of "localtime" time zone filejonas2011-10-241-0/+5
| | | | | | | (problem reported at http://blogs.embarcadero.com/ao/2011/10/20/39180 ) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19537 3ad0048d-3df7-0310-abae-a5850022a9f2
* * added "inc" extension to {$i winiconv}jonas2011-10-221-1/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19529 3ad0048d-3df7-0310-abae-a5850022a9f2
* * fixed compilation on darwin/arm after r19522jonas2011-10-221-3/+3
| | | | | | | * replaced defined(arm) with defined(cpuarm) checks (cleaner) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19528 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: transliterate characters if possible intead of replacing them with "?" ↵paul2011-10-211-1/+18
| | | | | | chars while converting between codepages git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19522 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Use recent libc __errno function for OpenBSDpierre2011-10-101-1/+5
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19447 3ad0048d-3df7-0310-abae-a5850022a9f2
* + Added OpenBSD CODESET and LC_ALL valuespierre2011-10-041-3/+8
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19369 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Try to update i386/openbsd portpierre2011-10-032-10/+12
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19350 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: revert r19330. We probably need to create a separate ↵paul2011-10-032-4/+415
| | | | | | encoding<->codepage table. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19332 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: move winiconv.inc into general inc directory and rename it to ↵paul2011-10-032-415/+4
| | | | | | | | wincodepages.inc, also rename win2iconv, iconv2win to CodePageToCodePageName, CodePageNameToCodePage. This change is required since CodePage to CodePage name conversions are required in other parts of RTL. Moreover those codepage identifiers are windows codepage identifiers and thus must be compatible with codepage identifiers used by delphi. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19330 3ad0048d-3df7-0310-abae-a5850022a9f2
* * prevent the internal windows code page number -> iconv name and vice versajonas2011-10-012-5/+9
| | | | | | | conversion routines from resulting in any code page conversions themselves git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19320 3ad0048d-3df7-0310-abae-a5850022a9f2
* * and one more fix to prevent endless loopsjonas2011-09-231-1/+1
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19196 3ad0048d-3df7-0310-abae-a5850022a9f2
* * fixed potential endless loop if the code page passed to win2iconv()jonas2011-09-231-4/+4
| | | | | | | is not found git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19195 3ad0048d-3df7-0310-abae-a5850022a9f2
* + support for transcoding the new ansistring type on unix platformsjonas2011-09-232-32/+512
| | | | | | | * initialize DefaultSystemCodePage on unix platforms git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19194 3ad0048d-3df7-0310-abae-a5850022a9f2
* * fpgetsid, Mantis #20329marco2011-09-222-0/+3
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19178 3ad0048d-3df7-0310-abae-a5850022a9f2
* * Also check TMPDIR, a UNIX standard used by a.o. iOS (mantis #20248)michael2011-09-221-0/+2
| | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19175 3ad0048d-3df7-0310-abae-a5850022a9f2
* rtl: manual merge some cpstrnew changes which was impossible to merge using ↵paul2011-09-181-2/+2
| | | | | | regular tools due to the merge conflicts git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19137 3ad0048d-3df7-0310-abae-a5850022a9f2
* merge r14347 from cpstrnew branch by florian:paul2011-09-171-2/+2
|\ | | | | | | | | | | | | * fixed bootstrapping with 2.4.0 * patches by Graeme Geldenhuys, resolve #15251, #15252, #15253 git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@19102 3ad0048d-3df7-0310-abae-a5850022a9f2
| * * fixed bootstrapping with 2.4.0florian2009-12-061-2/+2
| | | | | | | | | | | | | | * patches by Graeme Geldenhuys, resolve #15251, #15252, #15253 git-svn-id: http://svn.freepascal.org/svn/fpc/branches/cpstrnew@14347 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * patch by Nikolay Nikolov to support Alt-Tab and Ctrl-Tab on the linux ↵florian2011-08-161-5/+24
| | | | | | | | | | | | console, resolves #19247 git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@18225 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * also return fasymbolic if dir is found.marco2011-08-011-8/+12
| | | | | | | | | | | | | | | | * update getattr to also return fasymbolic Patch by Dimitri B. Mantis #16817 git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@18043 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * fixed FPC_USE_LIBC building for Linux and exception handling (mantis #13450)marco2011-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | - fixed a platform modifier in ipc.pp - fixed different layout sigaction record in libc. (field order) - fixed many bad use_libc fixes in linux. Most of these were only checked for compilation, not linking. (e.g. futex doesn't link) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@18042 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * LongdateFormat equals shortdateformat (no longdateformat is available in ↵michael2011-07-021-1/+1
| | | | | | | | | | | | langinfo) Bug 19616. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17914 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * Added share mode argument to FileCreate callmichael2011-05-231-2/+9
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17548 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * patch by Nikolay Nikolov to use a hardware block cursor on the florian2011-05-201-1/+1
| | | | | | | | | | | | | | linux console, resolves #19259 git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17516 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * Corrected fix for FileAgemichael2011-04-021-1/+1
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17224 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * Do not allow fileage for directories (15873)michael2011-04-021-2/+2
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17221 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * Don't use deprecated symbols anymore, silences compilation.sergei2011-03-301-41/+41
| | | | | | | | | | | | * GetFormatSettings function now can fill an arbitrary TFormatSettings record. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17209 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * added alias for statsfsmarco2011-02-271-0/+1
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@17037 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * committed the fpc/ hierarchy parts of the patch in mants 18271:marco2011-01-161-3/+3
| | | | | | | | | | | | | | Adding clocale to Solaris. git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16771 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * part of r16533, forgot to commitjonas2010-12-111-0/+24
| | | | | | | | | | | | | | | | | | * also fixes CharLengthPChar() for non-BeOS by initialising the mbstate parameter passed to mbrlen() to 0 (otherwise its contents are interpreted as already valid, containing information about the current shiftstate etc) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16552 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * dynlibs.pas: added 'const' modifiers to eliminate unnecessary local string ↵sergei2010-11-181-2/+2
| | | | | | | | | | | | copies git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16366 3ad0048d-3df7-0310-abae-a5850022a9f2
* | + semtimedop() for Linux, marked as "platform" (last part of patch fromjonas2010-11-131-0/+3
| | | | | | | | | | | | | | mantis #14075) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16339 3ad0048d-3df7-0310-abae-a5850022a9f2
* | o fixed several Linux ipc bugs, based on patch by Ruben Chaer/jonas2010-11-131-21/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pablo Alfaro (mantis #14075, also fixes #13363): * ipc msgtyp is clong, not cint * TIPC_Perm and TSEMid_ds are different on 64 bit systems * fixed passing semun arguments (have to be passed by value, not reference) * fixed the order of parameters to msg* syscalls, and don't use TIPC_Kludge for msgrcv syscall (only for ipccall.inc variants) * use new operation variants on 64 bit platforms in ipccall.inc * introduced use kernel_mode/uid/gid_t types for use by the Linux ipc records * fixed type of TSEMid_ds.sem_base for Darwin * added {$packrecords c} to ipc unit, and {$packrecords 4} around certain structs for Darwin as in the C headers * fixed passing semun argument to semctl for libc platforms (by value, not reference) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16336 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * hook up CompareUnicodeStringProc and CompareTextUnicodeStringProc injonas2010-11-031-2/+2
| | | | | | | | | | | | | | | | | | cwstring (fixes webtbs/tw17591.pp on unix platforms) * enhanced webtbs/tw17591.pp so it also (superficially) checks the correctness of the called routines, and add cwstring for unix platforms git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16298 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * Fixed synchronize/waitfor issuemichael2010-10-121-1/+9
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16145 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * Fixed spell error revealed by lintian.mazen2010-10-061-2/+2
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@16094 3ad0048d-3df7-0310-abae-a5850022a9f2
* | - disabled FpSigTimedWait also for haiku (based on patch byjonas2010-07-201-1/+1
| | | | | | | | | | | | | | Olivier Coursiere, mantis #16996) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15620 3ad0048d-3df7-0310-abae-a5850022a9f2
* | - disabled fpsigtimedwait for darwin because it doesn't exist therejonas2010-07-181-0/+2
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15605 3ad0048d-3df7-0310-abae-a5850022a9f2
* | + Add modify_ldt to linux unitdaniel2010-07-182-4/+7
| | | | | | | | | | | | | | | | | | + Add sched_yield to linux unit - Remove clone for m68k from linux unit (unimplemented assembler section) + Add fpsigtimedwait to baseunix unit git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15602 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * allow tthread-based threads to only start executing once the constructorjonas2010-07-181-3/+14
| | | | | | | | | | | | | | has finished running (based on patch by Jared Davison, mantis #16884) git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15599 3ad0048d-3df7-0310-abae-a5850022a9f2
* | + added support for intialising/finalising threads not started via the FPCjonas2010-07-121-7/+50
| | | | | | | | | | | | | | runtime git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15557 3ad0048d-3df7-0310-abae-a5850022a9f2
* | * do not use / as DriveSeparatorhajny2010-06-191-1/+1
| | | | | | | | git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15454 3ad0048d-3df7-0310-abae-a5850022a9f2