Home
last modified time | relevance | path

Searched refs:roff (Results 1 – 25 of 87) sorted by relevance

1234

/openbsd-src/usr.bin/mandoc/
H A Dlibmandoc.h19 * and the top-level functions to call the mdoc, man, and roff parsers.
23 * Return codes passed from the roff parser to the main parser.
29 #define ROFF_RERUN 0x002 /* Re-run the roff parser with an offset. */
51 struct roff;
70 void roff_free(struct roff *);
71 struct roff *roff_alloc(int);
72 void roff_reset(struct roff *);
74 struct roff_man *roff_man_alloc(struct roff *, const char *, int);
76 int roff_parseln(struct roff *, int, struct buf *, int *, size_t);
77 void roff_userret(struct roff *);
[all...]
H A Droff.c1 /* $OpenBSD: roff.c,v 1.276 2025/01/06 18:48:13 schwarze Exp $ */
18 * Implementation of the roff(7) parser for mandoc(1).
34 #include "roff.h"
100 struct roff { struct
142 #define ROFF_ARGS struct roff *r, /* parse ctx */ \ argument
170 static int roffnode_cleanscope(struct roff *);
171 static int roffnode_pop(struct roff *);
172 static void roffnode_push(struct roff *, enum roff_tok,
182 static int roff_ccond(struct roff *, int, int);
191 static int roff_eqndelim(struct roff *, struc
101 manroff global() argument
102 lastroff global() argument
106 regtabroff global() argument
107 strtabroff global() argument
108 rentabroff global() argument
109 xmbtabroff global() argument
110 xtabroff global() argument
131 optionsroff global() argument
866 roff_man_alloc(struct roff * roff,const char * os_s,int quick) roff_man_alloc() argument
[all...]
H A Droff_int.h24 struct roff;
34 struct roff *roff; /* Roff parser state data. */ member
H A Dread.c53 struct roff *roff; /* roff parser (!NULL) */ member
107 if ((format = roff_getformat(curp->roff)) == 0) { in choose_parser()
287 line_result = roff_parseln(curp->roff, curp->line, in mparse_buf_r()
371 roff_userret(curp->roff); in mparse_buf_r()
549 roff_endparse(curp->roff); in mparse_end()
672 curp->roff = roff_alloc(options); in mparse_alloc()
673 curp->man = roff_man_alloc(curp->roff, curp->os_s, in mparse_alloc()
694 roff_reset(curp->roff); in mparse_reset()
709 roff_free(curp->roff); in mparse_free()
H A Dman_macro.c269 roff_setreg(man->roff, "an-margin", nn->head->aux, '-'); in blk_close()
313 if (roff_getreg(man->roff, "an-margin") == 0) in blk_exp()
314 roff_setreg(man->roff, "an-margin", in blk_exp()
317 roff_setreg(man->roff, "an-margin", in blk_exp()
468 *v = roff_getarg(man->roff, v, line, pos); in man_args()
H A DMakefile11 SRCS+= roff.c roff_escape.c roff_validate.c
55 LIBROFF_OBJS = roff.o roff_escape.o roff_validate.o eqn.o \
66 mansearch.h man.h mdoc.h roff.h
H A Dmdoc_state.c238 roff_setreg(mdoc->roff, "nS", 1, '='); in state_sh()
241 roff_setreg(mdoc->roff, "nS", 0, '='); in state_sh()
/openbsd-src/regress/usr.bin/mandoc/roff/args/
H A Droff.out_lint1 mandoc: roff.in:31:15: STYLE: whitespace at end of input line
2 mandoc: roff.in:33:16: STYLE: whitespace at end of input line
3 mandoc: roff.in:35:17: STYLE: whitespace at end of input line
4 mandoc: roff.in:55:27: STYLE: whitespace at end of input line
5 mandoc: roff.in:57:28: STYLE: whitespace at end of input line
6 mandoc: roff.in:59:29: STYLE: whitespace at end of input line
7 mandoc: roff.in:63:7: STYLE: unterminated quoted argument
8 mandoc: roff.in:64:11: STYLE: unterminated quoted argument
9 mandoc: roff.in:66:7: STYLE: unterminated quoted argument
10 mandoc: roff.in:66:12: STYLE: whitespace at end of input line
[all …]
H A DMakefile3 REGRESS_TARGETS = roff man mdoc esc infrec
4 LINT_TARGETS = roff man mdoc infrec
H A Droff.out_ascii4 args-roff - arguments to roff macros
/openbsd-src/gnu/usr.sbin/mkhybrid/src/libhfs_iso/
H A Dnode.c30 (HFS_BLOCKSZ - (n).roff[(n).nd.ndNRecs] - 2 * ((n).nd.ndNRecs + 1))
49 np->roff[0] = 0x00e; in n_init()
122 reclen = np->roff[i + 1] - np->roff[i]; in n_compact()
126 np->roff[nrecs++] = offset; in n_compact()
139 np->roff[nrecs] = offset; in n_compact()
228 && left->roff[mid] + *reclen + 2 > HFS_BLOCKSZ - 2 * (mid + 1)) in n_split()
238 …&& right.roff[nrecs] - right.roff[mid] + left->roff[0] + *reclen + 2 > HFS_BLOCKSZ - 2 * (mid + 1)) in n_split()
338 np->roff[i] = np->roff[i - 1] + reclen; in n_insertx()
376 right->roff[right->nd.ndNRecs] - right->roff[0]); in n_merge()
378 offset = left->roff[left->nd.ndNRecs] - right->roff[0]; in n_merge()
[all …]
H A Dbtree.c79 d_fetchw(&ptr, (short *) &np->roff[i]); in bt_getnode()
128 d_storew(&ptr, np->roff[i]); in bt_putnode()
155 bt->hdrnd.roff[0] != 0x00e || in bt_readhdr()
156 bt->hdrnd.roff[1] != 0x078 || in bt_readhdr()
157 bt->hdrnd.roff[2] != 0x0f8 || in bt_readhdr()
158 bt->hdrnd.roff[3] != 0x1f8) in bt_readhdr()
220 n.roff[0] != 0x00e || in bt_readhdr()
221 n.roff[1] != 0x1fa) in bt_readhdr()
308 n.roff[0] != 0x00e || in bt_writehdr()
309 n.roff[1] != 0x1fa) in bt_writehdr()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/podlators/lib/Pod/
H A DMan.pm1 # Convert POD data to formatted *roff input.
3 # This module translates POD documentation into *roff markup using the man
60 # those settings that they are overriding. Data indicates =for roff blocks,
113 # used with roff output. It assumes that the standard preamble has already
115 # want to do something better than this when *roff actually supports other
162 return $encoding ne 'roff' && $encoding ne 'groff';
186 $self->accept_targets (qw/man MAN roff ROFF/);
203 # Degrade to the old roff encoding if Encode is not available.
284 # used to map our internal font escapes to actual *roff sequences later.
293 croak(qq(roff fon
[all...]
/openbsd-src/sys/netinet/
H A Dip_ipcomp.c140 int hlen, error, clen, roff; in ipcomp_input() local
226 m1 = m_getptr(m, skip, &roff); in ipcomp_input()
240 if (roff == 0) { in ipcomp_input()
249 } else if (roff + hlen >= m1->m_len) { in ipcomp_input()
252 if (roff + hlen > m1->m_len) { in ipcomp_input()
253 adjlen = roff + hlen - m1->m_len; in ipcomp_input()
269 adjlen = m1->m_len - roff; in ipcomp_input()
281 memmove(mtod(m1, u_char *) + roff, in ipcomp_input()
282 mtod(m1, u_char *) + roff + hlen, in ipcomp_input()
283 m1->m_len - (roff + hlen)); in ipcomp_input()
[all …]
H A Dip_esp.c348 int plen, alen, hlen, error, roff; in esp_input() local
580 m1 = m_getptr(m, skip, &roff); in esp_input()
590 if (roff == 0) { in esp_input()
599 } else if (roff + hlen >= m1->m_len) { in esp_input()
607 if (roff + hlen > m1->m_len) { in esp_input()
608 adjlen = roff + hlen - m1->m_len; in esp_input()
622 adjlen = m1->m_len - roff; in esp_input()
639 memmove(mtod(m1, u_char *) + roff, in esp_input()
640 mtod(m1, u_char *) + roff + hlen, in esp_input()
641 m1->m_len - (roff + hlen)); in esp_input()
[all …]
H A Dip_ah.c536 int roff; in ah_input() local
767 m1 = m_getptr(m, skip, &roff); in ah_input()
777 if (roff == 0) { in ah_input()
790 if (roff + rplen + ahx->authsize >= m1->m_len) { in ah_input()
800 if (roff + rplen + ahx->authsize > m1->m_len) { in ah_input()
801 adjlen = roff + rplen + ahx->authsize - in ah_input()
821 adjlen = m1->m_len - roff; in ah_input()
838 bcopy(mtod(m1, u_char *) + roff + rplen + in ah_input()
839 ahx->authsize, mtod(m1, u_char *) + roff, in ah_input()
840 m1->m_len - (roff + rplen + ahx->authsize)); in ah_input()
[all …]
/openbsd-src/usr.bin/ctfconv/
H A Delf.c272 size_t nsymb, rsym, rtyp, roff; in elf_reloc_apply() local
310 roff = rela[j].r_offset; in elf_reloc_apply()
313 if (roff >= filesize) in elf_reloc_apply()
319 if (rsize == -1 || roff + rsize >= ssz) in elf_reloc_apply()
322 ELF_WRITE_RELOC(sdata + roff, value, rsize); in elf_reloc_apply()
330 roff = rel[j].r_offset; in elf_reloc_apply()
333 if (roff >= filesize) in elf_reloc_apply()
339 if (rsize == -1 || roff + rsize >= ssz) in elf_reloc_apply()
342 ELF_WRITE_RELOC(sdata + roff, value, rsize); in elf_reloc_apply()
/openbsd-src/usr.bin/vi/docs/USD.doc/vi.ref/
H A DMakefile5 SRCS= vi.ref ex.cmd.roff set.opt.roff vi.cmd.roff ref.so
H A Dspell.ok161 ex.cmd.roff
280 roff
290 set.opt.roff
361 vi.cmd.roff
/openbsd-src/gnu/usr.bin/binutils-2.17/bfd/
H A Delf32-i386.c2755 bfd_vma roff; in elf_i386_relocate_section() local
2767 roff = rel->r_offset + 5; in elf_i386_relocate_section()
2797 roff = rel->r_offset + 6; in elf_i386_relocate_section()
2810 contents + roff); in elf_i386_relocate_section()
2826 bfd_vma roff; in elf_i386_relocate_section() local
2831 roff = rel->r_offset; in elf_i386_relocate_section()
2832 BFD_ASSERT (roff >= 2); in elf_i386_relocate_section()
2833 type = bfd_get_8 (input_bfd, contents + roff - 2); in elf_i386_relocate_section()
2835 val = bfd_get_8 (input_bfd, contents + roff - 1); in elf_i386_relocate_section()
2837 BFD_ASSERT (roff + 4 <= input_section->size); in elf_i386_relocate_section()
[all …]
H A Delf64-x86-64.c2573 bfd_vma roff; in elf64_x86_64_relocate_section() local
2578 roff = rel->r_offset; in elf64_x86_64_relocate_section()
2579 BFD_ASSERT (roff >= 3); in elf64_x86_64_relocate_section()
2580 type = bfd_get_8 (input_bfd, contents + roff - 3); in elf64_x86_64_relocate_section()
2582 type2 = bfd_get_8 (input_bfd, contents + roff - 2); in elf64_x86_64_relocate_section()
2584 val = bfd_get_8 (input_bfd, contents + roff - 1); in elf64_x86_64_relocate_section()
2586 BFD_ASSERT (roff + 4 <= input_section->size); in elf64_x86_64_relocate_section()
2590 contents + roff - 3); in elf64_x86_64_relocate_section()
2591 bfd_put_8 (output_bfd, 0xc7, contents + roff - 2); in elf64_x86_64_relocate_section()
2593 contents + roff - 1); in elf64_x86_64_relocate_section()
[all …]
/openbsd-src/gnu/usr.bin/perl/cpan/podlators/t/data/snippets/man/
H A Diso-8859-1-roff2 ISO-8859-1 encoding with *roff output
5 encoding roff
H A Deth5 encoding roff
/openbsd-src/sys/ntfs/
H A Dntfs_subr.c1345 struct ntvattr *vap, off_t roff, size_t rsize, void *rdata, size_t *initp, in ntfs_readntvattr_plain()
1362 off = roff; in ntfs_readntvattr_plain()
1459 error = uiomove(vap->va_datap + roff, rsize, uio); in ntfs_readntvattr_plain()
1461 memcpy(rdata, vap->va_datap + roff, rsize); in ntfs_readntvattr_plain()
1473 u_int32_t attrnum, char *attrname, off_t roff, size_t rsize, void *rdata, in ntfs_readattr_plain()
1478 off_t off = roff; in ntfs_readattr_plain()
1519 char *attrname, off_t roff, size_t rsize, void *rdata, struct uio *uio) in ntfs_readattr()
1526 ip->i_number, attrnum, roff, rsize); in ntfs_readattr()
1532 if ((roff > vap->va_datalen) || in ntfs_readattr()
1533 (roff in ntfs_readattr()
1344 ntfs_readntvattr_plain(struct ntfsmount * ntmp,struct ntnode * ip,struct ntvattr * vap,off_t roff,size_t rsize,void * rdata,size_t * initp,struct uio * uio) ntfs_readntvattr_plain() argument
1472 ntfs_readattr_plain(struct ntfsmount * ntmp,struct ntnode * ip,u_int32_t attrnum,char * attrname,off_t roff,size_t rsize,void * rdata,size_t * initp,struct uio * uio) ntfs_readattr_plain() argument
1518 ntfs_readattr(struct ntfsmount * ntmp,struct ntnode * ip,u_int32_t attrnum,char * attrname,off_t roff,size_t rsize,void * rdata,struct uio * uio) ntfs_readattr() argument
[all...]
/openbsd-src/regress/usr.bin/mandoc/
H A DMakefile3 SUBDIR += roff char mdoc man tbl eqn db

1234