VirtualBox

Changeset 618 in kBuild for trunk/src/gmake


Ignore:
Timestamp:
Nov 26, 2006 6:48:46 AM (18 years ago)
Author:
bird
Message:

Ported the new strmode to MSC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/strmode.c

    r617 r618  
    3030 */
    3131
    32 #include <sys/cdefs.h>
     32/*#include <sys/cdefs.h>*/
    3333#if defined(LIBC_SCCS) && !defined(lint)
    3434#if 0
     
    3939#endif /* LIBC_SCCS and not lint */
    4040
    41 #include "namespace.h"
     41/*#include "namespace.h"*/
    4242#include <sys/types.h>
    4343#include <sys/stat.h>
    4444
    4545#include <assert.h>
     46#ifndef _MSC_VER
    4647#include <unistd.h>
     48#else
     49#include "mscfakes.h"
     50#endif
     51
     52#ifndef _DIAGASSERT
     53#define _DIAGASSERT assert
     54#endif
    4755
    4856void
     
    6270                *p++ = 'c';
    6371                break;
     72#ifdef S_IFBLK
    6473        case S_IFBLK:                   /* block special */
    6574                *p++ = 'b';
    6675                break;
     76#endif
    6777        case S_IFREG:                   /* regular */
    6878#ifdef S_ARCH2
     
    7888#endif
    7989                break;
     90#ifdef S_IFLNK
    8091        case S_IFLNK:                   /* symbolic link */
    8192                *p++ = 'l';
    8293                break;
     94#endif
    8395#ifdef S_IFSOCK
    8496        case S_IFSOCK:                  /* socket */
     
    160172        else
    161173                *p++ = '-';
     174#ifdef S_ISVTX
    162175        switch (mode & (S_IXOTH | S_ISVTX)) {
     176#else
     177        switch (mode & (S_IXOTH)) {
     178#endif
    163179        case 0:
    164180                *p++ = '-';
     
    167183                *p++ = 'x';
    168184                break;
     185#ifdef S_ISVTX
    169186        case S_ISVTX:
    170187                *p++ = 'T';
     
    173190                *p++ = 't';
    174191                break;
     192#endif
    175193        }
    176194        *p++ = ' ';             /* will be a '+' if ACL's implemented */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette