Skip to content

Where to put writeVector #7

@andrewthad

Description

@andrewthad

The wrapper around writev (writeVector) is the second non-socket-specific function that has showed up in this library. It should live in a module that makes it clear that it can be used on not only sockets but also files. In this same module should live the wrappers around write, pwrite, read, and pread. Should lseek (which is specific to block devices and does not work on files) also live here or not? I'm not sure. I'm thinking of:

  • Posix
    • Socket (send, recv, etc.)
    • File (lseek, read, write, etc.)
    • Directory (getcwd, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions