mailing list of musl libc
 help / color / mirror / code / Atom feed
e626228c0172ee1adcc2948a1978515777f57eb9 blob 477 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
 
#include <mqueue.h>
#include <fcntl.h>
#include <stdarg.h>
#include <errno.h>
#include "syscall.h"

mqd_t mq_open(const char *name, int flags, ...)
{
	mode_t mode = 0;
	struct mq_attr *attr = 0;
	if (name[0] != '/') return __syscall_ret(-EINVAL);
	if (*name == '/') name++;
	if (flags & O_CREAT) {
		va_list ap;
		va_start(ap, flags);
		mode = va_arg(ap, mode_t);
		attr = va_arg(ap, struct mq_attr *);
		va_end(ap);
	}
	return syscall(SYS_mq_open, name, flags, mode, attr);
}
debug log:

solving e626228 ...
found e626228 in https://inbox.vuxu.org/musl/1556443913-18270-1-git-send-email-h.huangqiang@huawei.com/
found aa91d58 in https://git.vuxu.org/mirror/musl/
preparing index
index prepared:
100644 aa91d589108fbd05757ba8c04afaa43e8711d743	src/mq/mq_open.c

applying [1/1] https://inbox.vuxu.org/musl/1556443913-18270-1-git-send-email-h.huangqiang@huawei.com/
diff --git a/src/mq/mq_open.c b/src/mq/mq_open.c
index aa91d58..e626228 100644

Checking patch src/mq/mq_open.c...
Applied patch src/mq/mq_open.c cleanly.

index at:
100644 e626228c0172ee1adcc2948a1978515777f57eb9	src/mq/mq_open.c

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

	https://git.vuxu.org/mirror/musl/

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).