Changeset 1204 in kBuild for trunk/src/kash/miscbltin.c
- Timestamp:
- Oct 7, 2007 2:19:01 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/miscbltin.c
r1203 r1204 48 48 */ 49 49 50 #include <sys/types.h> /* quad_t */ 51 #include <sys/param.h> /* BSD4_4 */ 50 #include <sys/types.h> 52 51 #include <sys/stat.h> 53 52 #include <sys/time.h> … … 57 56 #include <ctype.h> 58 57 #include <errno.h> 58 #ifndef _MSC_VER 59 # include "mscfakes.h" 60 #endif 59 61 60 62 #include "shell.h" … … 89 91 90 92 int 91 readcmd( int argc, char **argv)93 readcmd(shinstance *psh, int argc, char **argv) 92 94 { 93 95 char **ap; … … 107 109 while ((i = nextopt(psh, "p:r")) != '\0') { 108 110 if (i == 'p') 109 prompt = optionarg;111 prompt = psh->optionarg; 110 112 else 111 113 rflag = 1; … … 214 216 215 217 int 216 umaskcmd( int argc, char **argv)218 umaskcmd(shinstance *psh, int argc, char **argv) 217 219 { 218 220 char *ap; … … 354 356 355 357 int 356 ulimitcmd( int argc, char **argv)358 ulimitcmd(shinstance *psh, int argc, char **argv) 357 359 { 358 360 int c; … … 418 420 out1fmt(psh, "%-20s ", l->name); 419 421 if (val == RLIM_INFINITY) 420 out1fmt( "unlimited\n");422 out1fmt(psh, "unlimited\n"); 421 423 else 422 424 { 423 425 val /= l->factor; 424 #ifdef BSD4_4425 426 out1fmt(psh, "%lld\n", (long long) val); 426 #else427 out1fmt(psh, "%ld\n", (long) val);428 #endif429 427 } 430 428 } … … 451 449 { 452 450 val /= l->factor; 453 #ifdef BSD4_4454 451 out1fmt(psh, "%lld\n", (long long) val); 455 #else456 out1fmt(psh, "%ld\n", (long) val);457 #endif458 452 } 459 453 }
Note:
See TracChangeset
for help on using the changeset viewer.