isaexec man page on Solaris

Man page or keyword search:  
man Server   20652 pages
apropos Keyword Search (all sections)
Output format
Solaris logo
[printable version]

isaexec(3C)		 Standard C Library Functions		   isaexec(3C)

NAME
       isaexec - invoke isa-specific executable

SYNOPSIS
       #include <unistd.h>

       int isaexec(const char *path, char *const argv[], char *const envp[]);

DESCRIPTION
       The  isaexec()  function takes the path specified as path and breaks it
       into directory and file name components. It enquires from  the  running
       system  the  list of supported instruction set architectures; see isal‐
       ist(5). The function traverses the list for an executable file in named
       subdirectories of the original directory.  When such a file is located,
       execve() is invoked with argv[] and envp[]. See exec (2).

RETURN VALUES
       If no file is located, isaexec() returns ENOENT.	 Other	return	values
       are the same as for execve().

EXAMPLES
       Example 1: Example of isaexec() function.

       On a system whose isalist is

       sparcv7 sparc

       the program

       int
       main(int argc, char *argv[], char *envp[])
       {
	       return (isaexec("/bin/thing", argv, envp));
       }

       will  look  first for an executable file named /bin/sparcv7/thing, then
       for an executable file named /bin/sparc/thing. It will invoke  execve()
       on the first executable file it finds named thing.

       On  that	 same  system,	a  program called /u/bin/tofu can cause either
       /u/bin/sparcv7/tofu or /u/bin/sparc/tofu to be invoked using  the  fol‐
       lowing code:

       int
       main(int argc, char *argv[], char *envp[])
       {
		     return (isaexec(getexecname(), argv, envp));
       }

ATTRIBUTES
       See attributes(5) for descriptions of the following attributes:

       ┌─────────────────────────────┬─────────────────────────────┐
       │      ATTRIBUTE TYPE	     │	    ATTRIBUTE VALUE	   │
       ├─────────────────────────────┼─────────────────────────────┤
       │MT-Level		     │Safe			   │
       ├─────────────────────────────┼─────────────────────────────┤
       │Interface Stability	     │Stable			   │
       └─────────────────────────────┴─────────────────────────────┘

SEE ALSO
       exec(2), getexecname(3C), attributes(5), isalist(5)

SunOS 5.10			  20 Mar 1998			   isaexec(3C)
[top]

List of man pages available for Solaris

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net