Free Pascal Runtime Library Reference Guide.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Run-Time Library (RTL) : Reference guide. Free Pascal version 2.2.2: Reference guide for RTL units. Document version 2.1 June 2008 Michaël Van Canneyt Contents 0.1 Overview........................................ 93 1 Reference for unit ’BaseUnix’ 94 1.1 Used units........................................ 94 1.2 Overview........................................ 94 1.3 Constants, types and variables............................. 94 1.3.1 Constants.................................... 94 1.3.2 Types...................................... 116 1.4 Procedures and functions................................ 131 1.4.1 CreateShellArgV................................ 131 1.4.2 FpAccess.................................... 132 1.4.3 FpAlarm.................................... 132 1.4.4 FpChdir..................................... 133 1.4.5 FpChmod.................................... 133 1.4.6 FpChown.................................... 135 1.4.7 FpClose..................................... 136 1.4.8 FpClosedir................................... 136 1.4.9 FpDup..................................... 136 1.4.10 FpDup2..................................... 137 1.4.11 FpExecv.................................... 138 1.4.12 FpExecve.................................... 139 1.4.13 FpExit...................................... 140 1.4.14 FpFcntl..................................... 140 1.4.15 fpfdfillset.................................... 141 1.4.16 fpFD_CLR................................... 141 1.4.17 fpFD_ISSET.................................. 142 1.4.18 fpFD_SET................................... 142 1.4.19 fpFD_ZERO.................................. 142 1.4.20 FpFork..................................... 142 1.4.21 FPFStat..................................... 143 1.4.22 FpFtruncate................................... 144 1 CONTENTS 1.4.23 FpGetcwd.................................... 144 1.4.24 FpGetegid.................................... 144 1.4.25 FpGetEnv.................................... 145 1.4.26 fpgeterrno.................................... 145 1.4.27 FpGeteuid.................................... 146 1.4.28 FpGetgid.................................... 146 1.4.29 FpGetgroups.................................. 147 1.4.30 FpGetpgrp................................... 147 1.4.31 FpGetpid.................................... 147 1.4.32 FpGetppid................................... 148 1.4.33 fpGetPriority.................................. 148 1.4.34 FpGetuid.................................... 148 1.4.35 FpIOCtl..................................... 149 1.4.36 FpKill...................................... 149 1.4.37 FpLink..................................... 150 1.4.38 FpLseek..................................... 151 1.4.39 fpLstat..................................... 152 1.4.40 FpMkdir.................................... 153 1.4.41 FpMkfifo.................................... 153 1.4.42 Fpmmap.................................... 154 1.4.43 Fpmunmap................................... 155 1.4.44 FpNanoSleep.................................. 156 1.4.45 fpNice...................................... 156 1.4.46 FpOpen..................................... 157 1.4.47 FpOpendir................................... 158 1.4.48 FpPause..................................... 159 1.4.49 FpPipe..................................... 160 1.4.50 FppRead.................................... 161 1.4.51 FppWrite.................................... 161 1.4.52 FpRead..................................... 161 1.4.53 FpReaddir.................................... 162 1.4.54 fpReadLink................................... 163 1.4.55 FpReadV.................................... 164 1.4.56 FpRename................................... 164 1.4.57 FpRmdir.................................... 165 1.4.58 fpSelect..................................... 165 1.4.59 fpseterrno.................................... 166 1.4.60 FpSetgid.................................... 167 1.4.61 fpSetPriority.................................. 167 1.4.62 FpSetsid.................................... 168 2 CONTENTS 1.4.63 fpsettimeofday................................. 168 1.4.64 FpSetuid.................................... 168 1.4.65 FPSigaction................................... 168 1.4.66 FpSigAddSet.................................. 170 1.4.67 FpSigDelSet.................................. 170 1.4.68 FpsigEmptySet................................. 170 1.4.69 FpSigFillSet.................................. 171 1.4.70 FpSigIsMember................................ 171 1.4.71 FpSignal.................................... 171 1.4.72 FpSigPending.................................. 172 1.4.73 FpSigProcMask................................. 172 1.4.74 FpSigSuspend................................. 173 1.4.75 FpSleep..................................... 173 1.4.76 FpStat...................................... 173 1.4.77 fpSymlink.................................... 174 1.4.78 fpS_ISBLK................................... 176 1.4.79 fpS_ISCHR................................... 176 1.4.80 fpS_ISDIR................................... 176 1.4.81 fpS_ISFIFO................................... 176 1.4.82 fpS_ISLNK................................... 177 1.4.83 fpS_ISREG................................... 177 1.4.84 fpS_ISSOCK.................................. 178 1.4.85 fptime...................................... 178 1.4.86 FpTimes.................................... 178 1.4.87 FpUmask.................................... 179 1.4.88 FpUname.................................... 179 1.4.89 FpUnlink.................................... 179 1.4.90 FpUtime.................................... 180 1.4.91 FpWait..................................... 181 1.4.92 FpWaitPid................................... 181 1.4.93 FpWrite..................................... 182 1.4.94 FpWriteV.................................... 182 1.4.95 FreeShellArgV................................. 182 1.4.96 wexitStatus................................... 183 1.4.97 wifexited.................................... 183 1.4.98 wifsignaled................................... 183 1.4.99 wstopsig.................................... 183 1.4.100 wtermsig.................................... 184 2 Reference for unit ’Classes’ 185 3 CONTENTS 2.1 Used units........................................ 185 2.2 Overview........................................ 185 2.3 Constants, types and variables............................. 185 2.3.1 Constants.................................... 185 2.3.2 Types...................................... 188 2.3.3 Variables.................................... 198 2.4 Procedures and functions................................ 199 2.4.1 ActivateClassGroup.............................. 199 2.4.2 BeginGlobalLoading.............................. 200 2.4.3 BinToHex.................................... 200 2.4.4 Bounds..................................... 200 2.4.5 CheckSynchronize............................... 201 2.4.6 ClassGroupOf................................. 201 2.4.7 CollectionsEqual................................ 201 2.4.8 EndGlobalLoading............................... 201 2.4.9 ExtractStrings.................................. 202 2.4.10 FindClass.................................... 202 2.4.11 FindGlobalComponent............................. 202 2.4.12 FindIdentToInt................................. 202 2.4.13 FindIntToIdent................................. 203 2.4.14 FindNestedComponent............................. 203 2.4.15 GetClass.................................... 203 2.4.16 GetFixupInstanceNames............................ 203 2.4.17 GetFixupReferenceNames........................... 204 2.4.18 GlobalFixupReferences............................. 204 2.4.19 GroupDescendentsWith............................ 204 2.4.20 HexToBin.................................... 204 2.4.21 IdentToInt.................................... 205 2.4.22 InitComponentRes............................... 205 2.4.23 InitInheritedComponent............................ 205 2.4.24 IntToIdent.................................... 206 2.4.25 InvalidPoint................................... 206 2.4.26 LineStart.................................... 206 2.4.27 NotifyGlobalLoading.............................. 206 2.4.28 ObjectBinaryToText.............................. 207 2.4.29 ObjectResourceToText............................. 207 2.4.30 ObjectTextToBinary.............................. 207 2.4.31 ObjectTextToResource............................. 207 2.4.32 Point...................................... 208 2.4.33 PointsEqual................................... 208 4 CONTENTS 2.4.34 ReadComponentRes.............................. 208 2.4.35 ReadComponentResEx............................. 208 2.4.36 ReadComponentResFile............................ 208 2.4.37 Rect....................................... 209 2.4.38 RedirectFixupReferences............................ 209 2.4.39 RegisterClass.................................. 209 2.4.40 RegisterClassAlias............................... 210 2.4.41 RegisterClasses................................. 210 2.4.42 RegisterComponents.............................. 210 2.4.43 RegisterFindGlobalComponentProc...................... 210 2.4.44 RegisterInitComponentHandler........................ 211 2.4.45 RegisterIntegerConsts............................. 211 2.4.46 RegisterNoIcon................................. 211 2.4.47 RegisterNonActiveX.............................. 212 2.4.48 RemoveFixupReferences............................ 212 2.4.49 RemoveFixups................................