FVWM: SunOs4.1.3 <string.h> doesn't "seem" have func: strerror

From: Keith Carter <cartek_at_mcsunx.gs.com>
Date: Thu, 25 Apr 1996 13:16:17 -0400

the replacement for this function is a char array called:

char * sys_errlist[errno]

where errno is the index into the list of error strings


its seems that strerror is only used once in a file builtins.c in the function:
void exec_function(XEvent *eventp,Window w,FvwmWindow *tmp_win,unsigned long context,char
*action, int *Module)

First, place char *sys_errlist[]; as a global variable

I replaced the commented out line with the line below it

  if (!(fork())) /* child process */
  {
    if (execl(exec_shell_name, exec_shell_name, "-c", cmd, NULL)==-1)
    {
/* commented out till sys_errlist[] is figured out */
/* fvwm_msg(ERR,"exec_function","execl failed (%s)",strerror(errno)); */
      fvwm_msg(ERR,"exec_function","execl failed (%s)",sys_errlist[errno]);
      exit(100);
    }
  }

I'm not sure how you'd want to implement this since its probably a SunOS implementation
problem only so if there is any #define that determines the type of system a person has then
that might be useful.

for more information on sys_errlist in SunOs: man sys_errlist


-- 
Keith Carter
Email : cartek_at_mcsunx.gs.com
Work  : 212-902-9180
Beeper: 917-506-8942
"An open mind sees more than open eyes", [kbc] Feb  6, 1996
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Apr 25 1996 - 13:30:25 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST