09-23-2002
I have checked my path and permissions all seems
fine. I could execute the script perfectly on another server but not on my newly installed
c compiler.
Any more suggestions? please
Thanks in Advance
9 More Discussions You Might Find Interesting
1. Programming
i'm using linux to compile my c program right now. are there any free c compiler with all the standard header file, such as <stdio.h>, <unistd.h>..., i can download and use?
can Microsoft Visual C++ compile C code?
thanks. (1 Reply)
Discussion started by: bb00y
1 Replies
2. Programming
I'm new to C but eager to get started. I purchasewd beginning C by Ivor Horton and realise that I need a C compiler. I looking for the most appropriate and economical way to obtain this, any suggestions would be greatly appreciated. (5 Replies)
Discussion started by: ferret
5 Replies
3. Solaris
Hello Everyone!!!
Can i use the C shell to compile a C program ? how ? please teach me how to compile ? Thanks!!!!
Giancarlo D. Jabon (1 Reply)
Discussion started by: giancarlodjabon
1 Replies
4. Programming
my C compiler cc is not working. probably it has corrupted.
can anyone tell me location from where i can download it.
Regards (4 Replies)
Discussion started by: rochitsharma
4 Replies
5. UNIX for Dummies Questions & Answers
Hi,
we are converting from IBM-AIX(xl c/c++ compiler) to Linux(GCC complier).
As a part of this i need to change the CFLAGS.
The xl c/c++ complier CFLAGS is
CFLAGS := $(CDEBUG) $(PROJECT_INCLUDE_DIRS) $(COBJECT_MODE) -qcpluscmt -qmakedep -qcheck=all \
-qalign=bit_packed $(LINT_FLAGS)... (0 Replies)
Discussion started by: pbattu1
0 Replies
6. Programming
To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first?
The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's...
Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies
7. Solaris
Greetings, :rolleyes: :o :confused:
I am working on Solaris 8. I have a few questions:
1. How do I determine if I have the CC compiler? I know it isn't in my $PATH, so how do I find it?
2. How do you install wget? I have read the INSTALL file, but I am not familar with the switches,... (25 Replies)
Discussion started by: Roam
25 Replies
8. UNIX for Dummies Questions & Answers
hi,
can we install gcc compiler in unix based OS(sun solar,IBM AIX,HP,etc) and also
can we install sun cc compiler in AIX environment and vice versa.
and more ..is linux support cc compiler
regards
Ajay (3 Replies)
Discussion started by: ajaysahoo
3 Replies
9. Shell Programming and Scripting
I have the code
.section .data
format_string: .asciz "Tong la '%d'\n"
n: .int 6
.section .text
.globl _start
_start:
movl $0,%esi
movl n,%eax
movl $0,%ecx
loop1:
cmp %eax,%ecx
je print
add %eax,%esi
dec %eax
jmp loop1
print:
movl $format_string, %edi
movl $0, %eax (1 Reply)
Discussion started by: toantk_55
1 Replies
ACCESS(2) BSD System Calls Manual ACCESS(2)
NAME
access -- check access permissions of a file or pathname
SYNOPSIS
#include <unistd.h>
int
access(const char *path, int amode);
DESCRIPTION
The access() function checks the accessibility of the file named by path for the access permissions indicated by amode. The value of amode
is the bitwise inclusive OR of the access permissions to be checked (R_OK for read permission, W_OK for write permission and X_OK for exe-
cute/search permission) or the existence test, F_OK. All components of the pathname path are checked for access permissions (including
F_OK).
The real user ID is used in place of the effective user ID and the real group access list (including the real group ID) are used in place of
the effective ID for verifying permission.
Even if a process has appropriate privileges and indicates success for X_OK, the file may not actually have execute permission bits set.
Likewise for R_OK and W_OK.
RETURN VALUES
If path cannot be found or if any of the desired access modes would not be granted, then a -1 value is returned and the global integer vari-
able errno is set to indicate the error. Otherwise, a 0 value is returned.
ERRORS
Access to the file is denied if:
[EACCES] Permission bits of the file mode do not permit the requested access, or search permission is denied on a component of the
path prefix.
The owner of a file has permission checked with respect to the ``owner'' read, write, and execute mode bits, members of
the file's group other than the owner have permission checked with respect to the ``group'' mode bits, and all others have
permissions checked with respect to the ``other'' mode bits.
[EFAULT] Path points outside the process's allocated address space.
[EINVAL] An invalid value was specified for amode.
[EIO] An I/O error occurred while reading from or writing to the file system.
[ELOOP] Too many symbolic links were encountered in translating the pathname.
[ENAMETOOLONG] A component of a pathname exceeded {NAME_MAX} characters, or an entire path name exceeded {PATH_MAX} characters.
[ENOENT] The named file does not exist.
[ENOTDIR] A component of the path prefix is not a directory.
[EROFS] Write access is requested for a file on a read-only file system.
[ETXTBSY] Write access is requested for a pure procedure (shared text) file that is presently being executed.
SEE ALSO
chmod(2), stat(2)
STANDARDS
The access() function conforms to ISO/IEC 9945-1:1990 (``POSIX.1'').
CAVEAT
Access() is a potential security hole and should never be used.
4th Berkeley Distribution April 1, 1994 4th Berkeley Distribution