patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob ba4ebd607716f371d05f5a14a41ff4c9b81b3ef6 364 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
// SPDX-License-Identifier: EUPL-1.2+
// SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>

#include "../net-util.h"

#include <assert.h>
#include <errno.h>
#include <net/if.h>
#include <string.h>

int main(void)
{
	char name[IFNAMSIZ];
	int fd;

	memset(name, 'a', sizeof name);
	fd = tap_open(name, 0);
	assert(fd == -1);
	assert(errno == ENAMETOOLONG);
}

debug log:

solving ba4ebd6 ...
found ba4ebd6 in https://spectrum-os.org/git/spectrum

Code repositories for project(s) associated with this public inbox

	https://spectrum-os.org/git/doc
	https://spectrum-os.org/git/mktuntap
	https://spectrum-os.org/git/spectrum
	https://spectrum-os.org/git/ucspi-vsock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).