1
Programming / Re: Networking: socket() returns positive `non-socket`
« on: July 12, 2025, 09:56:54 pm »
don't know username and password...
OS2World.com Forum is back !!!
Remember to visit OS2World at:
http://www.os2world.com
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Building agena with makefile.os2 renamed to makefile, so 'make os2' with gcc 9.2.0 dies with,Code: [Select]make all MYCFLAGS="-O2 -static-libgcc -DLUA_BUILD_AS_DLL -D_FILE_OFFSET_BITS=64 -D_DIRENT_HAVE_D_TYPE -DPCRE2_CODE_UNIT_WIDTH=8 -D__ST_MT_ERRNO__ -DLUA_USE_LINUX -DINCL_BASE -DHAVE_NCURSES_H"
make[1]: Entering directory 'H:/tmp/agena-5.1.1-src/src'
gcc -Wall -Wno-attributes -Wno-strict-aliasing -Wno-deprecated-declarations -Wno-unknown-pragmas -fgnu89-inline -fomit-frame-pointer -DLUA_BUILD_AS_DLL -D_FILE_OFFSET_BITS=64 -D_DIRENT_HAVE_D_TYPE -DPCRE2_CODE_UNIT_WIDTH=8 -D__ST_MT_ERRNO__ -DLUA_USE_LINUX -DINCL_BASE -DHAVE_NCURSES_H -O2 -static-libgcc -DLUA_BUILD_AS_DLL -D_FILE_OFFSET_BITS=64 -D_DIRENT_HAVE_D_TYPE -DPCRE2_CODE_UNIT_WIDTH=8 -D__ST_MT_ERRNO__ -DLUA_USE_LINUX -DINCL_BASE -DHAVE_NCURSES_H -c -o lvm.o lvm.c
In file included from ldo.h:11,
from lvm.h:10,
from lvm.c:24:
lvm.c: In function 'luaV_execute':
lobject.h:217:37: error: incompatible types when assigning to type 'complex double' from type 'lua_Number *' {aka 'double *'}
217 | { TValue *i_o=(obj); i_o->value.c=(x); i_o->tt=LUA_TCOMPLEX; }
| ^
lvm.c:9121:15: note: in expansion of macro 'setcvalue'
9121 | setcvalue(ra, z);
| ^~~~~~~~~
make[1]: *** [<builtin>: lvm.o] Error 1
make[1]: Leaving directory 'H:/tmp/agena-5.1.1-src/src'
make: *** [makefile:117: os2] Error 2
Similar error with gcc 4.4.6, just less informative.
Need a cast?
1) Have one C function that opens a socket and returns its descriptor, a positive integer, to the Lua environment.
2) Have additional, separate C functions that take the socket descriptor from 1) and that bind, connect, etc.
I guess that as soon as the scope of C function 1) in ArcaOS is left and the interpreter returns to the Lua environment, any info on the socket descriptor is lost and the socket is automatically closed so that all the other functions 2) reject it ?
Hi/2.
JFS itself supports unicode although I'm not sure its UCS-2 or UTF-8. However, no OS/2 IO APIs do not support Unicode at all. Converting layer is necessary.
Anyway if you have problems only for file names, then try https://github.com/komh/git-os2/releases/tag/2.42.0-os2-r1.
Hi
The 'kLIBC Pathwriters' that I installed (klibccfg_1_0_2_1.exe) did not added TEMP, TMPDIR, LOGFILES on the config.sys.
I add those manually and the D: drive issues are gone.
Thanks. I will keep testing the ANPM.
ERROR with transaction check vs depsolve:python(abi) = 3.9 wird benötigt von (installiert) python3-dateutil-1:2.8.1-3.oc00.noarchBitte melden Sie diesen Fehler unter http://yum.baseurl.org/report
Hello Steven.
You know more than me on this area.
My references are:
1) DevHlp_AddTraceEvent
-- "SMP Programming Addendum" on the "STRACE - DevHlp Functions"
-- sg244640: "Trace Events for DEVHELP Major Code: 0X0006, Sorted by Tracepoint"
--- OS) DevHlp_AddTraceEvent Post-Invocation 00132 (0X0084)
--- OS) DevHlp_AddTraceEvent Pre-Invocation 00004 (0X0004)
2) DevHlp_SysTrace
-- "Programming Guide and Reference Addendum" on the "Device Helper (DevHlp) Services and Function Codes" at "DevHlp_SysTrace".
There it says "DevHlp_SysTrace is synonymous with DevHlp_RAS."
On "devhlp.inc" from the DDK it has:QuoteDevHlp_RAS EQU 40 ; 28 Put info in RAS trace buffer
DevHlp_SysTrace EQU 40 ; 28 Synonym for DevHlp_RAS f180062
This is why I guess that DevHlp_RAS and DevHlp_SysTrace are the same. No idea about "DevHlp_AddTraceEvent".
Regards
DevHlp_AddTraceEvent - Not found in pddref.inf
{1}[d:\] yum install cups-2.2.13-2.oc00.pentium4
Geladene Plugins: changelog, fastestmirror
Loading mirror speeds from cached hostfile
Einrichten des Installationsprozess
Löse Abhängigkeiten auf
--> Führe Transaktionsprüfung aus
---> Paket cups.pentium4 1:2.2.13-1.oc00 markiert, um aktualisiert zu werden
---> Paket cups.pentium4 1:2.2.13-2.oc00 markiert, um an update zu werden
--> Abhängigkeitsauflösung beendet
Abhängigkeiten aufgelöst
================================================================================
Paket Arch Version Repository Größe
================================================================================
Aktualisieren:
cups pentium4 1:2.2.13-2.oc00 netlabs-exp 2.0 M
Vorgangsübersicht
================================================================================
Upgrade 1 Package
Gesamtgröße: 2.0 M
Ist dies in Ordnung? [j/N] :j
Lade Pakete herunter:
Running Transaction Check
Führe Verarbeitungstest durch
Verarbeitungstest erfolgreich
Führe Verarbeitung durch
Aktualisieren: 1:cups-2.2.13-2.oc00.pentium4 1/2
Error unpacking rpm package 1:cups-2.2.13-2.oc00.pentium4
Warnung: /@unixroot/etc/cups/classes.conf erstellt als /@unixroot/etc/cups/classes.conf.rpmnew
Warnung: /@unixroot/etc/cups/cupsd.conf erstellt als /@unixroot/etc/cups/cupsd.conf.rpmnew
Warnung: /@unixroot/etc/cups/lpoptions erstellt als /@unixroot/etc/cups/lpoptions.rpmnew
Warnung: /@unixroot/etc/cups/printers.conf erstellt als /@unixroot/etc/cups/printers.conf.rpmnew
Fehler: Entpacken des Archivs fehlgeschlagen bei Datei /@unixroot/var/run/cups/certs: cpio: unlink
1:cups-2.2.13-1.oc00.pentium4 was supposed to be removed but is not!
Fehlgeschlagen:
cups.pentium4 1:2.2.13-1.oc00 cups.pentium4 1:2.2.13-2.oc00
Komplett!