mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fontsrv: add half-documented -s option
This commit is contained in:
parent
222094401f
commit
76f90e5145
2 changed files with 12 additions and 4 deletions
|
@ -7,6 +7,10 @@ fontsrv \- file system access to host fonts
|
||||||
.B -m
|
.B -m
|
||||||
.I mtpt
|
.I mtpt
|
||||||
]
|
]
|
||||||
|
[
|
||||||
|
.B -s
|
||||||
|
.I srvname
|
||||||
|
]
|
||||||
.PP
|
.PP
|
||||||
.B fontsrv
|
.B fontsrv
|
||||||
.B -p
|
.B -p
|
||||||
|
|
|
@ -483,9 +483,10 @@ fontcmp(const void *va, const void *vb)
|
||||||
void
|
void
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *mtpt;
|
char *mtpt, *srvname;
|
||||||
|
|
||||||
mtpt = unsharp("#9/font/mnt");
|
mtpt = nil;
|
||||||
|
srvname = "font";
|
||||||
|
|
||||||
ARGBEGIN{
|
ARGBEGIN{
|
||||||
case 'D':
|
case 'D':
|
||||||
|
@ -497,6 +498,9 @@ main(int argc, char **argv)
|
||||||
case 'm':
|
case 'm':
|
||||||
mtpt = EARGF(usage());
|
mtpt = EARGF(usage());
|
||||||
break;
|
break;
|
||||||
|
case 's':
|
||||||
|
srvname = EARGF(usage());
|
||||||
|
break;
|
||||||
case 'p':
|
case 'p':
|
||||||
pflag++;
|
pflag++;
|
||||||
break;
|
break;
|
||||||
|
@ -536,7 +540,7 @@ main(int argc, char **argv)
|
||||||
sysfatal("mountpoint %s does not exist", mtpt);
|
sysfatal("mountpoint %s does not exist", mtpt);
|
||||||
|
|
||||||
xsrv.foreground = 1;
|
xsrv.foreground = 1;
|
||||||
threadpostmountsrv(&xsrv, "font", mtpt, 0);
|
threadpostmountsrv(&xsrv, srvname, mtpt, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue