vfslist.c (128073) | vfslist.c (201227) |
---|---|
1/*- 2 * Copyright (c) 1995 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#ifndef lint 31#if 0 32static char sccsid[] = "@(#)vfslist.c 8.1 (Berkeley) 5/8/95"; 33#endif 34#endif /* not lint */ 35#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1995 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 --- 19 unchanged lines hidden (view full) --- 28 */ 29 30#ifndef lint 31#if 0 32static char sccsid[] = "@(#)vfslist.c 8.1 (Berkeley) 5/8/95"; 33#endif 34#endif /* not lint */ 35#include <sys/cdefs.h> |
36__FBSDID("$FreeBSD: head/sbin/mount/vfslist.c 128073 2004-04-09 19:58:40Z markm $"); | 36__FBSDID("$FreeBSD: head/sbin/mount/vfslist.c 201227 2009-12-29 22:53:27Z ed $"); |
37 38#include <err.h> 39#include <stdlib.h> 40#include <string.h> 41 42#include "extern.h" 43 44static int skipvfs; 45 46int | 37 38#include <err.h> 39#include <stdlib.h> 40#include <string.h> 41 42#include "extern.h" 43 44static int skipvfs; 45 46int |
47checkvfsname(vfsname, vfslist) 48 const char *vfsname; 49 const char **vfslist; | 47checkvfsname(const char *vfsname, const char **vfslist) |
50{ 51 52 if (vfslist == NULL) 53 return (0); 54 while (*vfslist != NULL) { 55 if (strcmp(vfsname, *vfslist) == 0) 56 return (skipvfs); 57 ++vfslist; 58 } 59 return (!skipvfs); 60} 61 62const char ** | 48{ 49 50 if (vfslist == NULL) 51 return (0); 52 while (*vfslist != NULL) { 53 if (strcmp(vfsname, *vfslist) == 0) 54 return (skipvfs); 55 ++vfslist; 56 } 57 return (!skipvfs); 58} 59 60const char ** |
63makevfslist(fslist) 64 char *fslist; | 61makevfslist(char *fslist) |
65{ 66 const char **av; 67 int i; 68 char *nextcp; 69 70 if (fslist == NULL) 71 return (NULL); 72 if (fslist[0] == 'n' && fslist[1] == 'o') { --- 20 unchanged lines hidden --- | 62{ 63 const char **av; 64 int i; 65 char *nextcp; 66 67 if (fslist == NULL) 68 return (NULL); 69 if (fslist[0] == 'n' && fslist[1] == 'o') { --- 20 unchanged lines hidden --- |