10-07-2008
The exit value should be larger than what can be represented in eight bits: 0-127 signed or 0-255 unsigned.
Stick with numbers like 101, 102, 103
This is because unix wait strips all but the lowest eight bits from the return code before passing it to "$?"
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm receiving an exit code 64 in our batch scheduler (BMC product control-m) executing a PERL script on UX-HP. Can you tell me where I can find a list of exit codes and their meaning. I'm assuming the exit code is from the Unix operating system not PERL. (3 Replies)
Discussion started by: jkuchar747
3 Replies
2. Shell Programming and Scripting
Hi all,
I am confused about When and where to use exit 0 and exit 1 ...
Thanks (2 Replies)
Discussion started by: dhananjaysk
2 Replies
3. Programming
What is the difference between using exit(0) and exit(1) to exit a program? Which should I use? (9 Replies)
Discussion started by: enuenu
9 Replies
4. Shell Programming and Scripting
Hi
even though I use exit in my first scripts, I am not sure exactly about exit codes.I know there is a relation between return and exit codes, exit 0 means it returned a 0 to indicate there is no error at the end of this point.
But what does it mean:
exit 1 , probably there was an error, OK... (2 Replies)
Discussion started by: xramm
2 Replies
5. UNIX for Dummies Questions & Answers
can u tell me what is the meaning of exit(0),exit(1),exit(2)
what is diff amonng these.
Amit (1 Reply)
Discussion started by: amitpansuria
1 Replies
6. UNIX for Dummies Questions & Answers
When I want to close my session I can use exit or logout, and a lot of manuals use both of them indistinctly. So, Is there any difference between exit or logout?? Or are both of them exactly the same command??
I forgot to mention that I am using a RedHat Unix.
Thanks for your help.
Kinai. (1 Reply)
Discussion started by: kinai
1 Replies
7. UNIX for Dummies Questions & Answers
I use a Mac and need to 'echo' a code in >> /etc/hosts
Where is: /etc/hosts?
And how do I do : exit 0 Does : 'fi' mean something too?
:confused:Thanks for any help, Jacqrav:confused: (1 Reply)
Discussion started by: jacqrav
1 Replies
8. Shell Programming and Scripting
Hi,
if
then
mailx -s " MESSAGE " abc@xyz.com < $file
else
exit
fi
Could you let me know if the pattern is not found will the script exit. (8 Replies)
Discussion started by: bprabhukumar
8 Replies
9. Shell Programming and Scripting
HI
I am just using cd Command and i want exit if error.
Ex.
cd /hp/pp/0720
If above folder in not available then stop the script
Folder is change every day
Thanks (3 Replies)
Discussion started by: asavaliya
3 Replies
10. Shell Programming and Scripting
Hi
In one of the script I am seeing some thing like exit 7,exit 1,exit 2,exit 3,exit 9,exit6.What is the difference between all of this exit.Can anyone help here please (3 Replies)
Discussion started by: ginrkf
3 Replies
LEARN ABOUT NETBSD
stdint
STDINT(3) BSD Library Functions Manual STDINT(3)
NAME
stdint -- standard integer types
SYNOPSIS
#include <stdint.h>
DESCRIPTION
The <stdint.h> header provides source-portable integer types of a specific size, smallest memory footprint with a minimum size, fastest
access speed with a minimum size, largest integer size, and those capable of storing pointers.
The types int8_t, int16_t, int32_t, and int64_t provide a signed integer type of width 8, 16, 32, or 64 bits, respectively. The types
uint8_t, uint16_t, uint32_t, and uint64_t provide an unsigned integer type of width 8, 16, 32, or 64 bits, respectively. These integer types
should be used when a specific size is required.
The types int_fast8_t, int_fast16_t, int_fast32_t, and int_fast64_t provide the fastest signed integer type with a width of at least 8, 16,
32, or 64 bits, respectively. The types uint_fast8_t, uint_fast16_t, uint_fast32_t, and uint_fast64_t provide the fastest unsigned integer
type with a width of at least 8, 16, 32, or 64 bits, respectively. These types should be used when access speed is paramount, and when a
specific size is not required.
The types int_least8_t, int_least16_t, int_least32_t, and int_least64_t provide the smallest memory footprint signed integer type with a
width of at least 8, 16, 32, or 64 bits, respectively. The types uint_least8_t, uint_least16_t, uint_least32_t, and uint_least64_t provide
the smallest memory footprint unsigned integer type with a width of at least 8, 16, 32, or 64 bits, respectively. These types should be used
when memory storage is of concern, and when a specific size is not required.
The type intmax_t provides a signed integer type large enough to hold any other signed integer. The type uintmax_t provides an unsigned
integer type large enough to hold any other unsigned integer. These types are generally the largest signed and unsigned integer types avail-
able on a specific architecture.
The type intptr_t provides a signed integer type with the ability to hold a pointer to void, that can later be converted back to a pointer to
void.
The type uintptr_t provides an unsigned integer type with the ability to hold a pointer to void, that can later be converted back to a
pointer to void.
SEE ALSO
inttypes(3), limits(3), stdbool(3), unistd(3)
STANDARDS
The <stdint.h> header conforms to ISO/IEC 9899:1999 (``ISO C99'') and IEEE Std 1003.1-2001 (``POSIX.1'').
HISTORY
The <stdint.h> header was first introduced in NetBSD 1.6.
BSD
August 9, 2011 BSD