aboutsummaryrefslogtreecommitdiffstats
path: root/man7/mdoc.samples.7
AgeCommit message (Collapse)AuthorFilesLines
2019-02-27mdoc.7, mdoc.samples.7: Remove these pagesMichael Kerrisk1-2956/+0
groff_mdoc(7) from the groff project provides a better equivalent of mdoc.samples(7) and the 'mandoc' project provides a better mdoc(7). And nowadays, there are virtually no pages in "man-pages" that use mdoc markup. So, drop these pages. From a conversation on linux-man with Ingo Schwarz: [[ Subject: Re: [groff] [PATCH] man7/mdoc_samples.7: srcfix: Avoid a warning about a wrong section Date: Wed, 27 Feb 2019 15:28:19 +0100 > The two actual problems are both within the Linux man-pages project, > not within groff: > > 1. While back in the early 1990ies, Cynthia Livingston's > mdoc.samples(7) manual page was an important document and the > de-facto language definition of the mdoc(7) language, it has > been outdated for a long time now. The current groff_mdoc(7) > manual page is based on it but contains large numbers of important > improvements by Werner Lemberg and others. As an alternative > language definition that is slightly more concise without being > less precise and complete, the mdoc(7) manual page is available > from the mandoc(1) distribution (mandoc.bsd.lv). If there are > any contradictions between groff_mdoc(7) and mdoc(7), those are > unintended and i ought to fix them. > > So i really believe that the Linux man-pages project ought to > stop distributing the woefully outdated mdoc.samples(7) manual > page. If you want to include documentation for the mdoc language, > i suggest that you either include a copy of the current version > of the groff_mdoc(7) manual from the groff(1) distribution or > of the mdoc(7) manual from the mandoc(1) distribution, whichever > you think harmonizes better with the Linux man-pages project. > Both are BSD-style licensed, so there should be no licensing > issues. > > I'm not sure whether it is better for you to include or not > include it. There is probably value in having mdoc(7) documentation > out of the box with the Linux man-pages project. Then again, > having groff_mdoc(7) in both the Linux man-pages package and > in the groff package - or having mdoc(7) in both the Linux > man-pages project and the mandoc(1) package - might cause > packaging conflicts for some distributions. I don't rightly > know how such conflicts are typically handled by Linux > distributions. Not being able to install the Linux man-pages > pages project, groff(1) and mandoc(1) all together on the same > Linux machine would certainly be a bad situation... > > By the way, the mdoc(7) manual page distributed by the Linux > man-pages project also makes very little sense. It is a partial > repetition of information from groff_mdoc(7)/[mandoc-]mdoc(7), > but so compressed that it is mostly unintelligible. Besides, > it is incomplete: e.g. .Lk, .Mt, .Dx, .Ox, .Nx, .Ta, .%U, .Bk, > .Ek, .Lb, .In, .Ft, .Ms, .Brq, .Bro, .Brc, .Ex are missing - > it seems outdated by at lest 25 years. Also, some claims are > outright wrong - for example, you *cannot* use .UR/.UE in an > mdoc(7) document, and i cannot remember ever having seen an > implementation of a .UN macro anywhere. Some macros descriptions > are also wrong, e.g. .Fd is *not* intended for "function > declarations", and .Vt is *not* "Fortran only". And so on. > > 2. I don't recommend keeping the old mdoc.samples(7) and mdoc(7) > manual pages, but if you think you must do that for some reason, > then you must at least revert this bogus commit: I am *not at all* attached to keeping to these pages. Their presence in the project has always felt a bit anomalous to me. Back when I took over maintainership in 2004, there were a small number of pages that used mdoc markup, and so it seemed wise to keep these pages. Over time, most of those few pages were converted to 'man' markup, and today the only other page in the project that still uses mdoc markup is in queue(3). So, there is just about zero value in having 'mdoc' documentation come with the "Linux man-pages" box. Since I seldom use mdoc markup myself, I've had no reason to monitor pages such as groff_mdoc(7) or the mdoc(7) page provided my ther 'mandoc' project and compare them with the pages provided by "Linux man-pages". Now I've had a closer look. It's sad. I've removed mdoc(7) and mdoc.samples(7) from "Linux -man-pages". ]] Reported-by: Ingo Schwarze <schwarze@usta.de>
2017-08-25mdoc.samples.7: grfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-02mdoc.samples.7: srcfixMichael Kerrisk1-2/+2
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-26mdoc.samples.7: grfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-26mdoc.samples.7: grfixMichael Kerrisk1-3/+3
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-18duplocale.3, isalpha.3, strftime.3, strtol.3, strtoul.3, koi8-u.7, ↵Michael Kerrisk1-3/+3
man-pages.7, mdoc.7, mdoc.samples.7, uri.7: Global change: "upper case" ==> "uppercase", "lower case" ==> lowercase" Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-01intro.1, _syscall.2, access.2, arch_prctl.2, cacheflush.2, chown.2, ↵Michael Kerrisk1-1/+1
clock_getres.2, clone.2, create_module.2, fcntl.2, flock.2, get_kernel_syms.2, get_robust_list.2, get_thread_area.2, getcpu.2, getpriority.2, getrlimit.2, getrusage.2, ioprio_set.2, kexec_load.2, madvise.2, mbind.2, migrate_pages.2, mknod.2, mmap.2, mount.2, move_pages.2, mprotect.2, open.2, pause.2, pciconfig_read.2, perf_event_open.2, prctl.2, ptrace.2, query_module.2, read.2, reboot.2, recv.2, s390_runtime_instr.2, sched_setscheduler.2, select_tut.2, send.2, set_mempolicy.2, setfsgid.2, setfsuid.2, sigaction.2, spu_create.2, spu_run.2, stime.2, swapon.2, syslog.2, timer_create.2, timer_getoverrun.2, times.2, tkill.2, umount.2, unimplemented.2, ustat.2, vm86.2, wait.2, abs.3, aio_read.3, aio_write.3, bsd_signal.3, catgets.3, clearenv.3, cmsg.3, dbopen.3, dirfd.3, dlopen.3, exec.3, fenv.3, ferror.3, fmemopen.3, fnmatch.3, fopen.3, futimes.3, getaddrinfo.3, getifaddrs.3, getipnodebyname.3, hsearch.3, if_nameindex.3, inet_pton.3, mblen.3, mbrlen.3, mbsrtowcs.3, mbtowc.3, mcheck.3, memfrob.3, mq_notify.3, netlink.3, posix_memalign.3, printf.3, pthread_attr_setscope.3, pthread_cleanup_push.3, pthread_kill_other_threads_np.3, pthread_self.3, pthread_setcancelstate.3, pthread_setconcurrency.3, raise.3, resolver.3, rpc.3, rtime.3, rtnetlink.3, scanf.3, setbuf.3, setnetgrent.3, shm_open.3, sigpause.3, sigset.3, sigwait.3, sockatmark.3, strcasecmp.3, strcmp.3, strdup.3, strftime.3, strptime.3, strsignal.3, strverscmp.3, sysv_signal.3, termios.3, wcrtomb.3, wcsnlen.3, wcsnrtombs.3, wcsrtombs.3, wctomb.3, wprintf.3, console_codes.4, cpuid.4, msr.4, rtc.4, sk98lin.4, st.4, tty.4, charmap.5, core.5, elf.5, hosts.equiv.5, proc.5, resolv.conf.5, services.5, slabinfo.5, arp.7, bootparam.7, capabilities.7, charsets.7, cpuset.7, ddp.7, epoll.7, feature_test_macros.7, futex.7, hier.7, icmp.7, inotify.7, ip.7, ipv6.7, man-pages.7, mdoc.7, mdoc.samples.7, netdevice.7, netlink.7, numa.7, packet.7, path_resolution.7, posixoptions.7, pthreads.7, raw.7, rtld-audit.7, rtnetlink.7, sem_overview.7, sigevent.7, socket.7, spufs.7, tcp.7, udp.7, unicode.7, uri.7, utf-8.7, intro.8, ldconfig.8, sync.8: Global fix: fix placement of word "only" Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-12accept.2, bind.2, connect.2, getpeername.2, getpriority.2, getsockname.2, ↵Michael Kerrisk1-1/+1
getsockopt.2, ioctl.2, killpg.2, listen.2, lseek.2, readlink.2, recv.2, send.2, setpgid.2, setreuid.2, shutdown.2, socket.2, socketpair.2, syscall.2, truncate.2, alloca.3, btree.3, daemon.3, dbopen.3, err.3, exec.3, fclose.3, ferror.3, fflush.3, fopen.3, fread.3, fseek.3, fts.3, hash.3, mpool.3, popen.3, queue.3, rcmd.3, recno.3, rexec.3, scanf.3, setbuf.3, stdarg.3, stdio.3, strtod.3, hostname.7, mdoc.7, mdoc.samples.7: srcfix: LICENSE: s/BSD_4_CLAUSE_FULL/BSD_4_CLAUSE_UCB/ Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-10accept.2, bind.2, connect.2, getpeername.2, getpriority.2, getsockname.2, ↵Michael Kerrisk1-0/+2
getsockopt.2, ioctl.2, killpg.2, listen.2, lseek.2, readlink.2, recv.2, send.2, setpgid.2, setreuid.2, shutdown.2, socket.2, socketpair.2, syscall.2, truncate.2, alloca.3, btree.3, daemon.3, dbopen.3, err.3, exec.3, fclose.3, ferror.3, fflush.3, fopen.3, fread.3, fseek.3, fts.3, getloadavg.3, hash.3, mpool.3, openpty.3, popen.3, queue.3, rcmd.3, recno.3, rexec.3, scanf.3, setbuf.3, stdarg.3, stdio.3, strtod.3, hostname.7, mdoc.7, mdoc.samples.7, operator.7, symlink.7: Add LICENSE_START(BSD_[34]_CLAUSE_FULL) Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-26time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, ↵Michael Kerrisk1-57/+57
getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Revert 9f8e673e623d (whose global s%\\e%\\\\% caused problems) Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-09-24time.1, atexit.3, bsearch.3, dlopen.3, envz_add.3, errno.3, fmtmsg.3, ↵Michael Kerrisk1-57/+57
getgrent_r.3, getline.3, getmntent.3, getnameinfo.3, getpass.3, getpwent_r.3, gets.3, isalpha.3, printf.3, puts.3, recno.3, scandir.3, stdarg.3, sysconf.3, termios.3, wordexp.3, null.4, core.5, dir_colors.5, issue.5, proc.5, termcap.5, utmp.5, ascii.7, cpuset.7, glob.7, man-pages.7, man.7, mdoc.7, mdoc.samples.7, regex.7: Global fix: use \\ rather than \e for literal backslash Reported-by: Jan Engelhardt <jengelh@inai.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19mdoc.samples.7: Fix warnings from [ng]roff, correctionsBjarni Ingi Gislason1-38/+46
From "man -ww ..." (groff -ww ...): <standard input>:541: warning: tab character in unquoted macro argument [+3 similar warnings] <standard input>:813: warning: macro `Pu' not defined Usage: .Rv -std in sections 2 and 3 only (#1669) mdoc warning: A .Bl directive has no matching .El (#1821) String "Pu" defined as a row of punctuation characters. ".Bl" and ".El" fixed. Some arguments, that start with a period or are the name of a macro, protected with "\&". Variable name for macro ".Rv" corrected. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07scanf.3, system.3, initrd.4, sk98lin.4, mdoc.samples.7, nscd.8: grfixMichael Kerrisk1-1/+1
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-05-07add_key.2, query_module.2, request_key.2, resolver.3, stpcpy.3, strftime.3, ↵Michael Kerrisk1-1/+2
elf.5, proc.5, mdoc.samples.7: srcfix: Wrap source lines at sentence boundaries Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16accept.2, access.2, acct.2, clock_nanosleep.2, mbind.2, mincore.2, ↵Michael Kerrisk1-3/+3
remap_file_pages.2, sched_setscheduler.2, set_mempolicy.2, splice.2, stat.2, syslog.2, timer_create.2, timerfd_create.2, truncate.2, fenv.3, ferror.3, fflush.3, fgetwc.3, fgetws.3, flockfile.3, fputwc.3, fputws.3, fread.3, getopt.3, gets.3, getwchar.3, glob.3, iconv.3, longjmp.3, pow.3, printf.3, puts.3, putwchar.3, regex.3, rpc.3, scanf.3, setjmp.3, termios.3, unlocked_stdio.3, wcswidth.3, hd.4, rtc.4, st.4, core.5, dir_colors.5, elf.5, proc.5, arp.7, ascii.7, boot.7, bootparam.7, charsets.7, futex.7, ip.7, iso_8859-11.7, man-pages.7, man.7, mdoc.samples.7, path_resolution.7, pipe.7, posixoptions.7, unicode.7, unix.7, uri.7, utf-8.7, ld.so.8: s/non-/non/ The tendency in English, as prescribed in style guides like Chicago MoS, is towards removing hyphens after prefixes like "non-" etc. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16msgop.2, semop.2, lgamma.3, tgamma.3, mdoc.samples.7: Global fix: ↵Michael Kerrisk1-2/+2
s/non-positive/nonpositive/ The tendency in English, as prescribed in style guides like Chicago MoS, is towards removing hyphens after prefixes like "non-" etc. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-01-16intro.1, time.1, adjtimex.2, capget.2, eventfd.2, fcntl.2, getrlimit.2, ↵Michael Kerrisk1-1/+1
getsockopt.2, gettimeofday.2, intro.2, ioctl_list.2, ioperm.2, mlock.2, pivot_root.2, poll.2, prctl.2, ptrace.2, sched_setscheduler.2, select_tut.2, semget.2, sigaltstack.2, signalfd.2, sysctl.2, timer_settime.2, timerfd_create.2, wait.2, CPU_SET.3, argz_add.3, assert_perror.3, atexit.3, backtrace.3, bcmp.3, clearenv.3, ctime.3, dl_iterate_phdr.3, dlopen.3, ecvt.3, errno.3, error.3, ether_aton.3, exit.3, fenv.3, ferror.3, finite.3, flockfile.3, fnmatch.3, fpathconf.3, fpclassify.3, ftime.3, ftok.3, ftw.3, fwide.3, getaddrinfo.3, gethostbyname.3, getlogin.3, getnameinfo.3, getnetent.3, getopt.3, getprotoent.3, getrpcent.3, getservent.3, glob.3, hsearch.3, inet.3, isalpha.3, iswalnum.3, iswalpha.3, iswblank.3, iswcntrl.3, iswctype.3, iswdigit.3, iswgraph.3, iswlower.3, iswprint.3, iswpunct.3, iswspace.3, iswupper.3, iswxdigit.3, longjmp.3, lsearch.3, malloc.3, matherr.3, mblen.3, mbsinit.3, mbtowc.3, on_exit.3, printf.3, pthread_attr_init.3, pthread_attr_setaffinity_np.3, pthread_attr_setdetachstate.3, pthread_attr_setguardsize.3, pthread_attr_setinheritsched.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_attr_setscope.3, pthread_attr_setstack.3, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, pthread_cancel.3, pthread_cleanup_push.3, pthread_equal.3, pthread_getattr_np.3, pthread_getcpuclockid.3, pthread_setaffinity_np.3, pthread_setcancelstate.3, pthread_setconcurrency.3, pthread_setschedparam.3, pthread_setschedprio.3, ptsname.3, putenv.3, putgrent.3, raise.3, rcmd.3, regex.3, rexec.3, rpc.3, rpmatch.3, rtnetlink.3, scandir.3, sem_init.3, setaliasent.3, setbuf.3, setenv.3, setjmp.3, signbit.3, stdio_ext.3, strtod.3, strtol.3, strtoul.3, system.3, termios.3, timeradd.3, tzset.3, ualarm.3, wctomb.3, xdr.3, st.4, tty_ioctl.4, core.5, elf.5, proc.5, bootparam.7, capabilities.7, icmp.7, ip.7, ipv6.7, math_error.7, mdoc.samples.7, mq_overview.7, pthreads.7, raw.7, regex.7, socket.7, tcp.7, tzselect.8: Global fix: s/non-zero/nonzero/ The tendency in English, as prescribed in style guides like Chicago MoS, is towards removing hyphens after prefixes like "non-" etc. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2008-07-01s/ / /Michael Kerrisk1-2/+2
2008-03-19s/nonzero/non-zero/Michael Kerrisk1-1/+1
2008-03-19s/command line/command-line/ when used attributively.Michael Kerrisk1-5/+5
2007-12-25hyphenation fixesMichael Kerrisk1-1/+1
2007-12-25Hyphenation fixesMichael Kerrisk1-1/+1
2007-10-09tfixMichael Kerrisk1-1/+1
2007-10-04grfixMichael Kerrisk1-2/+2
2007-08-27Nowadays tmac.XXX are called XXX.tmacMichael Kerrisk1-1/+1
2007-06-17ffixMichael Kerrisk1-1/+1
2007-06-08Change "e.g. " to "e.g., ", or in some cases, "for example, ".Michael Kerrisk1-2/+2
Change "i.e. " to i.e.., ", or in some cases, "that is, ".
2007-06-08Wrapped source lines at sentence boundaries.Michael Kerrisk1-5/+10
2007-05-27Added SEE ALSO reference to groff_mdoc(7).Michael Kerrisk1-0/+1
2007-05-22Eliminate error:Michael Kerrisk1-1/+1
mdoc.samples.7:1082: warning: `int' not defined (probable missing space after `in')
2007-05-22ffixMichael Kerrisk1-0/+1
2007-05-16Move SEE ALSO section to end of pageMichael Kerrisk1-4/+4
2007-05-16s/RETURN VALUES/RETURN VALUE/Michael Kerrisk1-2/+2
2007-04-12Wrapped long lines, wrapped at sentence boundaries; stripped trailingMichael Kerrisk1-5/+5
white space.
2006-02-12Chage "file name" to "filename"Michael Kerrisk1-2/+2
2005-07-18id --> IDMichael Kerrisk1-3/+3
2005-07-18Classical BSD versions are now always named x.yBSD (formerlyMichael Kerrisk1-1/+1
there was a mix of x.yBSD and BSD x.y).
2004-11-03Import of man-pages 1.70man-pages-1.70Michael Kerrisk1-0/+2938