Changeset 126 in MondoRescue for branches/2.05/mondo/mondo/common/libmondo-tools.c
- Timestamp:
- Nov 19, 2005, 1:53:52 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mondo/mondo/common/libmondo-tools.c
r99 r126 422 422 get_time () 423 423 { 424 425 #if 0426 427 /*@ pointers *****************************************************/428 FILE *fin;429 430 /*@ buffers ******************************************************/431 char incoming[MAX_STR_LEN];432 433 /*@ end vars *****************************************************/434 435 if (!(fin = popen ("date +%s", "r"))) { log_OS_error("Cannot popen date"); return(0); }436 fgets (incoming, MAX_STR_LEN - 1, fin);437 paranoid_pclose (fin);438 return (atol (incoming));439 #else440 424 return (long) time ((void *) 0); 441 #endif442 425 } 443 426
Note:
See TracChangeset
for help on using the changeset viewer.