/openbsd/sys/arch/armv7/stand/efiboot/ |
H A D | efidev.c | 65 dip->ed.blkio = blkio; in efid_init() 84 blks = EFI_BLKSPERSEC(ed); in efid_io() 101 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io() 109 if (ed->blkio->Media->ReadOnly) in efid_io() 112 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io() 119 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io() 293 if (EFI_BLKSPERSEC(ed) > 8) { in findopenbsd_gpt() 300 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), EFI_BLKSPERSEC(ed), in findopenbsd_gpt() 343 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), in findopenbsd_gpt() 344 EFI_BLKSPERSEC(ed), buf); in findopenbsd_gpt() [all …]
|
/openbsd/sys/arch/riscv64/stand/efiboot/ |
H A D | efidev.c | 65 dip->ed.blkio = blkio; in efid_init() 84 blks = EFI_BLKSPERSEC(ed); in efid_io() 101 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io() 109 if (ed->blkio->Media->ReadOnly) in efid_io() 112 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io() 119 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io() 293 if (EFI_BLKSPERSEC(ed) > 8) { in findopenbsd_gpt() 300 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), EFI_BLKSPERSEC(ed), in findopenbsd_gpt() 343 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), in findopenbsd_gpt() 344 EFI_BLKSPERSEC(ed), buf); in findopenbsd_gpt() [all …]
|
/openbsd/regress/usr.bin/mandoc/char/bar/ |
H A D | mdoc.out_ascii | 10 --iissoollaatteedd | --eemm||bbeeddddeedd | --ffoorrmmaatttteedd 11 iissoollaatteedd | eemm||bbeeddddeedd | ffoorrmmaatttteedd 18 …--iissoollaatteedd --|| --eemm||bbeeddddeedd --| --ffoorrmmaattttee… 19 …iissoollaatteedd || eemm||bbeeddddeedd | ffoorrmmaatttteedd || bbool… 23 pprreeddeeffiinneedd ssttrriinngg 26 --iissoollaatteedd | --eemm|bbeeddddeedd 27 iissoollaatteedd | eemm|bbeeddddeedd
|
/openbsd/regress/bin/ed/ |
H A D | README | 11 .t Template - a list of ed commands from which an ed script is 13 .d Data - read by an ed script 14 .r Result - the expected output after processing data via an ed 16 .err Error - invalid ed commands that should generate an error 21 *** The script u.ed exited abnormally *** 23 *** Output u.o of script u.ed is incorrect *** 29 a1-err.ed 30 eq-err.ed 31 i1-err.ed 32 k1-err.ed [all …]
|
H A D | Makefile | 3 ED ?= /bin/ed 8 CLEANFILES = *.t *.d *.ed *.err *.red *.o *.z 21 $t.ed: ${TESTDIR}/$t.t ${TESTDIR}/$t.d Makefile 33 mv $t.tmp $t.ed 34 chmod +x $t.ed 36 REGRESS_TARGETS += run-$t.ed 38 run-$t.ed: $t.ed 39 ./$t.ed
|
H A D | TODO | 10 3) ed "" - error: invalid filename 14 6) ed -x - verify: 8-bit clean 15 7) ed - verify: long-line support 16 8) ed - verify: interactive/help mode
|
/openbsd/sys/arch/amd64/stand/efiboot/ |
H A D | efidev.c | 94 blks = EFI_BLKSPERSEC(ed); in efid_io() 111 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io() 122 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io() 129 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io() 303 if (EFI_BLKSPERSEC(ed) > 8) { in findopenbsd_gpt() 310 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), EFI_BLKSPERSEC(ed), in findopenbsd_gpt() 353 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), in findopenbsd_gpt() 354 EFI_BLKSPERSEC(ed), buf); in findopenbsd_gpt() 444 error = efid_io(F_READ, ed, EFI_SECTOBLK(ed, start) + DOS_LABELSECTOR, in efi_getdisklabel() 738 efi_diskinfo_t ed; in efi_dump_diskinfo() local [all …]
|
/openbsd/sys/arch/arm64/stand/efiboot/ |
H A D | efidev.c | 65 dip->ed.blkio = blkio; in efid_init() 84 blks = EFI_BLKSPERSEC(ed); in efid_io() 101 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, start, in efid_io() 109 if (ed->blkio->Media->ReadOnly) in efid_io() 112 status = ed->blkio->ReadBlocks(ed->blkio, ed->mediaid, in efid_io() 119 status = ed->blkio->WriteBlocks(ed->blkio, ed->mediaid, start, in efid_io() 293 if (EFI_BLKSPERSEC(ed) > 8) { in findopenbsd_gpt() 300 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), EFI_BLKSPERSEC(ed), in findopenbsd_gpt() 343 status = efid_io(F_READ, ed, EFI_SECTOBLK(ed, lba), in findopenbsd_gpt() 344 EFI_BLKSPERSEC(ed), buf); in findopenbsd_gpt() [all …]
|
/openbsd/usr.sbin/amd/rpcx/ |
H A D | Makefile | 21 amq_svc.c: amq.x $*.ed 23 ed -s $@.tmp <$*.ed 26 nfs_prot_svc.c: nfs_prot.x $*.ed 28 ed -s $@.tmp <$*.ed 31 nfs_prot.x: ${NFSX} $*.ed 33 ed -s $@.tmp <$*.ed
|
/openbsd/regress/usr.bin/mandoc/mdoc/Fd/ |
H A D | arg.out_ascii | 7 ##uunnqquuootteedd uunneessccaappeedd 9 ##qquuootteedd uunneessccaappeedd 11 ##uunnqquuootteedd eessccaappeedd 13 ##qquuootteedd eessccaappeedd
|
/openbsd/sys/dev/usb/ |
H A D | ucrcom.c | 82 usb_endpoint_descriptor_t *ed; in ucrcom_attach() local 90 ed = usbd_interface2endpoint_descriptor(uaa->iface, i); in ucrcom_attach() 91 if (ed == NULL) { in ucrcom_attach() 98 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ucrcom_attach() 99 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in ucrcom_attach() 100 uca.bulkin = ed->bEndpointAddress; in ucrcom_attach() 101 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in ucrcom_attach() 102 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in ucrcom_attach() 103 uca.bulkout = ed->bEndpointAddress; in ucrcom_attach()
|
H A D | uscom.c | 88 usb_endpoint_descriptor_t *ed; in uscom_attach() local 109 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uscom_attach() 110 if (ed == NULL) { in uscom_attach() 117 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uscom_attach() 118 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uscom_attach() 119 uca.bulkin = ed->bEndpointAddress; in uscom_attach() 120 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uscom_attach() 121 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uscom_attach() 122 uca.bulkout = ed->bEndpointAddress; in uscom_attach()
|
H A D | uxrcom.c | 129 usb_endpoint_descriptor_t *ed; in uxrcom_attach() local 141 if (ed == NULL) { in uxrcom_attach() 148 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uxrcom_attach() 149 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) in uxrcom_attach() 150 sc->sc_intr_number = ed->bEndpointAddress; in uxrcom_attach() 166 if (ed == NULL) { in uxrcom_attach() 173 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uxrcom_attach() 174 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uxrcom_attach() 175 uca.bulkin = ed->bEndpointAddress; in uxrcom_attach() 177 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uxrcom_attach() [all …]
|
H A D | uark.c | 119 usb_endpoint_descriptor_t *ed; in uark_attach() local 140 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in uark_attach() 141 if (ed == NULL) { in uark_attach() 148 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uark_attach() 149 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uark_attach() 150 uca.bulkin = ed->bEndpointAddress; in uark_attach() 151 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uark_attach() 152 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in uark_attach() 153 uca.bulkout = ed->bEndpointAddress; in uark_attach()
|
H A D | ubsa.c | 237 usb_endpoint_descriptor_t *ed; in ubsa_attach() local 295 if (ed == NULL) { in ubsa_attach() 302 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in ubsa_attach() 304 sc->sc_intr_number = ed->bEndpointAddress; in ubsa_attach() 305 sc->sc_isize = UGETW(ed->wMaxPacketSize); in ubsa_attach() 307 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in ubsa_attach() 308 uca.bulkin = ed->bEndpointAddress; in ubsa_attach() 309 uca.ibufsize = UGETW(ed->wMaxPacketSize); in ubsa_attach() 311 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in ubsa_attach() 312 uca.bulkout = ed->bEndpointAddress; in ubsa_attach() [all …]
|
H A D | umct.c | 169 usb_endpoint_descriptor_t *ed; in umct_attach() local 213 if (ed == NULL) { in umct_attach() 225 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in umct_attach() 226 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT && in umct_attach() 227 UGETW(ed->wMaxPacketSize) != 0x2) { in umct_attach() 228 uca.bulkin = ed->bEndpointAddress; in umct_attach() 230 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in umct_attach() 231 uca.bulkout = ed->bEndpointAddress; in umct_attach() 233 UE_GET_XFERTYPE(ed->bmAttributes) == UE_INTERRUPT) { in umct_attach() 234 sc->sc_intr_number = ed->bEndpointAddress; in umct_attach() [all …]
|
H A D | uipaq.c | 157 usb_endpoint_descriptor_t *ed; in uipaq_attach() local 199 ed = usbd_interface2endpoint_descriptor(iface, i); in uipaq_attach() 200 if (ed == NULL) { in uipaq_attach() 205 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in uipaq_attach() 206 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uipaq_attach() 207 uca.bulkin = ed->bEndpointAddress; in uipaq_attach() 208 } else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in uipaq_attach() 209 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uipaq_attach() 210 uca.bulkout = ed->bEndpointAddress; in uipaq_attach()
|
H A D | uticom.c | 217 usb_endpoint_descriptor_t *ed; in uticom_attach_hook() local 273 if (ed == NULL) { in uticom_attach_hook() 281 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) { in uticom_attach_hook() 282 uca.bulkout = ed->bEndpointAddress; in uticom_attach_hook() 284 sc->sc_dev.dv_xname, ed->bEndpointAddress)); in uticom_attach_hook() 352 if (ed == NULL) { in uticom_attach_hook() 361 sc->sc_intr_number = ed->bEndpointAddress; in uticom_attach_hook() 362 sc->sc_isize = UGETW(ed->wMaxPacketSize); in uticom_attach_hook() 382 if (ed == NULL) { in uticom_attach_hook() 391 uca.bulkin = ed->bEndpointAddress; in uticom_attach_hook() [all …]
|
H A D | umsm.c | 377 usb_endpoint_descriptor_t *ed; in umsm_attach() local 420 if (ed == NULL) { in umsm_attach() 429 sc->sc_intr_number = ed->bEndpointAddress; in umsm_attach() 430 sc->sc_isize = UGETW(ed->wMaxPacketSize); in umsm_attach() 434 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in umsm_attach() 435 uca.bulkin = ed->bEndpointAddress; in umsm_attach() 437 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in umsm_attach() 438 uca.bulkout = ed->bEndpointAddress; in umsm_attach() 688 usb_endpoint_descriptor_t *ed; in umsm_umass_changemode() local 777 if (ed == NULL) { in umsm_umass_changemode() [all …]
|
H A D | moscom.c | 192 usb_endpoint_descriptor_t *ed; in moscom_attach() local 213 ed = usbd_interface2endpoint_descriptor(sc->sc_iface, i); in moscom_attach() 214 if (ed == NULL) { in moscom_attach() 221 if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_IN && in moscom_attach() 222 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in moscom_attach() 223 uca.bulkin = ed->bEndpointAddress; in moscom_attach() 224 else if (UE_GET_DIR(ed->bEndpointAddress) == UE_DIR_OUT && in moscom_attach() 225 UE_GET_XFERTYPE(ed->bmAttributes) == UE_BULK) in moscom_attach() 226 uca.bulkout = ed->bEndpointAddress; in moscom_attach()
|
/openbsd/usr.bin/sdiff/ |
H A D | edit.c | 35 char *argp[] = {"sh", "-c", NULL, NULL}, *ed, *p; in editit() local 40 ed = getenv("VISUAL"); in editit() 41 if (ed == NULL || ed[0] == '\0') in editit() 42 ed = getenv("EDITOR"); in editit() 43 if (ed == NULL || ed[0] == '\0') in editit() 44 ed = _PATH_VI; in editit() 45 if (asprintf(&p, "%s %s", ed, pathname) == -1) in editit()
|
/openbsd/usr.bin/mail/ |
H A D | edit.c | 242 editit(const char *ed, const char *pathname) in editit() argument 249 if (ed == NULL) in editit() 250 ed = getenv("VISUAL"); in editit() 251 if (ed == NULL || ed[0] == '\0') in editit() 252 ed = getenv("EDITOR"); in editit() 253 if (ed == NULL || ed[0] == '\0') in editit() 254 ed = _PATH_VI; in editit() 255 if (asprintf(&p, "%s %s", ed, pathname) == -1) in editit()
|
/openbsd/sys/dev/pci/ |
H A D | eso.c | 1427 error = bus_dmamem_map(ed->ed_dmat, ed->ed_segs, ed->ed_nsegs, in eso_allocmem() 1437 error = bus_dmamap_load(ed->ed_dmat, ed->ed_map, ed->ed_addr, in eso_allocmem() 1448 bus_dmamem_unmap(ed->ed_dmat, ed->ed_addr, ed->ed_size); in eso_allocmem() 1450 bus_dmamem_free(ed->ed_dmat, ed->ed_segs, ed->ed_nsegs); in eso_allocmem() 1460 bus_dmamem_unmap(ed->ed_dmat, ed->ed_addr, ed->ed_size); in eso_freemem() 1461 bus_dmamem_free(ed->ed_dmat, ed->ed_segs, ed->ed_nsegs); in eso_freemem() 1510 free(ed, type, sizeof(*ed)); in eso_allocm() 1574 for (ed = sc->sc_dmas; ed != NULL && KVADDR(ed) != start; in eso_trigger_output() 1575 ed = ed->ed_next) in eso_trigger_output() 1657 for (ed = sc->sc_dmas; ed != NULL && KVADDR(ed) != start; in eso_trigger_input() [all …]
|
/openbsd/bin/ed/ |
H A D | POSIX | 4 This version of ed(1) is not strictly POSIX compliant, as described in 42 processing is performed by ed. 46 1) Though ed is not a stream editor, it can be used to edit binary files. 52 For example, to create a file with ed containing a single NUL character: 53 $ ed file 61 $ ed file 66 not specified by POSIX, it follows the behavior of the SunOS ed: 75 would otherwise cause a script to fail. For instance, an ed script 78 ed - file <<EOF 88 4) If ed is invoked with a name argument prefixed by a bang (!), then the [all …]
|
/openbsd/usr.bin/tmux/ |
H A D | window-buffer.c | 440 free(ed->name); in window_buffer_finish_edit() 441 free(ed); in window_buffer_finish_edit() 456 window_buffer_finish_edit(ed); in window_buffer_edit_close_cb() 460 pb = paste_get_name(ed->name); in window_buffer_edit_close_cb() 461 if (pb == NULL || pb != ed->pb) { in window_buffer_edit_close_cb() 462 window_buffer_finish_edit(ed); in window_buffer_edit_close_cb() 484 window_buffer_finish_edit(ed); in window_buffer_edit_close_cb() 500 ed = xcalloc(1, sizeof *ed); in window_buffer_start_edit() 501 ed->wp_id = data->wp->id; in window_buffer_start_edit() 503 ed->pb = pb; in window_buffer_start_edit() [all …]
|