2014-12-24 10:56:04 -06:00
|
|
|
.TH SETARCH 8 "December 2014" "util-linux" "System Administration"
|
2007-07-02 06:48:15 -05:00
|
|
|
.SH NAME
|
|
|
|
setarch \- change reported architecture in new program environment and set personality flags
|
|
|
|
.SH SYNOPSIS
|
2009-07-22 04:29:04 -05:00
|
|
|
.B setarch
|
2014-07-20 16:15:47 -05:00
|
|
|
.I arch
|
|
|
|
[options]
|
2009-07-22 04:29:04 -05:00
|
|
|
.RI [ program
|
2014-12-24 10:56:04 -06:00
|
|
|
.RI [ argument ...]]
|
|
|
|
.sp
|
|
|
|
.B arch
|
|
|
|
[options]
|
|
|
|
.RI [ program
|
|
|
|
.RI [ argument ...]]
|
2014-07-20 16:15:47 -05:00
|
|
|
.sp
|
|
|
|
.B setarch
|
|
|
|
.BR \-\-list | \-h | \-V
|
2007-07-02 06:48:15 -05:00
|
|
|
.SH DESCRIPTION
|
|
|
|
.B setarch
|
2014-07-20 16:15:47 -05:00
|
|
|
currently only affects the output of \fBuname -m\fR.
|
2014-12-24 10:56:04 -06:00
|
|
|
For example, on an AMD64 system, running \fBsetarch i386 \fIprogram\fR
|
|
|
|
will cause \fIprogram\fR to see i686 instead of x86_64 as the machine type.
|
|
|
|
It also allows to set various personality options.
|
|
|
|
The default \fIprogram\fR is \fB/bin/sh\fR.
|
2007-07-02 06:48:15 -05:00
|
|
|
.SH OPTIONS
|
|
|
|
.TP
|
2015-01-10 07:41:33 -06:00
|
|
|
.B \-\-list
|
|
|
|
List the architectures that \fBsetarch\fR knows about. Whether \fBsetarch\fR
|
|
|
|
can actually set each of these architectures depends on the running kernel.
|
2011-09-05 13:56:30 -05:00
|
|
|
.TP
|
2015-01-10 07:41:33 -06:00
|
|
|
.B \-\-uname\-2.6
|
|
|
|
Causes the \fIprogram\fR to see a kernel version number beginning with 2.6.
|
2011-08-23 01:00:01 -05:00
|
|
|
.TP
|
2014-07-20 16:15:47 -05:00
|
|
|
.BR \-v , " \-\-verbose"
|
|
|
|
Be verbose.
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-3\fR, \fB\-\-3gb\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Specifies that processes should use a maximum of 3GB of address space on systems where it is supported (ADDR_LIMIT_3GB).
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-\-4gb\fR
|
|
|
|
Ignored (for backward compatibility only).
|
|
|
|
.TP
|
|
|
|
\fB\-B\fR, \fB\-\-32bit\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Turns on ADDR_LIMIT_32BIT.
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-F\fR, \fB\-\-fdpic\-funcptrs\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Userspace function pointers point to descriptors (turns on FDPIC_FUNCPTRS).
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-I\fR, \fB\-\-short\-inode\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Turns on SHORT_INODE.
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-L\fR, \fB\-\-addr\-compat\-layout\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Changes the way virtual memory is allocated (turns on the ADDR_COMPAT_LAYOUT).
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-R\fR, \fB\-\-addr\-no\-randomize\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Disables randomization of the virtual address space (turns on ADDR_NO_RANDOMIZE).
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-S\fR, \fB\-\-whole\-seconds\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Turns on WHOLE_SECONDS.
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-T\fR, \fB\-\-sticky\-timeouts\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Turns on STICKY_TIMEOUTS.
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-X\fR, \fB\-\-read\-implies\-exec\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Turns on READ_IMPLIES_EXEC.
|
|
|
|
.TP
|
2013-04-05 04:49:37 -05:00
|
|
|
\fB\-Z\fR, \fB\-\-mmap\-page\-zero\fR
|
2007-07-02 06:48:15 -05:00
|
|
|
Turns on MMAP_PAGE_ZERO.
|
2014-07-20 16:15:47 -05:00
|
|
|
.TP
|
|
|
|
.BR \-V , " \-\-version"
|
|
|
|
Display version information and exit.
|
|
|
|
.TP
|
|
|
|
.BR \-h , " \-\-help"
|
|
|
|
Display help text and exit.
|
2007-07-02 06:48:15 -05:00
|
|
|
.SH EXAMPLES
|
|
|
|
setarch ppc32 rpmbuild --target=ppc --rebuild foo.src.rpm
|
|
|
|
.br
|
|
|
|
setarch ppc32 -v -vL3 rpmbuild --target=ppc --rebuild bar.src.rpm
|
2007-09-04 02:45:10 -05:00
|
|
|
.br
|
|
|
|
setarch ppc32 --32bit rpmbuild --target=ppc --rebuild foo.src.rpm
|
2007-07-02 06:48:15 -05:00
|
|
|
.SH AUTHOR
|
2012-06-02 07:50:52 -05:00
|
|
|
.MT sopwith@redhat.com
|
2011-09-05 13:56:30 -05:00
|
|
|
Elliot Lee
|
2012-06-02 07:50:52 -05:00
|
|
|
.ME
|
2007-07-02 06:48:15 -05:00
|
|
|
.br
|
2012-06-02 07:50:52 -05:00
|
|
|
.MT jnovy@redhat.com
|
2011-09-05 13:56:30 -05:00
|
|
|
Jindrich Novy
|
2012-06-02 07:50:52 -05:00
|
|
|
.ME
|
2007-07-02 06:48:15 -05:00
|
|
|
.SH AVAILABILITY
|
2010-11-30 04:41:59 -06:00
|
|
|
The setarch command is part of the util-linux package and is available from
|
2011-09-05 13:56:30 -05:00
|
|
|
.UR ftp://\:ftp.kernel.org\:/pub\:/linux\:/utils\:/util-linux/
|
|
|
|
Linux Kernel Archive
|
|
|
|
.UE .
|