[Search for users]
[Overall Top Noters]
[List of all Conferences]
[Download this site]
Title: | DECC |
Notice: | General DEC C discussions |
Moderator: | TLE::D_SMITH N TE |
|
Created: | Fri Nov 13 1992 |
Last Modified: | Fri Jun 06 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 2212 |
Total number of notes: | 11045 |
2101.0. ""sia_ses_init" routine changed?" by GIDDAY::SANKAR ("") Thu Feb 20 1997 23:55
The following is the problem description of a customer
whose c code is failing to run after compile.
Any comments on what to do next will be appreciated.
Thanks
=======================================================================
Customer has upgraded From V3.2d to V4.0b.
Now one of her application doesnot work. She thinks its something to do with
the "sia_ses_init" function call.
When she run it (as root) it core dumps.
When she runs it as a user it works OK.
She is sending me some example code.
--------------------------------------------------------------------------------
LANCE GARDNER <program> 18-FEB-1997 10:01
--------------------------------------------------------------------------------
#include <stdio.h>
#include <sia.h>
#include <siad.h>
int check(char *user, char *password)
{
SIAENTITY *entity;
int retval;
int pass_ok = FALSE;
char *argv[2] = { "check", NULL };
printf("About to call init\n");
retval = sia_ses_init(&entity, 1, argv, NULL, user, NULL, 0, NULL);
printf("init returned %d\n", retval);
printf("About to call authent\n");
retval = sia_ses_authent(NULL, password, entity);
pass_ok = (retval == SIASUCCESS);
printf("authent returned %d\n", retval);
printf("About to call release\n");
retval = sia_ses_release(&entity);
printf("release returned %d\n", retval);
return pass_ok;
}
int main()
{
char user[80];
char password[80];
printf("Username: ");
gets(user);
printf("Password: ");
gets(password);
if (check(user, password)) {
printf("password correct\n");
}
else {
printf("password incorrect\n");
}
return 0;
}
--------------------------------------------------------------------------------
LANCE GARDNER <possible workaround> 18-FEB-1997 10:11
--------------------------------------------------------------------------------
Following results recorded after testing.
Program core dumped when run under Borne shell (sh) and korn shell (ksh)
Program worked when run under csh.
Will relay results to customer.
She will try changing shells and get back to me.
========================================================================
T.R | Title | User | Personal Name | Date | Lines |
---|
2101.1 | That's Not A DEC C Routine... | XDELTA::HOFFMAN | Steve, OpenVMS Engineering | Fri Feb 21 1997 09:18 | 5 |
|
"sia_ses_init" is not a routine from the DEC C standard library -- check
with the folks over in the DIGITAL UNIX notes conference, and check for
any related details that might be in the UNIX release documentation for
the circa V4.0 upgrade.
|
2101.2 | | DECCXL::OUELLETTE | | Fri Feb 21 1997 14:58 | 4 |
| Should you find a problem with an RTL supplied by Digital Unix,
report it by using QAR on GORGE. [Login as QAR_INTERNAL.]
R.
|