libk  Check-in [cef83f0167]

Overview
Comment:switch ansi "bold off" code to "reset" for terminals that interpret "bold off" as "double underline"; remove (incorrect) test code from kiosend
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cef83f01678c97eaaffb84bca3c3134665d0c6337734952b53090776ff3fcebc
User & Date: lexi on 2019-08-21 00:16:00
Other Links: manifest | tags
Context
2019-08-21
00:28
Switch to using command -v to check for commands instead of which check-in: fd95e5bc93 user: glow tags: trunk
00:16
switch ansi "bold off" code to "reset" for terminals that interpret "bold off" as "double underline"; remove (incorrect) test code from kiosend check-in: cef83f0167 user: lexi tags: trunk
2019-08-20
22:54
reorganize posix assembly code check-in: f85e6a07dd user: lexi tags: trunk
Changes

Modified global/common.sh from [85eaa3b261] to [254d63007c].

     1      1   me=$0
     2         -say() { echo >&2 "($me) $1";      }
            2  +say() { echo >&2 "($me) $1";      }
     3      3   has() { which $1 >/dev/null 2>&1; return $?; }
     4      4   check() {
     5      5   	var=$1
     6      6   	test "${!var}" == "" || return 0
     7      7   	say "we were not able to detect a default value for the configuration variable \$$var. please set this variable to $2 and try again."
     8      8   	exit 1
     9      9   }
    10     10   
    11     11   test "$out" = "" && {
    12         -	say "\$out environment variable must be set to your build directory - are you running this script by hand? run ./build.sh in the root directory instead!"
           12  +	say "\$out environment variable must be set to your build directory - are you running this script by hand? run ./build.sh in the root directory instead!"
    13     13   	exit 2
    14     14   }
    15     15   
    16     16   reqpack() {
    17     17   	if ! has "$1"; then
    18         -		say "to $2 for libk, install the $1 package and try again"
           18  +		say "to $2 for libk, install the $1 package and try again"
    19     19   		exit 3
    20     20   	fi
    21     21   }

Modified kio/send.fn.c from [3d6d32a7c0] to [1b46213bbd].

    38     38   			case k_platform_error_EAGAIN: return kiocond_poll;
    39     39   			case k_platform_error_EFBIG:  return kiocond_fail_too_big;
    40     40   			case k_platform_error_EINTR:  return kiocond_interrupt;
    41     41   			case k_platform_error_EDESTADDRREQ: return kiocond_fail_no_peer;
    42     42   			default: return kiocond_fail;
    43     43   		}
    44     44   #	else
    45         -#		if KVos == win
    46         -#			error windows IO send function not yet defined
    47         -#		else
    48         -			Knoimpl(kiosend,KVos);
    49         -#			error missing implementation // boring error for plebs
    50         -#		endif
           45  +		Knoimpl(kiosend,KVos);
           46  +#		error missing implementation // boring error for plebs
    51     47   #	endif
    52     48   
    53     49   	if (len != null) *len = size;
    54     50   	return kiocond_ok;
    55     51   }