Displaying 20 results from an estimated 22 matches for "message_len".
2017 Jun 04
2
trying to get a minimal windows program linked with lld
...StdHandle);
extern void ExitProcess(unsigned int exit_code);
extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int
nNumberOfBytesToWrite,
unsigned int *lpNumberOfBytesWritten, void *lpOverlapped);
static const char *message_ptr = "hello\n";
static const unsigned int message_len = 6;
__attribute__((stdcall)) int _start(void) {
void *hStdOut = GetStdHandle(-11);
WriteFile(hStdOut, message_ptr, message_len, 0, 0);
ExitProcess(0);
}
I use mingw-w64 like this:
gcc -c test.c
Create kernel32.def:
EXPORTS
ExitProcess
GetStdHandle
WriteFile
Use dlltool to crea...
2017 Jun 04
2
trying to get a minimal windows program linked with lld
...StdHandle);
extern void ExitProcess(unsigned int exit_code);
extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int nNumberOfBytesToWrite,
unsigned int *lpNumberOfBytesWritten, void *lpOverlapped);
static const char *message_ptr = "hello\n";
static const unsigned int message_len = 6;
__attribute__((stdcall)) int _start(void) {
void *hStdOut = GetStdHandle(-11);
WriteFile(hStdOut, message_ptr, message_len, 0, 0);
ExitProcess(0);
}
I use mingw-w64 like this:
gcc -c test.c
Create kernel32.def:
EXPORTS
ExitProcess
GetStdHandle
WriteFile
Use dlltool to crea...
2015 Oct 16
2
[PATCH v6 0/2] RFE: journal reader in guestfish
Output is configurable, it's the same format as virt-log has, since both
uses same code.
First patch moves get_journal_field around and renames it to journal_view
and the next one reimplements it a bit and brings it to guestfish.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command (RHBZ#988100)
.gnulib | 2 +-
2015 Feb 23
1
[PATCH] RFE: journal reader in guestfish
This implements new guestfish only command called journal-view.
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is not yet configurable, it's the same format as virt-log has.
Maros Zatko (1):
fish: add journal-view command
fish/Makefile.am
2015 Mar 05
0
[PATCH v3] fish: add journal-view command
...al_open (g, JOURNAL_DIR) == -1)
return -1;
- while ((r = guestfs_journal_next (g)) > 0) {
- CLEANUP_FREE_XATTR_LIST struct guestfs_xattr_list *xattrs = NULL;
- const char *priority_str, *identifier, *comm, *pid, *message;
- size_t priority_len, identifier_len, comm_len, pid_len, message_len;
- int priority = LOG_INFO;
- int64_t ts;
-
- /* The question is what fields to display. We should probably
- * make this configurable, but for now use the "short" format from
- * journalctl. (XXX)
- */
-
- xattrs = guestfs_journal_get (g);
- if (xattrs == NUL...
2015 Mar 03
2
[PATCH v2] RFE: journal reader in guestfish
This implements new guestfish only command called journal-view.
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is now configurable, it's the same format as virt-log has, since both
uses same code now.
Maros Zatko (1):
fish: add journal-view
2015 Mar 05
2
[PATCH v3] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is now configurable, it's the same format as virt-log has, since both
uses same code now.
Maros Zatko (1):
fish: add journal-view command
cat/Makefile.am | 1 +
cat/log.c | 113
2015 Aug 31
0
[PATCH v5 1/2] cat: move get_journal_field to fish/journal.c
...al_open (g, JOURNAL_DIR) == -1)
return -1;
- while ((r = guestfs_journal_next (g)) > 0) {
- CLEANUP_FREE_XATTR_LIST struct guestfs_xattr_list *xattrs = NULL;
- const char *priority_str, *identifier, *comm, *pid, *message;
- size_t priority_len, identifier_len, comm_len, pid_len, message_len;
- int priority = LOG_INFO;
- int64_t ts;
-
- /* The question is what fields to display. We should probably
- * make this configurable, but for now use the "short" format from
- * journalctl. (XXX)
- */
-
- xattrs = guestfs_journal_get (g);
- if (xattrs == NUL...
2015 Aug 27
0
[PATCH v4 1/2] cat: move get_journal_field to fish/journal.c
...al_open (g, JOURNAL_DIR) == -1)
return -1;
- while ((r = guestfs_journal_next (g)) > 0) {
- CLEANUP_FREE_XATTR_LIST struct guestfs_xattr_list *xattrs = NULL;
- const char *priority_str, *identifier, *comm, *pid, *message;
- size_t priority_len, identifier_len, comm_len, pid_len, message_len;
- int priority = LOG_INFO;
- int64_t ts;
-
- /* The question is what fields to display. We should probably
- * make this configurable, but for now use the "short" format from
- * journalctl. (XXX)
- */
-
- xattrs = guestfs_journal_get (g);
- if (xattrs == NUL...
2015 Aug 27
4
[PATCH v4 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is configurable, it's the same format as virt-log has, since both
uses same code.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command
cat/Makefile.am
2017 Sep 16
2
assertion triggered since update to llvm 5
...void @write(%"[]u8"* byval %bytes), !dbg !33
ret void, !dbg !35
}
; Function Attrs: cold nobuiltin noreturn nounwind
define linkonce coldcc void @__zig_panic(i8* nonnull readonly, i64) #1 !dbg
!36 {
Entry:
%2 = alloca %"[]u8", align 8
%message_ptr = alloca i8*, align 8
%message_len = alloca i64, align 8
store i8* %0, i8** %message_ptr, align 8
call void @llvm.dbg.declare(metadata i8** %message_ptr, metadata !41,
metadata !32), !dbg !44
store i64 %1, i64* %message_len, align 8
call void @llvm.dbg.declare(metadata i64* %message_len, metadata !42,
metadata !32), !dbg !45...
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...!dbg !23
%2 = fcmp fast oeq float %0, %1, !dbg !24
ret i1 %2, !dbg !25
}
; Function Attrs: cold nobuiltin noreturn nounwind
define linkonce coldcc void @__zig_panic(i8* nonnull readonly, i64) #3 !dbg
!26 {
Entry:
%2 = alloca %"[]u8", align 8
%message_ptr = alloca i8*, align 8
%message_len = alloca i64, align 8
store i8* %0, i8** %message_ptr
call void @llvm.dbg.declare(metadata i8** %message_ptr, metadata !34,
metadata !37), !dbg !38
store i64 %1, i64* %message_len
call void @llvm.dbg.declare(metadata i64* %message_len, metadata !35,
metadata !37), !dbg !39
%3 = load i64,...
2015 Mar 03
0
[PATCH v2] fish: add journal-view command
...al_open (g, JOURNAL_DIR) == -1)
return -1;
- while ((r = guestfs_journal_next (g)) > 0) {
- CLEANUP_FREE_XATTR_LIST struct guestfs_xattr_list *xattrs = NULL;
- const char *priority_str, *identifier, *comm, *pid, *message;
- size_t priority_len, identifier_len, comm_len, pid_len, message_len;
- int priority = LOG_INFO;
- int64_t ts;
-
- /* The question is what fields to display. We should probably
- * make this configurable, but for now use the "short" format from
- * journalctl. (XXX)
- */
-
- xattrs = guestfs_journal_get (g);
- if (xattrs == NUL...
2017 Sep 17
2
assertion triggered since update to llvm 5
...> }
>>
>> ; Function Attrs: cold nobuiltin noreturn nounwind
>> define linkonce coldcc void @__zig_panic(i8* nonnull readonly, i64) #1
>> !dbg !36 {
>> Entry:
>> %2 = alloca %"[]u8", align 8
>> %message_ptr = alloca i8*, align 8
>> %message_len = alloca i64, align 8
>> store i8* %0, i8** %message_ptr, align 8
>> call void @llvm.dbg.declare(metadata i8** %message_ptr, metadata !41,
>> metadata !32), !dbg !44
>> store i64 %1, i64* %message_len, align 8
>> call void @llvm.dbg.declare(metadata i64* %messa...
2019 Nov 15
2
U2F support in OpenSSH HEAD
...d. I attached a diff that makes this
change and it seems to fix my issue.
-------------- next part --------------
diff --git a/sk-usbhid.c b/sk-usbhid.c
index c0a6bd0d..00c07685 100644
--- a/sk-usbhid.c
+++ b/sk-usbhid.c
@@ -204,7 +204,7 @@ try_device(fido_dev_t *dev, const uint8_t *message, size_t message_len,
out:
fido_assert_free(&assert);
- return r != FIDO_OK ? -1 : 0;
+ return r != FIDO_OK && r != FIDO_ERR_USER_PRESENCE_REQUIRED ? -1 : 0;
}
/* Iterate over configured devices looking for a specific key handle */
2017 Sep 17
4
assertion triggered since update to llvm 5
...nobuiltin noreturn nounwind
>>>> define linkonce coldcc void @__zig_panic(i8* nonnull readonly, i64) #1
>>>> !dbg !36 {
>>>> Entry:
>>>> %2 = alloca %"[]u8", align 8
>>>> %message_ptr = alloca i8*, align 8
>>>> %message_len = alloca i64, align 8
>>>> store i8* %0, i8** %message_ptr, align 8
>>>> call void @llvm.dbg.declare(metadata i8** %message_ptr, metadata !41,
>>>> metadata !32), !dbg !44
>>>> store i64 %1, i64* %message_len, align 8
>>>> call voi...
2015 Aug 31
5
[PATCH v5 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more)
and wants cancel it. User will end up with stuck guestfish until journal-view
transfers all journal items.
Output is configurable, it's the same format as virt-log has, since both
uses same code.
Maros Zatko (2):
cat: move get_journal_field to fish/journal.c
fish: add journal-view command (RHBZ#988100)
2017 Jun 19
2
LLVM behavior different depending on function symbol name
...> }
>>
>> ; Function Attrs: cold nobuiltin noreturn nounwind
>> define linkonce coldcc void @__zig_panic(i8* nonnull readonly, i64) #3
>> !dbg !26 {
>> Entry:
>> %2 = alloca %"[]u8", align 8
>> %message_ptr = alloca i8*, align 8
>> %message_len = alloca i64, align 8
>> store i8* %0, i8** %message_ptr
>> call void @llvm.dbg.declare(metadata i8** %message_ptr, metadata !34,
>> metadata !37), !dbg !38
>> store i64 %1, i64* %message_len
>> call void @llvm.dbg.declare(metadata i64* %message_len, metadata !...
2017 Sep 17
2
assertion triggered since update to llvm 5
...ind
>>>>> define linkonce coldcc void @__zig_panic(i8* nonnull readonly, i64) #1
>>>>> !dbg !36 {
>>>>> Entry:
>>>>> %2 = alloca %"[]u8", align 8
>>>>> %message_ptr = alloca i8*, align 8
>>>>> %message_len = alloca i64, align 8
>>>>> store i8* %0, i8** %message_ptr, align 8
>>>>> call void @llvm.dbg.declare(metadata i8** %message_ptr, metadata
>>>>> !41, metadata !32), !dbg !44
>>>>> store i64 %1, i64* %message_len, align 8
>>>...
2017 Jun 19
4
LLVM behavior different depending on function symbol name
Greetings,
I have a Zig implementation of ceil which is emitted into LLVM IR like this:
; Function Attrs: nobuiltin nounwind
define internal fastcc float @ceil(float) unnamed_addr #3 !dbg !644 {
Entry:
%x = alloca float, align 4
store float %0, float* %x
call void @llvm.dbg.declare(metadata float* %x, metadata !649, metadata
!494), !dbg !651
%1 = load float, float* %x, !dbg !652
%2 =