Deleted Added
full compact
savecore.c (17717) savecore.c (18042)
1/*-
2 * Copyright (c) 1986, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 534 unchanged lines hidden (view full) ---

543 syslog(LOG_ERR, "%s: %m", tkernel);
544 exit(1);
545 }
546 kernelsize = st.st_blocks * S_BLKSIZE;
547 if (statfs(dirname, &fsbuf) < 0) {
548 syslog(LOG_ERR, "%s: %m", dirname);
549 exit(1);
550 }
1/*-
2 * Copyright (c) 1986, 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 534 unchanged lines hidden (view full) ---

543 syslog(LOG_ERR, "%s: %m", tkernel);
544 exit(1);
545 }
546 kernelsize = st.st_blocks * S_BLKSIZE;
547 if (statfs(dirname, &fsbuf) < 0) {
548 syslog(LOG_ERR, "%s: %m", dirname);
549 exit(1);
550 }
551 spacefree = (fsbuf.f_bavail * fsbuf.f_bsize) / 1024;
551 spacefree = ((off_t) fsbuf.f_bavail * fsbuf.f_bsize) / 1024;
552
553 (void)snprintf(path, sizeof(path), "%s/minfree", dirname);
554 if ((fp = fopen(path, "r")) == NULL)
555 minfree = 0;
556 else {
557 if (fgets(buf, sizeof(buf), fp) == NULL)
558 minfree = 0;
559 else

--- 93 unchanged lines hidden ---
552
553 (void)snprintf(path, sizeof(path), "%s/minfree", dirname);
554 if ((fp = fopen(path, "r")) == NULL)
555 minfree = 0;
556 else {
557 if (fgets(buf, sizeof(buf), fp) == NULL)
558 minfree = 0;
559 else

--- 93 unchanged lines hidden ---