Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/osfree-project/osfree
Browse files Browse the repository at this point in the history
  • Loading branch information
prokushev committed Apr 22, 2024
2 parents 3cb7eb5 + 9d51ac2 commit 7716ac1
Show file tree
Hide file tree
Showing 13 changed files with 127 additions and 7 deletions.
26 changes: 26 additions & 0 deletions OS2/Shared/all_querypathinfo.c
@@ -0,0 +1,26 @@
/*!
@file all_querypathinfo.c
@brief utility functions for query path info
shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#include <all_shared.h> /* shared functions and defines */

APIRET all_QueryPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfo,
ULONG cbInfoBuf)
{
#ifdef __386__
return DosQueryPathInfo(pszPathName, ulInfoLevel, pInfo, cbInfoBuf);
#else
return DosQPathInfo(pszPathName, ulInfoLevel, (PBYTE)pInfo, cbInfoBuf, 0);
#endif
}
27 changes: 27 additions & 0 deletions OS2/Shared/all_setpathinfo.c
@@ -0,0 +1,27 @@
/*!
@file all_setpathinfo.c
@brief utility functions for set path info
shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#include <all_shared.h> /* shared functions and defines */

APIRET all_SetPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfoBuf,
ULONG cbInfoBuf,
ULONG flOptions)
{
#ifdef __386__
return DosSetPathInfo(pszPathName, ulInfoLevel, pInfoBuf, cbInfoBuf, flOptions);
#else
return DosSetPathInfo(pszPathName, ulInfoLevel, (PBYTE)pInfoBuf, cbInfoBuf, flOptions, 0);
#endif
}
1 change: 0 additions & 1 deletion OS2/Shared/libs16/_wcc.cmd
@@ -1,5 +1,4 @@
@echo off
set verbose=yes
set root=.
:loop
if exist "%root%\tools\mk\all.mk" goto found
Expand Down
2 changes: 1 addition & 1 deletion OS2/Shared/libs16/makefile
Expand Up @@ -6,7 +6,7 @@ PROJ = all_shared16
TRGT = $(PROJ).lib
srcfiles = $(p)all_messages$(e) $(p)all_querycurrentdisk$(e) $(p)all_queryfsname$(e) &
$(p)all_dlist$(e) $(p)all_pathmanipulation$(e) $(p)all_performrecursiveaction$(e) &
$(p)all_debug$(e)
$(p)all_debug$(e) $(p)all_setpathinfo$(e) $(p)all_querypathinfo$(e)
UNI2H = 0
NOLIBS = 1
ADD_COPT =
Expand Down
2 changes: 1 addition & 1 deletion OS2/Shared/makefile
Expand Up @@ -7,7 +7,7 @@ PROJ = all_shared
TRGT = $(PROJ).lib
srcfiles = $(p)all_messages$(e) $(p)all_querycurrentdisk$(e) $(p)all_queryfsname$(e) &
$(p)all_dlist$(e) $(p)all_pathmanipulation$(e) $(p)all_performrecursiveaction$(e) &
$(p)all_debug$(e)
$(p)all_debug$(e) $(p)all_setpathinfo$(e) $(p)all_querypathinfo$(e)

UNI2H = 1
ADD_COPT =
Expand Down
2 changes: 1 addition & 1 deletion Win32
Submodule Win32 updated 48 files
+4 −6 base/ntcmd/inc/ntfile.h
+8 −10 base/ntcmd/inc/ntreg.h
+1 −5 base/ntcmd/src/display.c
+2 −5 base/ntcmd/src/hardware.c
+1 −5 base/ntcmd/src/input.c
+0 −22 base/ntcmd/src/keytrans.c
+38 −39 base/ntcmd/src/main.c
+0 −3 base/ntcmd/src/ntfile.c
+1 −4 base/ntcmd/src/ntreg.c
+25 −26 base/ntcmd/src/process.c
+15 −20 base/ntcmd/src/sysinfo.c
+16 −6 base/smss/src/main.c
+130 −95 docs/Developer-Guide.md
+13 −0 drivers/filesystems/fatfs/create.c
+0 −6 drivers/filesystems/fatfs/dirwr.c
+0 −3 drivers/filesystems/fatfs/fcb.c
+10 −21 drivers/filesystems/fatfs/flush.c
+6 −6 drivers/storage/fdc/hw.c
+4 −4 drivers/storage/fdc/hw.h
+1 −0 private/ntdll/ntdll.spec
+6 −8 private/ntdll/src/ke/except.c
+6 −17 private/ntdll/src/rtl/amd64/unwind.c
+11 −17 private/ntdll/src/rtl/exception.c
+15 −61 private/ntdll/src/rtl/i386/except.c
+9 −10 private/ntdll/src/rtl/rtlp.h
+0 −7 private/ntdll/src/rtl/util.c
+11 −0 private/ntos/inc/io.h
+368 −95 private/ntos/src/io/cache.c
+1 −0 private/ntos/src/io/device.c
+75 −14 private/ntos/src/io/file.c
+6 −3 private/ntos/src/io/iop.h
+113 −23 private/ntos/src/io/irp.c
+37 −5 private/ntos/src/ke/init.c
+0 −2 private/ntos/src/ps/create.c
+78 −5 private/rtl/inc/wdmsvc.h
+5 −0 private/rtl/syssvc.xml
+1 −1 private/wdm/inc/coroutine.h
+10 −1 private/wdm/inc/wdmp.h
+251 −54 private/wdm/src/cache.c
+0 −1 private/wdm/src/coroutine.c
+2 −0 private/wdm/src/file.c
+61 −11 private/wdm/src/irp.c
+8 −0 private/wdm/src/isr.c
+1 −1 private/wdm/src/main.c
+1 −1 private/wdm/wdm.spec
+4 −13 public/ddk/inc/ntifs.h
+3 −0 public/ndk/inc/ntioapi.h
+2 −0 public/ndk/inc/ntpsapi.h
2 changes: 1 addition & 1 deletion dual
Submodule dual updated 2 files
+11 −21 attrib/attrib.c
+2 −17 comp/comp.c
21 changes: 21 additions & 0 deletions include/os3/all_querypathinfo.h
@@ -0,0 +1,21 @@
/*!
@file all_querypathinfo.h
@brief all_QueryPathInfo utility function header, shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#ifndef _ALL_QUERYPATHINFO_H_
#define _ALL_QUERYPATHINFO_H_

APIRET all_QueryPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfo,
ULONG cbInfoBuf);

#endif /* _ALL_QUERYPATHINFO_H_ */
22 changes: 22 additions & 0 deletions include/os3/all_setpathinfo.h
@@ -0,0 +1,22 @@
/*!
@file all_setpathinfo.h
@brief all_SetPathInfo utility function header, shared along all code
(c) osFree Project 2024, <http://www.osFree.org>
for licence see licence.txt in root directory, or project website
@author Yuri Prokushev <yuri.prokushev@gmail.com>
*/

#ifndef _ALL_SETPATHINFO_H_
#define _ALL_SETPATHINFO_H_

APIRET all_SetPathInfo(PSZ pszPathName,
ULONG ulInfoLevel,
PVOID pInfoBuf,
ULONG cbInfoBuf,
ULONG flOptions);

#endif /* _ALL_SETPATHINFO_H_ */
2 changes: 2 additions & 0 deletions include/os3/all_shared.h
Expand Up @@ -45,5 +45,7 @@
#include "all_querycurrentdisk.h"
#include "all_queryfsname.h"
#include "all_messages.h"
#include "all_setpathinfo.h"
#include "all_querypathinfo.h"

#endif /* _ALL_SHARED_H_ */
2 changes: 1 addition & 1 deletion tools/mkmsgf/mkmsgf.mk
Expand Up @@ -4,5 +4,5 @@ PORT_NAME = tools$(SEP)mkmsgf
PORT_TYPE = git
PORT_URL = https://github.com/MikeyG/mkmsgf
PORT_REV = 1.1
PORT_PATCHES = mkmsgf.diff mkmsgf2.diff mkmsgf3.diff
PORT_PATCHES = mkmsgf.diff mkmsgf2.diff mkmsgf3.diff mkmsgf4.diff
!include $(%ROOT)tools/mk/port.mk
23 changes: 23 additions & 0 deletions tools/mkmsgf/patches/mkmsgf4.diff
@@ -0,0 +1,23 @@
diff -urN mkmsgf/src/mkmsgf.c newmkmsgf/src/mkmsgf.c
--- mkmsgf/src/mkmsgf.c Sun Apr 14 12:21:30 2024
+++ newmkmsgf/src/mkmsgf.c Sun Apr 14 12:20:40 2024
@@ -905,13 +905,17 @@
outlen++;
if (outlen==ASM_MSG_SIZE)
{
- fprintf(fpo, "'\r\n\tDB\t");
- if (strncmp("\r\n", readptr, 2)) fprintf(fpo, "'");
+ if (*readptr) fprintf(fpo, "'\r\n\tDB\t");
+ if (strncmp("\r\n", readptr, 2)&& *readptr) fprintf(fpo, "'");
outlen=0;
}
}

}
+
+ // If no EOL, then just close string without 0dh, 0ah
+ if (strncmp("\r\n", readptr-2, 2)) fprintf(fpo,"'");
+
fprintf(fpo,"\r\n");

//msg_num_check++;

0 comments on commit 7716ac1

Please sign in to comment.