Changeset: 6e5513710421 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6e5513710421
Modified Files:
clients/Tests/exports.stable.out
monetdb5/modules/mal/clients.c
monetdb5/modules/mal/clients.h
Branch: default
Log Message:
Unexport functions.
diffs (truncated from 401 to 300 lines):
diff --git a/clients/Tests/exports.stable.out b/clients/Tests/exports.stable.out
--- a/clients/Tests/exports.stable.out
+++ b/clients/Tests/exports.stable.out
@@ -755,42 +755,8 @@ str BKCsetPersistent(void *r, const bat
str BKCsetTransient(void *r, const bat *bid);
str BKCshrinkBAT(bat *ret, const bat *bid, const bat *did);
ssize_t BLOBtostr(str *tostr, size_t *l, const void *pin, bool external);
-str CLTInfo(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTLogin(bat *ret, bat *nme);
-str CLTaddUser(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTbackendsum(str *ret, str *pw);
-str CLTchangePassword(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTchangeUsername(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTcheckPermission(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr
pci);
-str CLTgetClientId(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTgetPasswordHash(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr
pci);
-str CLTgetProfile(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTgetScenario(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTgetUsername(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTgetUsers(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTmd5sum(str *ret, str *pw);
-str CLTqueryTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTquit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTremoveUser(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTripemd160sum(str *ret, str *pw);
-str CLTsessionTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
str CLTsessions(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetListing(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetPassword(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetPrintTimeout(void *ret, int *secs);
-str CLTsetScenario(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetSessionTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr
pci);
-str CLTsetTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetmemorylimit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetoptimizer(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsetworkerlimit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsha1sum(str *ret, str *pw);
-str CLTsha2sum(str *ret, str *pw, int *bits);
str CLTshutdown(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTstop(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTstopSession(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTsuspend(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
-str CLTwakeup(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci);
str CMDbbp(bat *ID, bat *NS, bat *TT, bat *CNT, bat *REFCNT, bat *LREFCNT, bat
*LOCATION, bat *HEAT, bat *DIRTY, bat *STATUS, bat *KIND);
str CMDbbpCount(bat *ret);
str CMDbbpDirty(bat *ret);
diff --git a/monetdb5/modules/mal/clients.c b/monetdb5/modules/mal/clients.c
--- a/monetdb5/modules/mal/clients.c
+++ b/monetdb5/modules/mal/clients.c
@@ -40,7 +40,7 @@ pseudo(bat *ret, BAT *b, str X1,str X2)
return 0;
}
-str
+static str
CLTsetListing(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
(void) mb;
@@ -49,7 +49,7 @@ CLTsetListing(Client cntxt, MalBlkPtr mb
return MAL_SUCCEED;
}
-str
+static str
CLTgetClientId(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
(void) mb;
@@ -59,7 +59,7 @@ CLTgetClientId(Client cntxt, MalBlkPtr m
return MAL_SUCCEED;
}
-str
+static str
CLTgetScenario(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
(void) mb;
@@ -72,7 +72,7 @@ CLTgetScenario(Client cntxt, MalBlkPtr m
return MAL_SUCCEED;
}
-str
+static str
CLTsetScenario(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -103,7 +103,7 @@ CLTtimeConvert(time_t l, char *s)
s[24] = 0; /* remove newline */
}
-str
+static str
CLTInfo(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
bat *ret= getArgReference_bat(stk,pci,0);
@@ -153,7 +153,7 @@ bailout:
throw(MAL, "clients.info", SQLSTATE(HY013) MAL_MALLOC_FAIL);
}
-str
+static str
CLTLogin(bat *nme, bat *ret)
{
BAT *b = COLnew(0, TYPE_str, 12, TRANSIENT);
@@ -184,7 +184,7 @@ bailout:
throw(MAL, "clients.getLogins", SQLSTATE(HY013) MAL_MALLOC_FAIL);
}
-str
+static str
CLTquit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -208,7 +208,7 @@ CLTquit(Client cntxt, MalBlkPtr mb, MalS
}
/* Stopping a client in a softmanner by setting the time out marker */
-str
+static str
CLTstop(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
int idx = cntxt->idx;
@@ -231,7 +231,7 @@ CLTstop(Client cntxt, MalBlkPtr mb, MalS
return msg;
}
-str
+static str
CLTsetoptimizer(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
int idx = cntxt->idx;
@@ -263,7 +263,7 @@ CLTsetoptimizer(Client cntxt, MalBlkPtr
return msg;
}
-str
+static str
CLTsetworkerlimit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -293,7 +293,7 @@ CLTsetworkerlimit(Client cntxt, MalBlkPt
return msg;
}
-str
+static str
CLTsetmemorylimit(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -323,7 +323,7 @@ CLTsetmemorylimit(Client cntxt, MalBlkPt
return msg;
}
-str
+static str
CLTstopSession(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -360,7 +360,7 @@ CLTstopSession(Client cntxt, MalBlkPtr m
}
/* Queries can be temporarily suspended */
-str
+static str
CLTsuspend(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -382,7 +382,7 @@ CLTsuspend(Client cntxt, MalBlkPtr mb, M
return msg;
}
-str
+static str
CLTwakeup(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -405,7 +405,7 @@ CLTwakeup(Client cntxt, MalBlkPtr mb, Ma
}
/* Set session time out based in seconds. As of December 2019, this function
is deprecated */
-str
+static str
CLTsetSessionTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -431,7 +431,7 @@ CLTsetSessionTimeout(Client cntxt, MalBl
}
/* Set the current query timeout in seconds. As of December 2019, this
function is deprecated */
-str
+static str
CLTsetTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -467,7 +467,7 @@ CLTsetTimeout(Client cntxt, MalBlkPtr mb
}
/* set session time out based in seconds, converted into microseconds */
-str
+static str
CLTqueryTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -506,7 +506,7 @@ CLTqueryTimeout(Client cntxt, MalBlkPtr
}
/* Set the current session timeout in seconds */
-str
+static str
CLTsessionTimeout(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str msg = MAL_SUCCEED;
@@ -547,7 +547,7 @@ CLTsessionTimeout(Client cntxt, MalBlkPt
}
/* Retrieve the session time out */
-str
+static str
CLTgetProfile(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
str *opt= getArgReference_str(stk,pci,0);
@@ -568,7 +568,7 @@ CLTgetProfile(Client cntxt, MalBlkPtr mb
/* Long running queries are traced in the logger
* with a message from the interpreter.
* This value should be set to minutes to avoid a lengthly log */
-str
+static str
CLTsetPrintTimeout(void *ret, int *secs)
{
(void) ret;
@@ -579,7 +579,7 @@ CLTsetPrintTimeout(void *ret, int *secs)
return MAL_SUCCEED;
}
-str CLTmd5sum(str *ret, str *pw) {
+static str CLTmd5sum(str *ret, str *pw) {
#ifdef HAVE_MD5_UPDATE
if (strNil(*pw)) {
*ret = GDKstrdup(str_nil);
@@ -601,7 +601,7 @@ str CLTmd5sum(str *ret, str *pw) {
#endif
}
-str CLTsha1sum(str *ret, str *pw) {
+static str CLTsha1sum(str *ret, str *pw) {
#ifdef HAVE_SHA1_UPDATE
if (strNil(*pw)) {
*ret = GDKstrdup(str_nil);
@@ -623,7 +623,7 @@ str CLTsha1sum(str *ret, str *pw) {
#endif
}
-str CLTripemd160sum(str *ret, str *pw) {
+static str CLTripemd160sum(str *ret, str *pw) {
#ifdef HAVE_RIPEMD160_UPDATE
if (strNil(*pw)) {
*ret = GDKstrdup(str_nil);
@@ -645,7 +645,7 @@ str CLTripemd160sum(str *ret, str *pw) {
#endif
}
-str CLTsha2sum(str *ret, str *pw, int *bits) {
+static str CLTsha2sum(str *ret, str *pw, int *bits) {
if (strNil(*pw) || is_int_nil(*bits)) {
*ret = GDKstrdup(str_nil);
} else {
@@ -688,7 +688,7 @@ str CLTsha2sum(str *ret, str *pw, int *b
return MAL_SUCCEED;
}
-str CLTbackendsum(str *ret, str *pw) {
+static str CLTbackendsum(str *ret, str *pw) {
if (strNil(*pw)) {
*ret = GDKstrdup(str_nil);
} else {
@@ -703,7 +703,7 @@ str CLTbackendsum(str *ret, str *pw) {
return MAL_SUCCEED;
}
-str CLTaddUser(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci) {
+static str CLTaddUser(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci)
{
oid *ret = getArgReference_oid(stk, pci, 0);
str *usr = getArgReference_str(stk, pci, 1);
str *pw = getArgReference_str(stk, pci, 2);
@@ -713,7 +713,7 @@ str CLTaddUser(Client cntxt, MalBlkPtr m
return AUTHaddUser(ret, cntxt, *usr, *pw);
}
-str CLTremoveUser(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci) {
+static str CLTremoveUser(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr
pci) {
str *usr;
(void)mb;
@@ -722,14 +722,14 @@ str CLTremoveUser(Client cntxt, MalBlkPt
return AUTHremoveUser(cntxt, *usr);
}
-str CLTgetUsername(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr pci) {
+static str CLTgetUsername(Client cntxt, MalBlkPtr mb, MalStkPtr stk, InstrPtr
pci) {
str *ret = getArgReference_str(stk, pci, 0);
(void)mb;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list