diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-01-11 12:51:04 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2017-01-11 12:51:04 +0000 |
| commit | 4ddf0b8df5e22a0ee63a450fe001dead72923ecf (patch) | |
| tree | c2ab0cb819f89158c9efa8c772d82a666e5f8533 | |
| parent | 336b23b441711d0f88086f5fac48d4232903728d (diff) | |
| parent | a593473611dc9e109c40317ce52161b8cfe015ff (diff) | |
| download | illumos-joyent-4ddf0b8df5e22a0ee63a450fe001dead72923ecf.tar.gz | |
[illumos-gate merge]
commit a593473611dc9e109c40317ce52161b8cfe015ff
7712 mandoc -Tlint does always exit with error code 0
commit 28b83f21b6f708fcc61937fcc89194e3e5e2b295
7527 elfdump: sparc build failed after secflags integration
commit 0761b1e6f15f85a8689a952d8aa7d8a1c0d949f7
7196 sparc: libbc syscall conflicts with syscall.h
commit bfc95aff2c09d9d96369a6adbb88af800afdcbd1
7677 kmdb: intel system console value can not be screen
commit cfba4bc61aac6eae1889bf8e8750f7b6a2ee393f
7549 Add support for %S to libstand as well so /boot/loader and friends can use it.
| -rw-r--r-- | usr/src/boot/lib/libstand/printf.c | 24 | ||||
| -rw-r--r-- | usr/src/boot/sys/boot/common/bootstrap.h | 3 | ||||
| -rw-r--r-- | usr/src/boot/sys/boot/common/util.c | 5 | ||||
| -rw-r--r-- | usr/src/boot/sys/boot/efi/libefi/efi_console.c | 2 | ||||
| -rw-r--r-- | usr/src/cmd/mandoc/main.c | 101 | ||||
| -rw-r--r-- | usr/src/cmd/mandoc/mandoc.h | 11 | ||||
| -rw-r--r-- | usr/src/cmd/mandoc/read.c | 61 | ||||
| -rw-r--r-- | usr/src/cmd/mdb/intel/kmdb/kmdb_promif_isadep.c | 21 | ||||
| -rw-r--r-- | usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c | 12 | ||||
| -rw-r--r-- | usr/src/cmd/sgs/elfdump/common/struct_layout_sparcv9.c | 2 | ||||
| -rw-r--r-- | usr/src/lib/libbc/libc/sys/common/syscall.c | 2 | ||||
| -rw-r--r-- | usr/src/man/man1m/dns-sd.1m | 10 | ||||
| -rw-r--r-- | usr/src/man/man1m/mdnsd.1m | 10 | ||||
| -rw-r--r-- | usr/src/man/man3c/pthread_mutex_consistent.3c | 2 | ||||
| -rw-r--r-- | usr/src/man/man3c/pthread_mutexattr_getrobust.3c | 2 | ||||
| -rw-r--r-- | usr/src/man/man3c/signalfd.3c | 2 | ||||
| -rw-r--r-- | usr/src/man/man3c/smt_pause.3c | 2 |
17 files changed, 162 insertions, 110 deletions
diff --git a/usr/src/boot/lib/libstand/printf.c b/usr/src/boot/lib/libstand/printf.c index d91f705d75..c3e08a5b28 100644 --- a/usr/src/boot/lib/libstand/printf.c +++ b/usr/src/boot/lib/libstand/printf.c @@ -217,6 +217,7 @@ kvprintf(char const *fmt, kvprintf_fn_t *func, void *arg, int radix, va_list ap) char nbuf[MAXNBUF]; char *d; const char *p, *percent, *q; + uint16_t *S; u_char *up; int ch, n; uintmax_t num; @@ -411,6 +412,29 @@ reswitch: switch (ch = (u_char)*fmt++) { while (width--) PCHAR(padc); break; + case 'S': /* Assume console can cope with wide chars */ + S = va_arg(ap, uint16_t *); + if (S == NULL) + S = (uint16_t *)L"(null)"; + if (!dot) { + for (n = 0; S[n] != 0; n++) + continue; + } else { + for (n = 0; n < dwidth && S[n]; n++) + continue; + } + + width -= n; + + if (!ladjust && width > 0) + while (width--) + PCHAR(padc); + while (n--) + PCHAR(*S++); + if (ladjust && width > 0) + while (width--) + PCHAR(padc); + break; case 't': tflag = 1; goto reswitch; diff --git a/usr/src/boot/sys/boot/common/bootstrap.h b/usr/src/boot/sys/boot/common/bootstrap.h index fb2201f5d4..10a4e1d4bb 100644 --- a/usr/src/boot/sys/boot/common/bootstrap.h +++ b/usr/src/boot/sys/boot/common/bootstrap.h @@ -103,7 +103,8 @@ struct console #define C_PRESENTOUT (1<<1) /* console can provide output */ #define C_ACTIVEIN (1<<2) /* user wants input from console */ #define C_ACTIVEOUT (1<<3) /* user wants output to console */ -#define C_MODERAW (1<<4) /* raw mode */ +#define C_WIDEOUT (1<<4) /* c_out routine groks wide chars */ +#define C_MODERAW (1<<5) /* raw mode */ void (*c_probe)(struct console *); /* set c_flags to match hardware */ int (*c_init)(struct console *, int); /* reinit XXX may need more args */ void (*c_out)(struct console *, int); /* emit c */ diff --git a/usr/src/boot/sys/boot/common/util.c b/usr/src/boot/sys/boot/common/util.c index 455053dab8..d73d992105 100644 --- a/usr/src/boot/sys/boot/common/util.c +++ b/usr/src/boot/sys/boot/common/util.c @@ -120,6 +120,7 @@ printf(const char *fmt, ...) va_list ap; const char *hex = "0123456789abcdef"; char buf[32], *s; + uint16_t *S; unsigned long long u; int c, l; @@ -143,6 +144,10 @@ nextfmt: for (s = va_arg(ap, char *); *s != '\0'; s++) putchar(*s); break; + case 'S': /* Assume console can cope with wide chars */ + for (S = va_arg(ap, uint16_t *); *S != 0; S++) + putchar(*S); + break; case 'd': /* A lie, always prints unsigned */ case 'u': case 'x': diff --git a/usr/src/boot/sys/boot/efi/libefi/efi_console.c b/usr/src/boot/sys/boot/efi/libefi/efi_console.c index 2b46019bc1..b2d458073f 100644 --- a/usr/src/boot/sys/boot/efi/libefi/efi_console.c +++ b/usr/src/boot/sys/boot/efi/libefi/efi_console.c @@ -64,7 +64,7 @@ int efi_cons_poll(struct console *); struct console efi_console = { "text", "EFI console", - 0, + C_WIDEOUT, efi_cons_probe, efi_cons_init, efi_cons_putchar, diff --git a/usr/src/cmd/mandoc/main.c b/usr/src/cmd/mandoc/main.c index 0dd6bb5dcc..20562c7118 100644 --- a/usr/src/cmd/mandoc/main.c +++ b/usr/src/cmd/mandoc/main.c @@ -1,7 +1,8 @@ -/* $Id: main.c,v 1.269 2016/07/12 05:18:38 kristaps Exp $ */ + +/* $Id: main.c,v 1.273.2.3 2017/01/09 02:27:58 schwarze Exp $ */ /* * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2010-2012, 2014-2016 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010-2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2010 Joerg Sonnenberger <joerg@netbsd.org> * * Permission to use, copy, modify, and distribute this software for any @@ -51,12 +52,6 @@ #include "manconf.h" #include "mansearch.h" -#if !defined(__GNUC__) || (__GNUC__ < 2) -# if !defined(lint) -# define __attribute__(x) -# endif -#endif /* !defined(__GNUC__) || (__GNUC__ < 2) */ - enum outmode { OUTMODE_DEF = 0, OUTMODE_FLN, @@ -87,6 +82,11 @@ struct curparse { struct manoutput *outopts; /* output options */ }; + +#if HAVE_SQLITE3 +int mandocdb(int, char *[]); +#endif + static int fs_lookup(const struct manpaths *, size_t ipath, const char *, const char *, const char *, @@ -95,12 +95,10 @@ static void fs_search(const struct mansearch *, const struct manpaths *, int, char**, struct manpage **, size_t *); static int koptions(int *, char *); -#if HAVE_SQLITE3 -int mandocdb(int, char**); -#endif static int moptions(int *, char *); static void mmsg(enum mandocerr, enum mandoclevel, const char *, int, int, const char *); +static void outdata_alloc(struct curparse *); static void parse(struct curparse *, int, const char *); static void passthrough(const char *, int, int); static pid_t spawn_pager(struct tag_files *); @@ -486,8 +484,11 @@ main(int argc, char *argv[]) passthrough(resp->file, fd, conf.output.synopsisonly); - if (argc > 1 && curp.outtype <= OUTT_UTF8) + if (argc > 1 && curp.outtype <= OUTT_UTF8) { + if (curp.outdata == NULL) + outdata_alloc(&curp); terminal_sepline(curp.outdata); + } } else if (rc < MANDOCLEVEL_ERROR) rc = MANDOCLEVEL_ERROR; @@ -747,32 +748,8 @@ parse(struct curparse *curp, int fd, const char *file) if (rctmp != MANDOCLEVEL_OK && curp->wstop) return; - /* If unset, allocate output dev now (if applicable). */ - - if (curp->outdata == NULL) { - switch (curp->outtype) { - case OUTT_HTML: - curp->outdata = html_alloc(curp->outopts); - break; - case OUTT_UTF8: - curp->outdata = utf8_alloc(curp->outopts); - break; - case OUTT_LOCALE: - curp->outdata = locale_alloc(curp->outopts); - break; - case OUTT_ASCII: - curp->outdata = ascii_alloc(curp->outopts); - break; - case OUTT_PDF: - curp->outdata = pdf_alloc(curp->outopts); - break; - case OUTT_PS: - curp->outdata = ps_alloc(curp->outopts); - break; - default: - break; - } - } + if (curp->outdata == NULL) + outdata_alloc(curp); mparse_result(curp->mp, &man, NULL); @@ -826,6 +803,34 @@ parse(struct curparse *curp, int fd, const char *file) break; } } + mparse_updaterc(curp->mp, &rc); +} + +static void +outdata_alloc(struct curparse *curp) +{ + switch (curp->outtype) { + case OUTT_HTML: + curp->outdata = html_alloc(curp->outopts); + break; + case OUTT_UTF8: + curp->outdata = utf8_alloc(curp->outopts); + break; + case OUTT_LOCALE: + curp->outdata = locale_alloc(curp->outopts); + break; + case OUTT_ASCII: + curp->outdata = ascii_alloc(curp->outopts); + break; + case OUTT_PDF: + curp->outdata = pdf_alloc(curp->outopts); + break; + case OUTT_PS: + curp->outdata = ps_alloc(curp->outopts); + break; + default: + break; + } } static void @@ -838,11 +843,17 @@ passthrough(const char *file, int fd, int synopsis_only) const char *syscall; char *line, *cp; size_t linesz; + ssize_t len, written; int print; line = NULL; linesz = 0; + if (fflush(stdout) == EOF) { + syscall = "fflush"; + goto fail; + } + if ((stream = fdopen(fd, "r")) == NULL) { close(fd); syscall = "fdopen"; @@ -850,14 +861,16 @@ passthrough(const char *file, int fd, int synopsis_only) } print = 0; - while (getline(&line, &linesz, stream) != -1) { + while ((len = getline(&line, &linesz, stream)) != -1) { cp = line; if (synopsis_only) { if (print) { if ( ! isspace((unsigned char)*cp)) goto done; - while (isspace((unsigned char)*cp)) + while (isspace((unsigned char)*cp)) { cp++; + len--; + } } else { if (strcmp(cp, synb) == 0 || strcmp(cp, synr) == 0) @@ -865,9 +878,11 @@ passthrough(const char *file, int fd, int synopsis_only) continue; } } - if (fputs(cp, stdout)) { + for (; len > 0; len -= written) { + if ((written = write(STDOUT_FILENO, cp, len)) != -1) + continue; fclose(stream); - syscall = "fputs"; + syscall = "write"; goto fail; } } @@ -978,7 +993,7 @@ woptions(struct curparse *curp, char *arg) while (*arg) { o = arg; - switch (getsubopt(&arg, UNCONST(toks), &v)) { + switch (getsubopt(&arg, (char * const *)toks, &v)) { case 0: curp->wstop = 1; break; diff --git a/usr/src/cmd/mandoc/mandoc.h b/usr/src/cmd/mandoc/mandoc.h index d63814c6de..2ea64ea0ae 100644 --- a/usr/src/cmd/mandoc/mandoc.h +++ b/usr/src/cmd/mandoc/mandoc.h @@ -1,7 +1,7 @@ -/* $Id: mandoc.h,v 1.209 2016/01/08 02:53:13 schwarze Exp $ */ +/* $Id: mandoc.h,v 1.213 2017/01/09 01:37:03 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -65,10 +65,11 @@ enum mandocerr { MANDOCERR_DOC_EMPTY, /* no document body */ MANDOCERR_SEC_BEFORE, /* content before first section header: macro */ MANDOCERR_NAMESEC_FIRST, /* first section is not NAME: Sh title */ - MANDOCERR_NAMESEC_NONM, /* NAME section without name */ + MANDOCERR_NAMESEC_NONM, /* NAME section without Nm before Nd */ MANDOCERR_NAMESEC_NOND, /* NAME section without description */ MANDOCERR_NAMESEC_ND, /* description not at the end of NAME */ MANDOCERR_NAMESEC_BAD, /* bad NAME section content: macro */ + MANDOCERR_NAMESEC_PUNCT, /* missing comma before name: Nm name */ MANDOCERR_ND_EMPTY, /* missing description line, using "" */ MANDOCERR_SEC_ORDER, /* sections out of conventional order: Sh title */ MANDOCERR_SEC_REP, /* duplicate section title: Sh title */ @@ -98,7 +99,7 @@ enum mandocerr { MANDOCERR_ARG_EMPTY, /* empty argument, using 0n: macro arg */ MANDOCERR_BD_NOTYPE, /* missing display type, using -ragged: Bd */ MANDOCERR_BL_LATETYPE, /* list type is not the first argument: Bl arg */ - MANDOCERR_BL_NOWIDTH, /* missing -width in -tag list, using 8n */ + MANDOCERR_BL_NOWIDTH, /* missing -width in -tag list, using 6n */ MANDOCERR_EX_NONAME, /* missing utility name, using "": Ex */ MANDOCERR_FO_NOHEAD, /* missing function name, using "": Fo */ MANDOCERR_IT_NOHEAD, /* empty head in list item: Bl -type It */ @@ -107,6 +108,7 @@ enum mandocerr { MANDOCERR_BF_BADFONT, /* unknown font type, using \fR: Bf font */ MANDOCERR_PF_SKIP, /* nothing follows prefix: Pf arg */ MANDOCERR_RS_EMPTY, /* empty reference block: Rs */ + MANDOCERR_XR_NOSEC, /* missing section argument: Xr arg */ MANDOCERR_ARG_STD, /* missing -std argument, adding it: macro */ MANDOCERR_OP_EMPTY, /* missing option string, using "": OP */ MANDOCERR_UR_NOHEAD, /* missing resource identifier, using "": UR */ @@ -433,3 +435,4 @@ void mparse_result(struct mparse *, const char *mparse_getkeep(const struct mparse *); const char *mparse_strerror(enum mandocerr); const char *mparse_strlevel(enum mandoclevel); +void mparse_updaterc(struct mparse *, enum mandoclevel *); diff --git a/usr/src/cmd/mandoc/read.c b/usr/src/cmd/mandoc/read.c index 6cbcd2df00..0c5188b757 100644 --- a/usr/src/cmd/mandoc/read.c +++ b/usr/src/cmd/mandoc/read.c @@ -1,7 +1,7 @@ -/* $Id: read.c,v 1.149 2016/07/10 13:34:30 schwarze Exp $ */ +/* $Id: read.c,v 1.150.2.5 2017/01/09 02:25:53 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2010-2016 Ingo Schwarze <schwarze@openbsd.org> + * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2010, 2012 Joerg Sonnenberger <joerg@netbsd.org> * * Permission to use, copy, modify, and distribute this software for any @@ -110,10 +110,11 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "no document body", "content before first section header", "first section is not \"NAME\"", - "NAME section without name", + "NAME section without Nm before Nd", "NAME section without description", "description not at the end of NAME", "bad NAME section content", + "missing comma before name", "missing description line, using \"\"", "sections out of conventional order", "duplicate section title", @@ -143,7 +144,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "empty argument, using 0n", "missing display type, using -ragged", "list type is not the first argument", - "missing -width in -tag list, using 8n", + "missing -width in -tag list, using 6n", "missing utility name, using \"\"", "missing function name, using \"\"", "empty head in list item", @@ -152,6 +153,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { "unknown font type, using \\fR", "nothing follows prefix", "empty reference block", + "missing section argument", "missing -std argument, adding it", "missing option string, using \"\"", "missing resource identifier, using \"\"", @@ -291,13 +293,6 @@ choose_parser(struct mparse *curp) } } - if (curp->man == NULL) { - curp->man = roff_man_alloc(curp->roff, curp, curp->defos, - curp->options & MPARSE_QUICK ? 1 : 0); - curp->man->macroset = MACROSET_MAN; - curp->man->first->tok = TOKEN_NONE; - } - if (format == MPARSE_MDOC) { mdoc_hash_init(); curp->man->macroset = MACROSET_MDOC; @@ -324,6 +319,7 @@ mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start) const char *save_file; char *cp; size_t pos; /* byte number in the ln buffer */ + size_t j; /* auxiliary byte number in the blk buffer */ enum rofferr rr; int of; int lnn; /* line number in the real file */ @@ -429,14 +425,21 @@ mparse_buf_r(struct mparse *curp, struct buf blk, size_t i, int start) } if ('"' == blk.buf[i + 1] || '#' == blk.buf[i + 1]) { + j = i; i += 2; /* Comment, skip to end of line */ for (; i < blk.sz; ++i) { - if ('\n' == blk.buf[i]) { - ++i; - ++lnn; - break; - } + if (blk.buf[i] != '\n') + continue; + if (blk.buf[i - 1] == ' ' || + blk.buf[i - 1] == '\t') + mandoc_msg( + MANDOCERR_SPACE_EOL, + curp, curp->line, + pos + i-1 - j, NULL); + ++i; + ++lnn; + break; } /* Backout trailing whitespaces */ @@ -562,15 +565,7 @@ rerun: break; } - /* - * If input parsers have not been allocated, do so now. - * We keep these instanced between parsers, but set them - * locally per parse routine since we can use different - * parsers with each one. - */ - - if (curp->man == NULL || - curp->man->macroset == MACROSET_NONE) + if (curp->man->macroset == MACROSET_NONE) choose_parser(curp); /* @@ -683,10 +678,6 @@ read_whole_file(struct mparse *curp, const char *file, int fd, static void mparse_end(struct mparse *curp) { - - if (curp->man == NULL && curp->sodest == NULL) - curp->man = roff_man_alloc(curp->roff, curp, curp->defos, - curp->options & MPARSE_QUICK ? 1 : 0); if (curp->man->macroset == MACROSET_NONE) curp->man->macroset = MACROSET_MAN; if (curp->man->macroset == MACROSET_MDOC) @@ -842,11 +833,8 @@ mparse_alloc(int options, enum mandoclevel wlevel, mandocmsg mmsg, void mparse_reset(struct mparse *curp) { - roff_reset(curp->roff); - - if (curp->man != NULL) - roff_man_reset(curp->man); + roff_man_reset(curp->man); if (curp->secondary) curp->secondary->sz = 0; @@ -885,6 +873,13 @@ mparse_result(struct mparse *curp, struct roff_man **man, } void +mparse_updaterc(struct mparse *curp, enum mandoclevel *rc) +{ + if (curp->file_status > *rc) + *rc = curp->file_status; +} + +void mandoc_vmsg(enum mandocerr t, struct mparse *m, int ln, int pos, const char *fmt, ...) { diff --git a/usr/src/cmd/mdb/intel/kmdb/kmdb_promif_isadep.c b/usr/src/cmd/mdb/intel/kmdb/kmdb_promif_isadep.c index 87057ec15c..e1dfeadef0 100644 --- a/usr/src/cmd/mdb/intel/kmdb/kmdb_promif_isadep.c +++ b/usr/src/cmd/mdb/intel/kmdb/kmdb_promif_isadep.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * "PROM" interface */ @@ -84,18 +82,31 @@ kmdb_prom_free_ddi_prop(char *val) { } +/* + * This function is actually about checking if we are using + * local console versus serial console. Serial console can be named + * "ttyX" where X is [a-d], or "usb-serial". + */ int kmdb_prom_stdout_is_framebuffer(kmdb_auxv_t *kav) { char *dev; /* - * We can't use the official promif version, as we need to ensure that - * property lookups come from our property cache. + * The property "output-device" value is set in property cache, and + * is based on either "output-device" or "console" properties from + * the actual system. We can't use the official promif version, as we + * need to ensure that property lookups come from our property cache. */ if ((dev = kmdb_prom_get_ddi_prop(kav, "output-device")) == NULL) return (0); - return (strcmp(dev, "screen") == 0); + if (strncmp(dev, "tty", 3) == 0) + return (0); + if (strcmp(dev, "usb-serial") == 0) + return (0); + + /* Anything else is classified as local console. */ + return (1); } diff --git a/usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c b/usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c index b3d1c34f26..94760c3d82 100644 --- a/usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c +++ b/usr/src/cmd/sgs/elfdump/common/struct_layout_sparc.c @@ -377,12 +377,12 @@ static const sl_prfdinfo_layout_t prfdinfo_layout = { static const sl_prsecflags_layout_t prsecflags_layout = { - { 0, 40, 0, 0 }, /* sizeof (prsecflags_t) */ - { 0, 4, 0, 0 }, /* pr_version */ - { 8, 8, 0, 0 }, /* pr_effective */ - { 16, 8, 0, 0 }, /* pr_inherit */ - { 24, 8, 0, 0 }, /* pr_lower */ - { 32, 8, 0, 0 }, /* pr_upper */ + { 0, 40, 0, 0 }, /* sizeof (prsecflags_t) */ + { 0, 4, 0, 0 }, /* pr_version */ + { 8, 8, 0, 0 }, /* pr_effective */ + { 16, 8, 0, 0 }, /* pr_inherit */ + { 24, 8, 0, 0 }, /* pr_lower */ + { 32, 8, 0, 0 }, /* pr_upper */ }; diff --git a/usr/src/cmd/sgs/elfdump/common/struct_layout_sparcv9.c b/usr/src/cmd/sgs/elfdump/common/struct_layout_sparcv9.c index d068f148c2..a194d8136a 100644 --- a/usr/src/cmd/sgs/elfdump/common/struct_layout_sparcv9.c +++ b/usr/src/cmd/sgs/elfdump/common/struct_layout_sparcv9.c @@ -414,8 +414,6 @@ static const sl_arch_layout_t layout_sparcv9 = { }; - - const sl_arch_layout_t * struct_layout_sparcv9(void) { diff --git a/usr/src/lib/libbc/libc/sys/common/syscall.c b/usr/src/lib/libbc/libc/sys/common/syscall.c index 945143e40e..2ad69ed13b 100644 --- a/usr/src/lib/libbc/libc/sys/common/syscall.c +++ b/usr/src/lib/libbc/libc/sys/common/syscall.c @@ -83,7 +83,7 @@ int syscallnum[190] = { SYS_syscall, SYS_exit, -1 /*fork1*/, 0, -1 /*setpgid*/, SYS_pathconf, SYS_uname, }; -int +long syscall(int sysnum, ...) { va_list ap; diff --git a/usr/src/man/man1m/dns-sd.1m b/usr/src/man/man1m/dns-sd.1m index 1b1e8082eb..5fa529bfcc 100644 --- a/usr/src/man/man1m/dns-sd.1m +++ b/usr/src/man/man1m/dns-sd.1m @@ -1,13 +1,13 @@ .\" -*- tab-width: 4 -*- -.\" +.\" .\" Copyright (c) 2004 Apple Computer, Inc. All Rights Reserved. -.\" +.\" .\" Licensed under the Apache License, Version 2.0 (the "License"); .\" you may not use this file except in compliance with the License. .\" You may obtain a copy of the License at -.\" +.\" .\" http://www.apache.org/licenses/LICENSE-2.0 -.\" +.\" .\" Unless required by applicable law or agreed to in writing, software .\" distributed under the License is distributed on an "AS IS" BASIS, .\" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,7 +23,7 @@ .Sh NAME .Nm dns-sd .Nd Multicast DNS (mDNS) & DNS Service Discovery (DNS-SD) Test Tool \" For whatis -.\" +.\" .Sh SYNOPSIS .Nm .Op Fl E diff --git a/usr/src/man/man1m/mdnsd.1m b/usr/src/man/man1m/mdnsd.1m index 73d51e523c..b2dcedd695 100644 --- a/usr/src/man/man1m/mdnsd.1m +++ b/usr/src/man/man1m/mdnsd.1m @@ -1,13 +1,13 @@ .\" -*- tab-width: 4 -*- -.\" +.\" .\" Copyright (c) 2003-2004 Apple Computer, Inc. All Rights Reserved. -.\" +.\" .\" Licensed under the Apache License, Version 2.0 (the "License"); .\" you may not use this file except in compliance with the License. .\" You may obtain a copy of the License at -.\" +.\" .\" http://www.apache.org/licenses/LICENSE-2.0 -.\" +.\" .\" Unless required by applicable law or agreed to in writing, software .\" distributed under the License is distributed on an "AS IS" BASIS, .\" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,7 +23,7 @@ .Sh NAME .Nm mdnsd .Nd Multicast and Unicast DNS daemon \" Name Description for whatis database -.\" +.\" .Sh SYNOPSIS .Nm .\" diff --git a/usr/src/man/man3c/pthread_mutex_consistent.3c b/usr/src/man/man3c/pthread_mutex_consistent.3c index 7adfec6527..cb45730cc4 100644 --- a/usr/src/man/man3c/pthread_mutex_consistent.3c +++ b/usr/src/man/man3c/pthread_mutex_consistent.3c @@ -9,7 +9,7 @@ .\" http://www.illumos.org/license/CDDL. .\" .\" -.\" Copyright (c) 2014, Joyent, Inc. +.\" Copyright (c) 2014, Joyent, Inc. .\" .Dd "Dec 22, 2014" .Dt PTHREAD_MUTEX_CONSISTENT 3C diff --git a/usr/src/man/man3c/pthread_mutexattr_getrobust.3c b/usr/src/man/man3c/pthread_mutexattr_getrobust.3c index 3f7abffff5..cefcc73042 100644 --- a/usr/src/man/man3c/pthread_mutexattr_getrobust.3c +++ b/usr/src/man/man3c/pthread_mutexattr_getrobust.3c @@ -9,7 +9,7 @@ .\" http://www.illumos.org/license/CDDL. .\" .\" -.\" Copyright (c) 2014, Joyent, Inc. +.\" Copyright (c) 2014, Joyent, Inc. .\" .Dd "Dec 22, 2014" .Dt PTHREAD_MUTEXATTR_GETROBUST 3C diff --git a/usr/src/man/man3c/signalfd.3c b/usr/src/man/man3c/signalfd.3c index f08e85b273..fecd46e124 100644 --- a/usr/src/man/man3c/signalfd.3c +++ b/usr/src/man/man3c/signalfd.3c @@ -3,7 +3,7 @@ .\" Common Development and Distribution License ("CDDL"), version 1.0. .\" You may only use this file in accordance with the terms of version .\" 1.0 of the CDDL. -.\" +.\" .\" A full copy of the text of the CDDL should have accompanied this .\" source. A copy of the CDDL is also available via the Internet at .\" http://www.illumos.org/license/CDDL. diff --git a/usr/src/man/man3c/smt_pause.3c b/usr/src/man/man3c/smt_pause.3c index 2a890c4977..495d3b78d1 100644 --- a/usr/src/man/man3c/smt_pause.3c +++ b/usr/src/man/man3c/smt_pause.3c @@ -9,7 +9,7 @@ .\" http://www.illumos.org/license/CDDL. .\" .\" -.\" Copyright (c) 2014, Joyent, Inc. +.\" Copyright (c) 2014, Joyent, Inc. .\" .Dd "Dec 22, 2014" .Dt SMT_PAUSE 3C |
