Permalink
Switch branches/tags
Nothing to show
Commits on Nov 7, 2018
  1. unix: add IoctlGetPtmget on netbsd

    tklauser committed Nov 7, 2018
    This ioctl is used to implement ptsname on netbsd.
    
    Change-Id: Ic87f1bf7d15c6fbef0c2226a06a4983a504c3f30
    Reviewed-on: https://go-review.googlesource.com/c/148097
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Nov 6, 2018
  1. unix: test UtimesNanoAt on darwin

    tklauser committed Nov 6, 2018
    Change-Id: I18354d29db909227ae75df1c8b1ab7888375f8db
    Reviewed-on: https://go-review.googlesource.com/c/147740
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  2. unix: don't use deprecated sys/capability.h header on FreeBSD

    tklauser committed Nov 6, 2018
    sys/capability.h is deprecated, use sys/capsicum.h instead.
    
    Change-Id: I05a3b8ff28d4df6536a3f10e0da7381b48329738
    Reviewed-on: https://go-review.googlesource.com/c/147737
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 31, 2018
  1. unix: avoid index out of range in *setxattr on BSD

    tklauser committed Oct 31, 2018
    Passing an empty data []byte to Fsetxattr/Setxattr/Lsetxattr leads
    to an index out of range panic. Fix this by passing an nil
    unsafe.Pointer to the underlying syscall in this case.
    
    Change-Id: I5ef3983c6304c5317ed5b49afc4ed19791864dbb
    Reviewed-on: https://go-review.googlesource.com/c/146198
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 30, 2018
  1. unix: add remaining *at functions on dragonfly

    tklauser committed Oct 30, 2018
    Add Faccessat, Fchownat, Linkat, Mkdirat, Mknodat, Symlinkat and
    Unlinkat.
    
    Change-Id: I9a2758ea2ca31aa59c57ead01838c08cbab2bbe1
    Reviewed-on: https://go-review.googlesource.com/c/145819
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  2. unix: add remaining *at functions on netbsd

    tklauser committed Oct 30, 2018
    Add Fchownat, Linkat, Mkdirat, Mkfifoat, Mknodat, Openat, Readlinkat,
    Renameat, Symlinkat and Unlinkat.
    
    Change-Id: Id498b2f1a99f281599bc226a0c50a13172e36e4f
    Reviewed-on: https://go-review.googlesource.com/c/145818
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  3. unix: add remaining *at functions on openbsd

    tklauser committed Oct 30, 2018
    Add Fchownat, Linkat, Mkdirat, Mkfifoat, Mknodat, Renameat, Symlinkat
    and Unlinkat.
    
    Change-Id: I023214f3b65e3b7d620fa7e1ce12f1c35a765cd9
    Reviewed-on: https://go-review.googlesource.com/c/145817
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 29, 2018
  1. unix: add Readlinkat on openbsd

    tklauser committed Oct 29, 2018
    Change-Id: I1069c327a5ce01ca2bfa37a889d3c6fd72b7859d
    Reviewed-on: https://go-review.googlesource.com/c/145517
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Oct 26, 2018
  1. unix: add Openat on dragonfly

    tklauser committed Oct 26, 2018
    Change-Id: I1bf134301e5e81e6d6524bf63532975166694db6
    Reviewed-on: https://go-review.googlesource.com/c/144978
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  2. unix: add Openat on netbsd

    tklauser committed Oct 26, 2018
    Change-Id: Ie37958307e8bf6d5fd47caa7ab5b1c209d0cca00
    Reviewed-on: https://go-review.googlesource.com/c/144977
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  3. unix: add kernel module load/unload syscalls on Linux

    tklauser committed Oct 25, 2018
    InitModule loads a kernel module from an ELF image. FinitModule loads a
    kernel module from a file descriptor. DeleteModule unloads a kernel
    module.
    
    These syscalls require the CAP_SYS_MODULE capability.
    
    See http://man7.org/linux/man-pages/man2/init_module.2.html and
    http://man7.org/linux/man-pages/man2/delete_module.2.html for details.
    
    Also drop deprecated syscalls related to kernel modules from the list
    of unimplemented syscalls.
    
    Change-Id: I131e17f02c5617640f5f4073982d2b27a6d78bbf
    Reviewed-on: https://go-review.googlesource.com/c/144173
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Oct 24, 2018
  1. unix: use ppoll to implement Pause on linux/{arm64,riscv64}

    tklauser committed Oct 24, 2018
    Use ppoll instead of re-implementing it using Syscall6(SYS_PPOLL, ...)
    
    Change-Id: I7b3baa00df32dc1fe7ee80755843a492a884938c
    Reviewed-on: https://go-review.googlesource.com/c/144171
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  2. unix: add Openat on openbsd

    tklauser committed Oct 24, 2018
    Change-Id: I0c9d97d7db72e74cfd5d7ba77c46726ec38b821b
    Reviewed-on: https://go-review.googlesource.com/c/144172
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 23, 2018
  1. unix: add Ppoll on openbsd

    tklauser committed Oct 23, 2018
    Change-Id: I3a13730e219e6f6df28829cf0d1e193c62073ac8
    Reviewed-on: https://go-review.googlesource.com/c/144057
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 22, 2018
  1. unix: update Dockerfile to Linux 4.19

    tklauser committed Oct 22, 2018
    Change-Id: I58c2cfb11ddd5ce731a880c0c63790092052f130
    Reviewed-on: https://go-review.googlesource.com/c/143697
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Oct 19, 2018
  1. unix: add SOF_TIMESTAMPING_* flags on Linux

    tklauser committed Oct 19, 2018
    Add the SOF_TIMESTAMPING_* flags used to request different types of
    timestamping operations. In
    
      err := unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_TIMESTAMPING, val)
    
    val is a mask of SOF_TIMESTAMPING_* values.
    
    See https://www.kernel.org/doc/Documentation/networking/timestamping.txt
    for more information.
    
    Fixes golang/go#28173
    
    Change-Id: I26e964d607606f2b3cb24f66f071d11765b9696e
    Reviewed-on: https://go-review.googlesource.com/c/143337
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 11, 2018
  1. unix: add marker comments to zsyscall_solaris_amd64.go

    tklauser committed Oct 11, 2018
    These marker comments are in every other zsyscall_*.go file generated by
    mksyscall.pl and mksyscall_aix.pl. Also add them to the file generated
    by mksyscall_solaris.pl.
    
    Change-Id: Ic0ad5f28dd0a0934aa768f58ccc390b613a36abb
    Reviewed-on: https://go-review.googlesource.com/c/141557
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Oct 5, 2018
  1. unix: convert errorList and signalList to new format for linux/sparc64

    tklauser committed Oct 5, 2018
    This wasn't converted during CL 110875
    
    Updates golang/go#25134
    
    Change-Id: Iaa579e0c173d3e27cf9f7e20072752277089beb1
    Reviewed-on: https://go-review.googlesource.com/c/139977
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  2. unix: add KexecFileLoad on linux/{amd64,ppc64x,s390x}

    tklauser committed Oct 5, 2018
    Add a wrapper for the kexec_file_load syscall on the architectures that
    implement it (amd64, ppc64x, s390x). See
    http://man7.org/linux/man-pages/man2/kexec_file_load.2.html
    
    Change-Id: Ie29f871902176610a6ba7ed0a7bcc95c10eb172b
    Reviewed-on: https://go-review.googlesource.com/c/140037
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Oct 4, 2018
  1. unix: export sizeof consts

    tklauser committed Oct 4, 2018
    Export the sizeof(Ptr|Short|Int|Long|LongLong) consts. This allows users
    to get this information (e.g. for alignment purposes) without using cgo
    or generating these constants themselves.
    
    Change-Id: I8640482bf67b89c2f2b6e9a116ba7bc268f8135a
    Reviewed-on: https://go-review.googlesource.com/c/139617
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Oct 3, 2018
  1. unix: use correctly aligned result buffer in SysctlClockinfo

    tklauser committed Oct 3, 2018
    It's not guaranteed that the []byte buffer will be aligned as
    required for Clockinfo. Use a Clockinfo var for the sysctl call
    instead.
    
    This came up during the review for SysctlUvmexp on OpenBSD in CL
    139278. Thanks to Ian Lance Taylor for pointing this out.
    
    Change-Id: Idc7a624922da7249c6e7d5ce0236a431b58ebe5f
    Reviewed-on: https://go-review.googlesource.com/c/139279
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  2. unix: add SysctlUvmexp on OpenBSD

    tklauser committed Oct 3, 2018
    OpenBSD uses sysctl with struct uvmexp to get information from the
    virtual memory system of the kernel. Add type Uvmexp and the
    SysctlUvmexp function to query this information.
    
    This will be used in github.com/tklauser/go-sysconf to get
    _SC_AVPHYS_PAGES on OpenBSD.
    
    Change-Id: I96ded2d1be37e5307bab55e79b13234cc93d21e6
    Reviewed-on: https://go-review.googlesource.com/c/139278
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  3. unix: re-add vm.* sysctl strings on openbsd/amd64

    tklauser committed Oct 3, 2018
    These sysctl strings were lost in CL 114075 which updated openbsd/amd64
    to OpenBSD 6.3. Re-add them by adding uvm/uvmexp.h to mksysctl_openbsd.pl.
    The defines for the VM_* constants were moved to this header in
    OpenBSD 6.3.
    
    Change-Id: If4291380d6d8235485d91c4442076dd03485bc2c
    Reviewed-on: https://go-review.googlesource.com/c/139277
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Sep 27, 2018
  1. unix: add ClockGetres on Linux

    tklauser committed Sep 27, 2018
    Change-Id: Id60c9310bad85e02ec81b04e7f304f058b680822
    Reviewed-on: https://go-review.googlesource.com/138116
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  2. unix: add SysctlClockinfo on NetBSD

    tklauser committed Sep 27, 2018
    NetBSD uses sysctl with struct clockinfo to get clock rate information
    from the kernel. Add type Clockinfo and the SysctlClockinfo function
    to query this information.
    
    This will be used in github.com/tklauser/go-sysconf to get _SC_CLK_TCK
    on NetBSD.
    
    Change-Id: I9e67d766f491ec3b460f26cb243b3595f0ba4d69
    Reviewed-on: https://go-review.googlesource.com/138035
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Sep 26, 2018
  1. unix: add additional rlimit resource constants on NetBSD

    tklauser committed Sep 26, 2018
    CL 45052 added them to mkerrors.sh but they weren't generated on NetBSD. Do so now.
    
    Change-Id: I314b0b7b203aba910a5733f9fbb63b1a0e6ccecf
    Reviewed-on: https://go-review.googlesource.com/137595
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Sep 25, 2018
  1. unix: add MNT_* flags on OpenBSD

    tklauser committed Sep 25, 2018
    Now that all BSDs define MNT_NOWAIT, use it in TestGetfsstat instead of
    the locally defined copy.
    
    Change-Id: Ib6cee08a6d3a034464c7b79591605b49889a46ae
    Reviewed-on: https://go-review.googlesource.com/137195
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Sep 24, 2018
  1. unix: add MNT_* flags on DragonflyBSD

    tklauser authored and bradfitz committed Sep 24, 2018
    Change-Id: I0326a7bfcf3cd794eb1158055a8ee98a396d3b47
    Reviewed-on: https://go-review.googlesource.com/136818
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
  2. unix: add MNT_* flags on NetBSD

    tklauser committed Sep 24, 2018
    Change-Id: Ifc720a583a830883908e83bfe0e2d74c2bfa013f
    Reviewed-on: https://go-review.googlesource.com/136817
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Sep 20, 2018
  1. unix: add more RTA_* constants on Linux

    tklauser committed Sep 20, 2018
    Now all non-deprecated RTA_* constants as of Linux v4.18 are present.
    
    Change-Id: Ib04e233015f381ceb7c7e06b3d808f3c7948f5b4
    Reviewed-on: https://go-review.googlesource.com/136456
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
Commits on Sep 19, 2018
  1. unix: change MemfdCreate flags parameter to int for all GOARCHes

    tklauser committed Sep 19, 2018
    For some reason I didn't completely re-generate the zsyscall_linux_*
    files for all GOARCHes during review of CL 135915. Do so now such that
    the flags parameter is of type int on all GOARCHes.
    
    Change-Id: Ifc4afacfbedb70f3818b23ed3ea468745bbdb455
    Reviewed-on: https://go-review.googlesource.com/136296
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Sep 18, 2018
  1. unix: add MemfdCreate on Linux

    tklauser committed Sep 18, 2018
    Add a wrapper for the memfd_create syscall on Linux. See
    http://man7.org/linux/man-pages/man2/memfd_create.2.html for more
    information.
    
    Also add the corresponding MFD_* constants to be used in the flags
    argument.
    
    Change-Id: Ib30a007e15575a38ecf204601ffede9c913799b6
    Reviewed-on: https://go-review.googlesource.com/135915
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Ian Lance Taylor <iant@golang.org>
Commits on Sep 6, 2018
  1. unix: add support for linux/riscv64

    tklauser committed Sep 6, 2018
    Add syscall wrappers, error constants and types for linux/riscv64
    
    Switch docker image to Ubuntu 18.10 in order to get qemu supporting
    riscv64. Also set the uname release string for qemu to 4.15 (the first
    Linux kernel version with riscv64 support), because otherwise running
    the generating C program in mkerrors.sh on a host with an older kernel
    would fail with a "FATAL: kernel too old".
    
    Note that linux/riscv64 is currently only usable using gccgo.
    
    Updates golang/go#27532
    
    Change-Id: Ic420f842342418443474cac72d38adff14d1b938
    Reviewed-on: https://go-review.googlesource.com/133735
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Commits on Sep 5, 2018
  1. unix: add SYNC_FILE_RANGE_* constants on Linux

    tklauser committed Sep 5, 2018
    These are usefule to specify SyncFileRange's flags argument.
    
    Change-Id: I1726c3adf55aaebac61beed09d39a48a8e040a93
    Reviewed-on: https://go-review.googlesource.com/133475
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  2. unix: correct argument order for SyncFileRange syscall on linux/ppc64…

    tklauser committed Sep 4, 2018
    …{,le}
    
    On linux/ppc64{,le} the SYS_SYNC_FILE_RANGE2 syscall is used to
    implement SyncFileRange. This syscall has a different argument order
    than SYS_SYNC_FILE_RANGE. Apart from that the implementations of both
    syscalls are the same, so use a simple wrapper to invoke the syscall
    with the correct argument order.
    
    For context see:
    https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=edd5cd4a9424f22b0fa08bef5e299d41befd5622
    
    Fixes golang/go#27485
    
    Change-Id: Idc154eab7b7c521a34de821e1d1a97095e96fed0
    Reviewed-on: https://go-review.googlesource.com/133215
    Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>