Changeset 1678 for trunk/src


Ignore:
Timestamp:
Dec 2, 2004, 7:41:20 AM (21 years ago)
Author:
bird
Message:

rename reimplementation.

Location:
trunk/src/emx
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/backend.h

    • Property cvs2svn:cvs-rev changed from 1.14 to 1.15
    r1677 r1678  
    289289int __libc_Back_fsFileStatFH(int fh, struct stat *pStat);
    290290
     291
     292
     293
     294
     295
     296
     297
     298
     299
     300
     301
    291302
    292303/** @defgroup __libc_Back_io   LIBC Backend - I/O and File Management.
  • trunk/src/emx/src/lib/misc/mkdir.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1677 r1678  
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
    126
    227/*******************************************************************************
  • trunk/src/emx/src/lib/sys/b_fsDirCreate.c

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1677 r1678  
    3838#include <errno.h>
    3939#include <InnoTekLIBC/backend.h>
    40 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_IO
     40#define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_
    4141#include <InnoTekLIBC/logstrict.h>
    4242
  • trunk/src/emx/src/lib/sys/b_fsDirRemove.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1677 r1678  
    3636#include <errno.h>
    3737#include <InnoTekLIBC/backend.h>
    38 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_IO
     38#define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_
    3939#include <InnoTekLIBC/logstrict.h>
    4040
  • trunk/src/emx/src/lib/sys/b_fsFileStatFH.c

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1677 r1678  
    4444#include <InnoTekLIBC/libc.h>
    4545#include <InnoTekLIBC/backend.h>
    46 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_IO
     46#define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_
    4747#include <InnoTekLIBC/logstrict.h>
    4848
  • trunk/src/emx/src/lib/sys/b_fsSymlinkRead.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1677 r1678  
    3434#include <errno.h>
    3535#include <InnoTekLIBC/backend.h>
    36 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_IO
     36#define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_
    3737#include <InnoTekLIBC/logstrict.h>
    3838
  • trunk/src/emx/src/lib/sys/rename.c

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1677 r1678  
    1 /* sys/rename.c (emx+gcc) -- Copyright (c) 1992-1996 by Eberhard Mattes
    2                           -- Copyright (c) 2003-2004 by knut st. osmundsen */
    3 
    4 /*******************************************************************************
    5 *   Header Files                                                               *
    6 *******************************************************************************/
    7 #include "libc-alias.h"
    8 #define INCL_FSMACROS
    9 #include <os2emx.h>
    10 #include <stdio.h>
    11 #include <stdlib.h>
    12 #include <errno.h>
    13 #include <emx/syscalls.h>
    14 #include "syscalls.h"
    15 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_IO
    16 #include <InnoTekLIBC/logstrict.h>
    17 #include <InnoTekLIBC/pathrewrite.h>
    18 
    19 int _STD(rename)(const char *pszOldName, const char *pszNewName)
    20 {
    21     LIBCLOG_ENTER("pszOldName=%s pszNewName=%s\n", pszOldName, pszNewName);
    22     ULONG   rc;
    23     int     cch;
    24     FS_VAR();
    25 
    26     /*
    27      * Rewrite the specified paths.
    28      */
    29     cch = __libc_PathRewrite(pszOldName, NULL, 0);
    30     if (cch > 0)
    31     {
    32         char *pszRewritten = alloca(cch);
    33         if (!pszRewritten)
    34         {
    35             errno = ENOMEM;
    36             LIBCLOG_RETURN_INT(-1);
    37         }
    38         cch = __libc_PathRewrite(pszOldName, pszRewritten, cch);
    39         if (cch > 0)
    40             pszOldName = pszRewritten;
    41         /* else happens when someone changes the rules between the two calls. */
    42         else if (cch < 0)
    43         {
    44             errno = EAGAIN;             /* non-standard, I'm sure. */
    45             LIBCLOG_RETURN_INT(-1);
    46         }
    47     }
    48 
    49     cch = __libc_PathRewrite(pszNewName, NULL, 0);
    50     if (cch > 0)
    51     {
    52         char *pszRewritten = alloca(cch);
    53         if (!pszRewritten)
    54         {
    55             errno = ENOMEM;
    56             LIBCLOG_RETURN_INT(-1);
    57         }
    58         cch = __libc_PathRewrite(pszNewName, pszRewritten, cch);
    59         if (cch > 0)
    60             pszNewName = pszRewritten;
    61         /* else happens when someone changes the rules between the two calls. */
    62         else if (cch < 0)
    63         {
    64             errno = EAGAIN;             /* non-standard, I'm sure. */
    65             LIBCLOG_RETURN_INT(-1);
    66         }
    67     }
    68 
    69     /*
    70      * Rename it.
    71      */
    72     FS_SAVE_LOAD();
    73     rc = DosMove((PCSZ)pszOldName, (PCSZ)pszNewName);
    74     FS_RESTORE();
    75     if (rc)
    76     {
    77         _sys_set_errno(rc);
    78         LIBCLOG_RETURN_INT(-1);
    79     }
    80     LIBCLOG_RETURN_INT(0);
    81 }
     1/* dead */
Note: See TracChangeset for help on using the changeset viewer.