aboutsummaryrefslogtreecommitdiff
path: root/libgloss/m68k/atari/atari-mkdir.c
blob: fdff26b4c3a2f06fecce414bdb6a4d7d583816ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
	Copyright (C) 2025 Mikael Hildenborg
	SPDX-License-Identifier: BSD-2-Clause
*/

#include <unistd.h>
#include <_ansi.h>
#include "atari-gem_errno.h"
#include "atari-traps.h"

int mkdir(const char *pathname, mode_t mode)
{
	// Ignore mode, it is not supported by the st.
	int result = trap1_39(pathname);
	if (result < 0)
	{
		gem_error_to_errno(result);
		return -1;
	}
	return 0;
}