Brian Callahan

Results 84 comments of Brian Callahan

It works fine on OpenBSD but doesn't work fine on at least FreeBSD and Illumos. A quick guess: perhaps the `srand` call is always using the same seed. But I'll...

OK. If clock_gettime is an available function but CLOCK_MONOTONIC is not a valid clock_id, then we will have to fall back to CLOCK_REALTIME. Can you please add the following to...

No problem. We'll get there eventually. This error is a new one I haven't seen before from other platforms; I'll try to figure out a solution and get back to...

Looking at what mksh does, it seems like the thing to do is wrap that line, `edit.c:182` with ``` #ifndef __hpux__ cb.c_cc[VDISCARD] = _POSIX_VDISABLE; #endif ``` At least for now....

Ah. That tells me that __hpux__ isn't the right define to detect HPUX. That's fine; I'll make it a more generic check for VDISCARD. Could you tell me what the...

Though now looking at the code, that definitely needs to change for everyone, so I'll go back to the drawing board :)

OK, after some research... Can you wrap the `#include ` line in `#if 0` like so: ``` #if 0 #include #endif ``` Also, in the file `portable.h` can you add...

`_PW_NAME_LEN` is the maximum length of a valid username on HP-UX. Do you happen to know what that is? `_PATH_DEFPATH` is your default `$PATH`. Whatever `echo $PATH` is when you...

Also can you check to see if you have any of the defines here: https://github.com/ibara/oksh/blob/master/portable.h#L49 That may also shed some light on what to do for HP-UX.

That's... a lot. Let's try this: In `portable.h`, at line 55, can you add the following: ``` #elif defined(__hpux) #define _PW_NAME_LEN 8 ``` Then at line 93: ``` #if defined(__hpux)...