Re: diff: efiboot: alignment for media which has IoAlign > 1

2021-03-14 Thread Masato Asou
Hi, I was tested attached patch on following machines and worked fine on those machines. - ESXi vitrual machine - AMD TYZEN 7 - Intel corei7 -- ASOU Masato From: YASUOKA Masahiko Date: Thu, 11 Mar 2021 15:05:11 +0900 (JST) > On Wed, 10 Mar 2021 13:15:58 +0100 (CET) > Mark Kettenis

Re: Big endian and strict alignment

2021-01-19 Thread Masato Asou
From: Masato Asou Date: Tue, 19 Jan 2021 17:02:42 +0900 (JST) > お客さんから「何か情報知ってますか?」という問い合わせがあったので、ど > なたか情報をお持ちの方がいたら、情報提供をお願いします。 Sorry. I made a mistake in the address of the email. -- ASOU Masato

Big endian and strict alignment

2021-01-19 Thread Masato Asou
お客さんから「何か情報知ってますか?」という問い合わせがあったので、ど なたか情報をお持ちの方がいたら、情報提供をお願いします。 要望としては、以下の二点 (いずれか一方でも可) を満たす Raspberry Pi の ように手軽に入手できるマシンありませんか?というものです。 - Big endian - Strict alignment: MIPS のように WORD (4byte) の読み書きは 4byte 境 界でなければならない。 -- ASOU Masato

Re: [PATCH] Fix a bug where GDB could not display symbols

2020-11-30 Thread Masato Asou
offsets[i] = displacement; + } + + if (changed) + objfile_relocate (symfile_objfile, new_offsets); + + do_cleanups (old_chain); + exec_set_section_offsets(displacement, displacement, displacement); + } + return 0; + }

[PATCH] Fix a bug where GDB could not display symbols

2020-10-07 Thread Masato Asou
I refferd to the core of static linked in GDB. However, the backtrace command did not display the symbols correctly. $ cat main.c #include void sub2(int argc, char *argv[]) { int i; for (int i = 0; i <= argc; i++) argv[i][0] = '\0'; } void sub1(int argc, char

Re: Is uvm_map_isavail() returning 1 instead of -1?

2019-12-13 Thread Masato Asou
From: "Theo de Raadt" Subject: Re: Is uvm_map_isavail() returning 1 instead of -1? Date: Fri, 13 Dec 2019 15:54:10 -0700 > Masato Asou wrote: > >> Is this correct? >> >> Index: sys/uvm/uvm_map.c >> =

Is uvm_map_isavail() returning 1 instead of -1?

2019-12-13 Thread Masato Asou
Is this correct? Index: sys/uvm/uvm_map.c === RCS file: /cvs/src/sys/uvm/uvm_map.c,v retrieving revision 1.259 diff -u -p -r1.259 uvm_map.c --- sys/uvm/uvm_map.c 12 Dec 2019 11:12:36 - 1.259 +++ sys/uvm/uvm_map.c 13 Dec

thrsleep_unlock: check pointer against NULL

2019-12-04 Thread Masato Asou
ok? Index: sys/kern/kern_synch.c === RCS file: /cvs/src/sys/kern/kern_synch.c,v retrieving revision 1.155 diff -u -p -r1.155 kern_synch.c --- sys/kern/kern_synch.c 30 Nov 2019 11:19:17 - 1.155 +++ sys/kern/kern_synch.c

fwide() does not unlock if error was occurred

2019-12-02 Thread Masato Asou
fwide() does not unlock if error was occurred. ok? Index: lib/libc/stdio/fwide.c === RCS file: /cvs/src/lib/libc/stdio/fwide.c,v retrieving revision 1.5 diff -u -p -r1.5 fwide.c --- lib/libc/stdio/fwide.c 31 Aug 2015 02:53:57

Re: OpenBSD 6.x and wxallowed

2019-10-20 Thread Masato Asou
From: "Nelson H. F. Beebe" Date: Fri, 18 Oct 2019 07:39:26 -0600 > Has anyone looked into the problem of enumerating packages that are > installed in the /usr/local tree that actually NEED simultaneous write > and execute access? You can find that as below: $ grep -rHI USE_WXNEEDED /usr/ports/

Question about man 2 fcntl

2019-09-04 Thread Masato Asou
The following statement is a part of man 2 fctl. [EINTR]The argument cmd is invalid. The argument cmd is F_SETLKW, and the function was interrupted by a signal. Will EINVAL be returned in the case of 'The

libedit: Does not run input command in vi mode

2019-09-02 Thread Masato Asou
Does not run input command by vi editor with vi mode. I do the following: 1. set vi mode. $ echo "bind -v" > ~/.editrc 2. launch /usr/bin/ftp command. $ ftp 3. launch vi editor with ESC + v. ftp> ESC + v 4. input "help" in vi editor. i + help + ESC + :wq 5. then 'help' command

Re: /bin/cp: Incorrect checking the return value

2019-08-18 Thread Masato Asou
From: "Theo de Raadt" Date: Fri, 16 Aug 2019 10:01:25 -0600 > Masato Asou wrote: > >> Incorrect checking the return value of malloc and system calls in >> /bin/cp. > > The NULL vs ! checks, I cannot agree with those. Their effect is > identical and it i

Re: /bin/cp: Incorrect checking the return value

2019-08-16 Thread Masato Asou
From: Otto Moerbeek Date: Fri, 16 Aug 2019 13:56:37 +0200 > On Fri, Aug 16, 2019 at 05:44:35PM +0900, Masato Asou wrote: > >> Incorrect checking the return value of malloc and system calls in >> /bin/cp. >> >> ok? > > Altough I indeed prefer to check

/bin/cp: Incorrect checking the return value

2019-08-16 Thread Masato Asou
Incorrect checking the return value of malloc and system calls in /bin/cp. ok? Index: utils.c === RCS file: /cvs/src/bin/cp/utils.c,v retrieving revision 1.48 diff -u -p -U10 -r1.48 utils.c --- utils.c 28 Jun 2019 13:34:58 -

Re: Use `if (retval == -1)' instead of 'if (retval < 0)'

2019-08-14 Thread Masato Asou
Additional information. From: Masato Asou Subject: Use `if (retval == -1)' instead of 'if (retval < 0)' Date: Wed, 14 Aug 2019 13:42:13 +0900 (JST) > Hi tech, > > Use `if (retval == -1)' instead of 'if (retval < 0)' when check the > return value of system call. > > How

Use `if (retval == -1)' instead of 'if (retval < 0)'

2019-08-13 Thread Masato Asou
Hi tech, Use `if (retval == -1)' instead of 'if (retval < 0)' when check the return value of system call. How about it? RCS file: /cvs/src/lib/libedit/readline.c,v retrieving revision 1.28 diff -u -p -u -r1.28 readline.c --- readline.c 28 Jun 2019 13:32:42 - 1.28 +++ readline.c 14

Re: Why both media and -mediaopt doesn't specify at the same time?

2019-02-14 Thread Masato Asou
From: YASUOKA Masahiko Date: Thu, 14 Feb 2019 15:34:26 +0900 (JST) > On Thu, 14 Feb 2019 08:30:45 +0900 (JST) > Masato Asou wrote: >> From: Claudio Jeker >> Date: Wed, 13 Feb 2019 14:25:58 +0100 >> >>> On Wed, Feb 13, 2019 at 11:04:02AM +0900, Masato Asou

Re: Why both media and -mediaopt doesn't specify at the same time?

2019-02-13 Thread Masato Asou
From: Claudio Jeker Date: Wed, 13 Feb 2019 14:25:58 +0100 > On Wed, Feb 13, 2019 at 11:04:02AM +0900, Masato Asou wrote: >> Hi, >> >> When I execute `ifconfig media XX -mediaopt YY' command, it occured >> error as below. >> >> $ doas ifconfig em

Why both media and -mediaopt doesn't specify at the same time?

2019-02-12 Thread Masato Asou
Hi, When I execute `ifconfig media XX -mediaopt YY' command, it occured error as below. $ doas ifconfig em1 media 100baseTX -mediaopt full-duplex ifconfig: may not issue both `media' and `-mediaopt' $ echo $? 1 Does anyone knows this reason? I think following patch is works fine. $ cvs diff

Re: SEGV was occurred in libedit

2018-10-10 Thread Masato Asou
Hi, From: YASUOKA Masahiko Date: Wed, 10 Oct 2018 13:46:10 +0900 (JST) > initialize new line. > > See #1086, "lastline" is set to previous lastline. Then new line is not > initialized. > > I think the following diff is better since it initializes the line in > the same way for first line. >

SEGV was occurred in libedit

2018-10-09 Thread Masato Asou
Hi, When I use /usr/bin/bc command with MALLOC_OPTIONS=UJ, SEGV was occurred in libedit. $ MALLOC_OPTIONS=UJ /usr/bin/bc 10 + 20 + 30 + 40 + 50 + 60 + 70 + 80 + 90 + Segmentation fault (core dumped) $ /usr/bin/gdb /usr/bin/bc bc.core GNU gdb 6.3 ... snip

Next command of GDB does not work properly unusual

2018-06-28 Thread Masato Asou
Hi tech, I have a problem and I have ad hoc patch to solve this problem. However, this patch is AD HOC. Does anybody have correct solution? The next command of GDB does not work properly. I use OpenBSD 6.3 and /usr/bin/gdb (GDB 6.3). When I debuging my program with next command, I expect stop