VirtualBox

Changeset 1710 in kBuild for trunk/src/kmk/kmkbuiltin/mv.c


Ignore:
Timestamp:
Sep 2, 2008 9:50:04 PM (16 years ago)
Author:
bird
Message:

kmk: Made chmod build on windows. Some cleanup of the bsdisms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/mv.c

    r1604 r1710  
    9797static int      usage(FILE *);
    9898
    99 #if !defined(__FreeBSD__) && !defined(__APPLE__)
    100 extern void strmode(mode_t mode, char *p);
    101 #endif
     99extern void bsd_strmode(mode_t mode, char *p);
    102100
    103101#if !defined(__FreeBSD__) && !defined(__APPLE__) && !defined(__DragonFly__)
     
    258256                        ask = 1;
    259257                } else if (access(to, W_OK) && !stat(to, &sb)) {
    260                         strmode(sb.st_mode, modep);
     258                        bsd_strmode(sb.st_mode, modep);
    261259                        (void)fprintf(stderr, "override %s%s%s/%s for %s? %s",
    262260                            modep + 1, modep[9] == ' ' ? "" : " ",
Note: See TracChangeset for help on using the changeset viewer.

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