Changeset 2001 for trunk/src/kmk/kmkbuiltin
- Timestamp:
- Oct 29, 2008, 11:14:48 PM (17 years ago)
- Location:
- trunk/src/kmk/kmkbuiltin
- Files:
- 
      - 4 edited
 
 - 
          
  err.c (modified) (1 diff)
- 
          
  kbuild_protection.c (modified) (4 diffs)
- 
          
  kbuild_protection.h (modified) (1 diff)
- 
          
  setmode.c (modified) (1 diff)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/src/kmk/kmkbuiltin/err.cr785 r2001 75 75 void warnx(const char *fmt, ...) 76 76 { 77 int err = errno;78 77 va_list args; 79 78 fprintf(stderr, "%s: ", g_progname); 
- 
      trunk/src/kmk/kmkbuiltin/kbuild_protection.cr1635 r2001 37 37 # include <limits.h> 38 38 # include <direct.h> 39 #endif 39 #else 40 # include <unistd.h> 41 #endif 40 42 #include "kbuild_protection.h" 43 #include "err.h" 41 44 42 45 … … 185 188 } 186 189 } 187 #else 190 #else /* !WIN && !OS2 */ 188 191 if (!IS_SLASH(pszPath[0])) 189 192 { … … 199 202 cComponents = countSubPathComponents(szCwd, 0); 200 203 } 201 #endif 204 #endif /* !WIN && !OS2 */ 202 205 203 206 /* … … 352 355 if (cComponents < 0) 353 356 return -1; 354 if ( cComponents <= pThis->cProtectionDepth)357 if ((unsigned int)cComponents <= pThis->cProtectionDepth) 355 358 { 356 359 errx(1, "%s: protected", pszPath); 
- 
      trunk/src/kmk/kmkbuiltin/kbuild_protection.hr1598 r2001 46 46 typedef struct KBUILDPROTECTION 47 47 { 48 unsigned 49 unsigned 48 unsigned int uMagic; 49 unsigned int cProtectionDepth; 50 50 unsigned char afTypes[KBUILDPROTECTIONTYPE_MAX]; 51 51 } KBUILDPROTECTION; 
- 
      trunk/src/kmk/kmkbuiltin/setmode.cr1710 r2001 396 396 case 'X': 397 397 set->cmd = op; 398 set->bits = (who ? who : mask) & oparg;398 set->bits = (who ? (mode_t)who : mask) & oparg; 399 399 break; 400 400 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
