09-10-2007
Dude, I'm not sure if this will be of any help, but take a
look at this.. Sorry if I didn't get the requirement correctly, I'll ask someone when I get to work.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is it unsafe to put your own home directory (a regular user) in your search path? I am writing useful shell scripts, but don't have the permissions to put them in /usr/bin. (Korn shell)
thanks (2 Replies)
Discussion started by: jpprial
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I got a error message
The environmental variable AUTOSYS is not set !
I think I require to to add a path to PATH variable in the startup scripts in the home dir.
I tried using set PATH=
but it is not setting the PATH when i do the echo $PATH , i dont get the new PATH reflected, Is... (5 Replies)
Discussion started by: rajanishshetty
5 Replies
3. UNIX for Dummies Questions & Answers
Hello
i use bash and i added a path variable for 2 files /rscr and /uscr in /etc/profile
/rscr working fine but the other one shows command not found
and when i try to type whereis for scripts in /rscr it shows them but the other one shows nothing... thanks :b: (3 Replies)
Discussion started by: wir3d
3 Replies
4. Shell Programming and Scripting
Hello
I using CygWin and am working on project that requires whereby after I make some code changes and rebuild I have to manually copy the updated files into the install directory to test them. There is a build output directory where these files placed, but the program will not run from there.... (4 Replies)
Discussion started by: bobban
4 Replies
5. Shell Programming and Scripting
Hi friends,
I have written script that will search & display the block of sql statement. Since there are many blocks of sql statement i am finding it difficult to distinguish between them. The below is the sed command & its result
exec sql
abc
abc
abc... (2 Replies)
Discussion started by: frozensmilz
2 Replies
6. Shell Programming and Scripting
Hi Experts,
I have a line as below:
Text 351:2139 /opt/bo/boexi30/bobje/data/.bobj/registry/software/business objects/suite 12.0/olap intelligence/occa(o)
What I need is:
add a single quote around the path as below:
chown 351:2139... (4 Replies)
Discussion started by: apatil65
4 Replies
7. HP-UX
HI Guys,
I am truing to add some directories to the productive HP-UX (like /usr/sbin)
the problem is that i tried some methods like (export) and setenv but i failed.
I add some logs output of the commands to provide you with more info .
the user which I am trying to add this path is different... (5 Replies)
Discussion started by: barry1946
5 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Now I have: /Users/okn/bin for my private shell scripts.
How do I add /Users/okn/bin to my PATH?
The PATH is right now:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
The .bash_profile doesn't state anything about a PATH (yet).
I read about this:
PATH=/bin:$PATH
export PATH
or... (1 Reply)
Discussion started by: OmarKN
1 Replies
9. Shell Programming and Scripting
Hi there,
I have the following in my path:
export PATH=/usr/bin:/usr/sbin
But I want to change it programmatically(for the purpose of JBoss automatic(ansible) installs) to:
export PATH=/usr/bin:/usr/sbin:/usr/jdk/jdk1.8.0_60
and after that I need to insert the JAVA_HOME programmatically,... (7 Replies)
Discussion started by: hvdalsen
7 Replies
10. Shell Programming and Scripting
Probably simple, but I don't see it.
jack@veritron /u/email $ cat p3.php
<?php
require_once './lib/swift_required.php';
$x=get_include_path();
echo "$x \n";
set_include_path('./lib:./lib/classes:'.$x);
$x=get_include_path();
echo "$x \n";
$transport =... (1 Reply)
Discussion started by: jgt
1 Replies
LEARN ABOUT OSF1
subpage_prot
SUBPAGE_PROT(2) Linux Programmer's Manual SUBPAGE_PROT(2)
NAME
subpage_prot - define a subpage protection for an address range
SYNOPSIS
long subpage_prot(unsigned long addr, unsigned long len,
uint32_t *map);
Note: There is no glibc wrapper for this system call; see NOTES.
DESCRIPTION
The PowerPC-specific subpage_prot() system call provides the facility to control the access permissions on individual 4 kB subpages on sys-
tems configured with a page size of 64 kB.
The protection map is applied to the memory pages in the region starting at addr and continuing for len bytes. Both of these arguments
must be aligned to a 64-kB boundary.
The protection map is specified in the buffer pointed to by map. The map has 2 bits per 4 kB subpage; thus each 32-bit word specifies the
protections of 16 4 kB subpages inside a 64 kB page (so, the number of 32-bit words pointed to by map should equate to the number of 64-kB
pages specified by len). Each 2-bit field in the protection map is either 0 to allow any access, 1 to prevent writes, or 2 or 3 to prevent
all accesses.
RETURN VALUE
On success, subpage_prot() returns 0. Otherwise, one of the error codes specified below is returned.
ERRORS
EFAULT The buffer referred to by map is not accessible.
EINVAL The addr or len arguments are incorrect. Both of these arguments must be aligned to a multiple of the system page size, and they
must not refer to a region outside of the address space of the process or to a region that consists of huge pages.
ENOMEM Out of memory.
VERSIONS
This system call is provided on the PowerPC architecture since Linux 2.6.25. The system call is provided only if the kernel is configured
with CONFIG_PPC_64K_PAGES. No library support is provided.
CONFORMING TO
This system call is Linux-specific.
NOTES
Glibc does not provide a wrapper for this system call; call it using syscall(2).
Normal page protections (at the 64-kB page level) also apply; the subpage protection mechanism is an additional constraint, so putting 0 in
a 2-bit field won't allow writes to a page that is otherwise write-protected.
Rationale
This system call is provided to assist writing emulators that operate using 64-kB pages on PowerPC systems. When emulating systems such as
x86, which uses a smaller page size, the emulator can no longer use the memory-management unit (MMU) and normal system calls for control-
ling page protections. (The emulator could emulate the MMU by checking and possibly remapping the address for each memory access in soft-
ware, but that is slow.) The idea is that the emulator supplies an array of protection masks to apply to a specified range of virtual
addresses. These masks are applied at the level where hardware page-table entries (PTEs) are inserted into the hardware page table based
on the Linux PTEs, so the Linux PTEs are not affected. Implicit in this is that the regions of the address space that are protected are
switched to use 4-kB hardware pages rather than 64-kB hardware pages (on machines with hardware 64-kB page support).
SEE ALSO
mprotect(2), syscall(2)
Documentation/vm/hugetlbpage.txt in the Linux kernel source tree
COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the
latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
Linux 2017-09-15 SUBPAGE_PROT(2)