Changeset View
Changeset View
Standalone View
Standalone View
sbin/mount/mount.c
| /*- | /* | ||||
| * SPDX-License-Identifier: BSD-3-Clause | * SPDX-License-Identifier: BSD-3-Clause | ||||
| * | * | ||||
| * Copyright (c) 1980, 1989, 1993, 1994 | * Copyright (c) 1980, 1989, 1993, 1994 | ||||
| * The Regents of the University of California. All rights reserved. | * The Regents of the University of California. All rights reserved. | ||||
| * | * | ||||
| * Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
| * modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
| * are met: | * are met: | ||||
| ▲ Show 20 Lines • Show All 867 Lines • ▼ Show 20 Lines | remopt(char *string, const char *opt) | ||||
| *r = '\0'; | *r = '\0'; | ||||
| } | } | ||||
| void | void | ||||
| usage(void) | usage(void) | ||||
| { | { | ||||
| xo_error("%s\n%s\n%s\n", | xo_error("%s\n%s\n%s\n", | ||||
| "usage: mount [-adflpruvw] [-F fstab] [-o options] [-t ufs | external_type]", | "usage: mount [-adflpruvw] [-F fstab] [-o options] [-t [no]type[,type ...]]", | ||||
| " mount [-dfpruvw] special | node", | " mount [-dfpruvw] special | node", | ||||
| " mount [-dfpruvw] [-o options] [-t ufs | external_type] special node"); | " mount [-dfpruvw] [-o options] [-t [no]type[,type ...]] special node"); | ||||
| EXIT(EXIT_FAILURE); | EXIT(EXIT_FAILURE); | ||||
| } | } | ||||
| void | void | ||||
| putfsent(struct statfs *ent) | putfsent(struct statfs *ent) | ||||
| { | { | ||||
| struct fstab *fst; | struct fstab *fst; | ||||
| const char *mntfromname; | const char *mntfromname; | ||||
| ▲ Show 20 Lines • Show All 80 Lines • Show Last 20 Lines | |||||