Ignore:
Timestamp:
Feb 21, 2002, 8:24:22 PM (23 years ago)
Author:
umoeller
Message:

misc. updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/dosh2.c

    r135 r142  
    368368 */
    369369
    370 APIRET CopyToBuffer(PSZ pszTarget,      // out: target buffer
    371                     PCSZ pcszSource,    // in: source string
    372                     ULONG cbTarget)     // in: size of target buffer
     370static APIRET CopyToBuffer(PSZ pszTarget,      // out: target buffer
     371                           PCSZ pcszSource,    // in: source string
     372                           ULONG cbTarget)     // in: size of target buffer
    373373{
    374374    ULONG ulLength = strlen(pcszSource);
     
    485485 */
    486486
    487 APIRET FindFile(const char *pcszCommand,      // in: command (e.g. "lvm")
    488                 PSZ pszExecutable,            // out: full path (e.g. "F:\os2\lvm.exe")
    489                 ULONG cbExecutable)           // in: sizeof (*pszExecutable)
     487static APIRET FindFile(const char *pcszCommand,      // in: command (e.g. "lvm")
     488                       PSZ pszExecutable,            // out: full path (e.g. "F:\os2\lvm.exe")
     489                       ULONG cbExecutable)           // in: sizeof (*pszExecutable)
    490490{
    491491    APIRET arc = NO_ERROR;
     
    784784 */
    785785
    786 APIRET AppendPartition(PARTITIONINFO **pppiFirst,
    787                        PARTITIONINFO **pppiThis,    // in/out: partition info; pointer will be advanced
    788                        PUSHORT posCount,            // in/out: partition count
    789                        BYTE bDisk,                  // in: disk of partition
    790                        const char *pszBootName,     // in: boot partition name
    791                        CHAR cLetter,                // in/out: drive letter
    792                        BYTE bFsType,                // in: file system type
    793                        BOOL fPrimary,               // in: primary?
    794                        BOOL fBootable,
    795                        ULONG ulSectors)             // in: no. of sectors
     786static APIRET AppendPartition(PARTITIONINFO **pppiFirst,
     787                              PARTITIONINFO **pppiThis,    // in/out: partition info; pointer will be advanced
     788                              PUSHORT posCount,            // in/out: partition count
     789                              BYTE bDisk,                  // in: disk of partition
     790                              const char *pszBootName,     // in: boot partition name
     791                              CHAR cLetter,                // in/out: drive letter
     792                              BYTE bFsType,                // in: file system type
     793                              BOOL fPrimary,               // in: primary?
     794                              BOOL fBootable,
     795                              ULONG ulSectors)             // in: no. of sectors
    796796{
    797797    APIRET arc = NO_ERROR;
     
    10131013 */
    10141014
    1015 APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst,
    1016                             PARTITIONINFO **pppiThis,
    1017                             PUSHORT posCount,       // in/out: partition count
    1018                             PCHAR pcLetter,         // in/out: drive letter counter
    1019                             UINT BmDisk,            // in: physical disk (1, 2, 3, ...) of boot manager or null
    1020                             PAR_INFO* pBmInfo,      // in: info returned by doshGetBootManager or NULL
    1021                             UINT iDisk)             // in: system's physical disk count
     1015static APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst,
     1016                                   PARTITIONINFO **pppiThis,
     1017                                   PUSHORT posCount,       // in/out: partition count
     1018                                   PCHAR pcLetter,         // in/out: drive letter counter
     1019                                   UINT BmDisk,            // in: physical disk (1, 2, 3, ...) of boot manager or null
     1020                                   PAR_INFO* pBmInfo,      // in: info returned by doshGetBootManager or NULL
     1021                                   UINT iDisk)             // in: system's physical disk count
    10221022{
    10231023    APIRET  arc = NO_ERROR;
     
    11001100 */
    11011101
    1102 APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst,
    1103                         PARTITIONINFO **pppiThis,
    1104                         PUSHORT posCount,
    1105                         PCHAR pcLetter,
    1106                         PAR_INFO* PrInfo,                    // in: MBR entry of extended partition
    1107                         UINT PrDisk,
    1108                         PAR_INFO* BmInfo)
     1102static APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst,
     1103                               PARTITIONINFO **pppiThis,
     1104                               PUSHORT posCount,
     1105                               PCHAR pcLetter,
     1106                               PAR_INFO* PrInfo,                    // in: MBR entry of extended partition
     1107                               UINT PrDisk,
     1108                               PAR_INFO* BmInfo)
    11091109{
    11101110    APIRET          arc = NO_ERROR;
     
    11891189 */
    11901190
    1191 APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst,
    1192                             PARTITIONINFO **pppiThis,
    1193                             PUSHORT posCount,
    1194                             PCHAR pcLetter,
    1195                             PAR_INFO* BmInfo,
    1196                             UINT iDisk)                // in: disk to query
     1191static APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst,
     1192                                   PARTITIONINFO **pppiThis,
     1193                                   PUSHORT posCount,
     1194                                   PCHAR pcLetter,
     1195                                   PAR_INFO* BmInfo,
     1196                                   UINT iDisk)                // in: disk to query
    11971197{
    11981198    APIRET          arc = NO_ERROR;
     
    12341234 */
    12351235
    1236 APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos,
    1237                            USHORT *pcPartitions,
    1238                            PUSHORT pusContext)              // out: error context
     1236static APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos,
     1237                                  USHORT *pcPartitions,
     1238                                  PUSHORT pusContext)              // out: error context
    12391239{
    12401240    APIRET          arc = NO_ERROR;
     
    13071307 */
    13081308
    1309 VOID CleanPartitionInfos(PPARTITIONINFO ppiThis)
     1309static VOID CleanPartitionInfos(PPARTITIONINFO ppiThis)
    13101310{
    13111311    while (ppiThis)
     
    20142014 */
    20152015
    2016 BOOL PerformMatch(PCSZ pMask,
    2017                   PCSZ pName,
    2018                   int fHasDot)
     2016static BOOL PerformMatch(PCSZ pMask,
     2017                         PCSZ pName,
     2018                         int fHasDot)
    20192019{
    20202020    while (TRUE)
Note: See TracChangeset for help on using the changeset viewer.