9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
I am using Ubuntu 10.4 and I want to change the boot loader option to boot Windows 7 by default. Every time I update Ubuntu some extra lines appears at the boot menu. I want to remove them also. Please help me (1 Reply)
Discussion started by: dearanik
1 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have installed pre Vista windows and Redhat in my PC. Recently I have installed windowsXP for install weblogic server, but after installing XP it is not showing Redhat linux. At booting time it is showing only XP and pre Vista. Can you please help me how get my Redhat back.
Thanks in... (1 Reply)
Discussion started by: sarfraz
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I have installed pre Vista windows and Redhat in my PC. Recently I have installed windowsXP for install weblogic server, but after installing XP it is not showing Redhat linux. At booting time it is showing only XP and pre Vista. Can you please help me how get my Redhat back.
Thanks in... (1 Reply)
Discussion started by: sarfraz
1 Replies
4. UNIX and Linux Applications
Hi all,
I am very new to arm and embedded architecture. I am using s3c2410 board and using vivi to create a boot loader, I am following all the steps and getting the vivi image successfully without any error, but when i port it to arm i donot get anything thing displayed on minicom, can... (0 Replies)
Discussion started by: niranjanvg
0 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I am newbie here.I want to know what is MBR,boot loader & boot strap programe.
What is procedure of loading OS in to memory.
Thanx in advance:) (1 Reply)
Discussion started by: vishwasrao
1 Replies
6. UNIX for Dummies Questions & Answers
What are the ways in which a LILO boot loader can be installed on a
Linux system. (0 Replies)
Discussion started by: tjay83
0 Replies
7. UNIX for Dummies Questions & Answers
Hi
i have both Linux and Windows XP on my PC.
i used to use grub as a boot loader and everything was perfect, until
i reinstalled Windows.
apparently, Windows installer installed its own bootloader, that
doesn't recognize Linux.
i tried using a tool called GrubInstaller for Windows, and now... (4 Replies)
Discussion started by: shx2
4 Replies
8. SCO
hi, i m a newbie and installed sco unix on my machine. Also i installed win-xp. i tried to modify the boot.ini file but it does not give me a choice in the begining.
please guide me on this. do we get a boot loader for unix like LILO or GRUB?
:confused: (3 Replies)
Discussion started by: 187final
3 Replies
9. UNIX for Dummies Questions & Answers
i have installed windows on this c: drive
i have linux installed on drive d:
when i disconnect d: it boots into c: into windows
when i have both drives connected it stops after sys check.
how do i get a dual boot goin ???? or a boot loader and if i reinstall linux 7. where should i... (1 Reply)
Discussion started by: perleo
1 Replies
exec_with_loader(2) System Calls Manual exec_with_loader(2)
NAME
exec_with_loader - Executes a file with a loader
SYNOPSIS
int exec_with_loader ( int flags, const char *loader, const char *file, char * const argv[ ], char * const envp[ ]
);
PARAMETERS
Specifies flags to be passed to the loader. Points to a pathname that identifies a regular, executable, process image file that contains
the loader. This image file must be a nonshared image. Points to a pathname that identifies a regular, executable process image file.
This image file must be a call-shared image. Specifies an array of character pointers to null-terminated strings. Specifies an array of
character pointers to null-terminated strings, constituting the environment for the new process.
DESCRIPTION
The exec_with_loader() function replaces the current process image with a new process image, in a manner similar to what the exec functions
do. Both the loader parameter and the file parameter point to pathnames that identify regular, executable files called process image files.
Unlike the exec functions, which construct the new process image from the file identified by the file parameter, exec_with_loader() con-
structs the new process image from the file identified by the loader parameter.
Note
Throughout this reference page, the regular, executable, process image file specified by the loader parameter is referred to as the program
loader, and the regular, executable, process image file specified by the file parameter is referred to as the file.
The loader image cannot be linked at the default user addresses. You must find another place to link it. One acceptable place to link the
loader image is at the address space defined for the loader in the /usr/shlib/so_locations file.
After the exec_with_loader() function successfully loads the program loader, it transfers control to the program loader and effectively
passes the file parameter. Under normal usage, the program loader will then load (that is, merge) the file into the newly constructed
process image, along with any object files upon which the program (that is, the file) depends. The typical use of exec_with_loader() is to
load programs that contain unresolved external references, for example, programs that require the use of a shared library.
The exec_with_loader() function implements and preserves all of the semantics of the exec functions, with respect to the file. These
include the handling of the argv and envp parameters, command interpreters, close-on-exec processing, signals, set user ID and set group ID
processing, the process attributes and error returns.
The loader parameter may be null, in which case the exec_with_loader() function loads the default program loader (/sbin/loader). The
exec_with_loader() function also loads the default program loader under either of the following sets of conditions, even if the loader
parameter points to a valid program loader: If the set user ID mode bit of the file is set (see the chmod() function) and the owner ID of
the file is not equal to the effective user ID of the process If the set group ID mode bit of the file is set and the group ID of the file
is not equal to the effective group ID of the process.
The setting of the user ID or set group ID mode bits on the program loader have no effect whatsoever.
RETURN VALUES
If the exec_with_loader() function returns to the calling process image, an error has occurred; the return value is -1, and errno is set to
indicate the error.
ERRORS
If the exec_with_loader() function fails, errno may be set to one of the following values: Search permission is denied for a directory
listed in either file's path prefix, or either file denies execution permission, or either file is not a regular file and the implementa-
tion does not support execution of files of its type. Note that the exec_with_loader() function references two files, one specified by the
loader parameter and one specified by the file parameter. The length of the loader or file parameters exceeds PATH_MAX, or a pathname com-
ponent is longer than NAME_MAX and _POSIX_NO_TRUNC is in effect for that file. One or more components of either file's pathname does not
exist, or the loader or file parameter points to an empty string. Note that the exec_with_loader() function references two files, one
specified by the loader parameter and one specified by the file parameter. A component of either file's path prefix is not a directory.
Note that the exec_with_loader() function references two files, one specified by the loader parameter and one specified by the file parame-
ter. The file specified by the loader parameter has the appropriate access permission but is not in the proper format. The loader or file
parameter is an invalid address. Too many symbolic links were encountered in pathname resolution. Insufficient memory is available.
RELATED INFORMATION
Functions: exec(2) delim off
exec_with_loader(2)