Mercurial > unleashed > wips
changeset 20518:ac124d2d3cc1
treewide: fopen64() -> fopen()
author | Lauri Tirkkonen <lotheac@iki.fi> |
---|---|
date | Tue, 16 Apr 2019 22:49:08 +0300 |
parents | 80bebb66a25a |
children | a782aefab810 |
files | usr/src/cmd/backup/restore/dirs.c usr/src/cmd/backup/restore/utilities.c usr/src/cmd/fs.d/ufs/edquota/edquota.c usr/src/cmd/fs.d/ufs/quotacheck/quotacheck.c usr/src/cmd/fs.d/ufs/repquota/repquota.c usr/src/cmd/ldap/common/common.c |
diffstat | 6 files changed, 9 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/backup/restore/dirs.c Tue Apr 16 22:46:48 2019 +0300 +++ b/usr/src/cmd/backup/restore/dirs.c Tue Apr 16 22:49:08 2019 +0300 @@ -666,7 +666,7 @@ /* XXX if modefile[0] == '#', shouldn't we just bail here? */ /* XXX why isn't it set already? */ INIT_MODEFILE(); - smf = fopen64(modefile, "r"); + smf = fopen(modefile, "r"); if (smf == NULL) { perror("fopen"); (void) fprintf(stderr,
--- a/usr/src/cmd/backup/restore/utilities.c Tue Apr 16 22:46:48 2019 +0300 +++ b/usr/src/cmd/backup/restore/utilities.c Tue Apr 16 22:49:08 2019 +0300 @@ -744,7 +744,7 @@ } /* - * STDIO version of safe_open. Equivalent to fopen64(...). + * STDIO version of safe_open. Equivalent to fopen(...). */ FILE * safe_fopen(const char *filename, const char *smode, int perms)
--- a/usr/src/cmd/fs.d/ufs/edquota/edquota.c Tue Apr 16 22:46:48 2019 +0300 +++ b/usr/src/cmd/fs.d/ufs/edquota/edquota.c Tue Apr 16 22:49:08 2019 +0300 @@ -325,7 +325,7 @@ FILE *fd; getdiscq(uid); - if ((fd = fopen64(tmpfil, "w")) == NULL) { + if ((fd = fopen(tmpfil, "w")) == NULL) { (void) fprintf(stderr, "edquota: "); perror(tmpfil); (void) unlink(tmpfil); @@ -354,7 +354,7 @@ uint32_t max_limit; int quota_entry_printed; - fd = fopen64(tmpfil, "r"); + fd = fopen(tmpfil, "r"); if (fd == NULL) { (void) fprintf(stderr, "Can't re-read temp file!!\n"); return; @@ -500,7 +500,7 @@ char btime[80], ftime[80]; getdiscq(uid); - if ((fd = fopen64(tmpfil, "w")) == NULL) { + if ((fd = fopen(tmpfil, "w")) == NULL) { (void) fprintf(stderr, "edquota: "); perror(tmpfil); (void) unlink(tmpfil); @@ -525,7 +525,7 @@ double btimelimit, ftimelimit; char bunits[80], funits[80]; - fd = fopen64(tmpfil, "r"); + fd = fopen(tmpfil, "r"); if (fd == NULL) { (void) fprintf(stderr, "Can't re-read temp file!!\n"); return;
--- a/usr/src/cmd/fs.d/ufs/quotacheck/quotacheck.c Tue Apr 16 22:46:48 2019 +0300 +++ b/usr/src/cmd/fs.d/ufs/quotacheck/quotacheck.c Tue Apr 16 22:49:08 2019 +0300 @@ -447,7 +447,7 @@ perror(rawdisk); return (1); } - qf = fopen64(qffile, "r+"); + qf = fopen(qffile, "r+"); if (qf == NULL) { perror(qffile); close(fi);
--- a/usr/src/cmd/fs.d/ufs/repquota/repquota.c Tue Apr 16 22:46:48 2019 +0300 +++ b/usr/src/cmd/fs.d/ufs/repquota/repquota.c Tue Apr 16 22:49:08 2019 +0300 @@ -236,7 +236,7 @@ if (vflag || aflag) (void) printf("%s (%s):\n", fsdev, fsfile); - qf = fopen64(qffile, "r"); + qf = fopen(qffile, "r"); if (qf == NULL) { perror(qffile); return (1);
--- a/usr/src/cmd/ldap/common/common.c Tue Apr 16 22:46:48 2019 +0300 +++ b/usr/src/cmd/ldap/common/common.c Tue Apr 16 22:49:08 2019 +0300 @@ -2479,7 +2479,7 @@ ldaptool_open_file(const char *filename, const char *mode) { #ifdef _LARGEFILE64_SOURCE - return fopen64(filename, mode); + return fopen(filename, mode); #else return fopen(filename, mode); #endif