umount.c (9268022b74279434ed6300244e3f977e56a8ceb5) umount.c (e96092e82bbfbee2350ed4061ae1db9b95ef7156)
1/*-
2 * Copyright (c) 1980, 1989, 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

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

429 return (0);
430}
431
432struct statfs *
433getmntentry(const char *fromname, const char *onname, fsid_t *fsid, dowhat what)
434{
435 static struct statfs *mntbuf;
436 static size_t mntsize = 0;
1/*-
2 * Copyright (c) 1980, 1989, 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

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

429 return (0);
430}
431
432struct statfs *
433getmntentry(const char *fromname, const char *onname, fsid_t *fsid, dowhat what)
434{
435 static struct statfs *mntbuf;
436 static size_t mntsize = 0;
437 static char *mntcheck = NULL;
437 static int *mntcheck = NULL;
438 struct statfs *sfs, *foundsfs;
439 int i, count;
440
441 if (mntsize <= 0) {
442 if ((mntsize = mntinfo(&mntbuf)) <= 0)
443 return (NULL);
444 }
445 if (mntcheck == NULL) {

--- 170 unchanged lines hidden ---
438 struct statfs *sfs, *foundsfs;
439 int i, count;
440
441 if (mntsize <= 0) {
442 if ((mntsize = mntinfo(&mntbuf)) <= 0)
443 return (NULL);
444 }
445 if (mntcheck == NULL) {

--- 170 unchanged lines hidden ---