Depends in practice on the compiler suite. POSIX and C89 and other standards define constants which you can query and use in your programs; look for MAXINT and friends.
The standard solution for big files is to use "long int" although again what exactly that means in practice depends on the compiler etc.
It's not really clear why you are asking about pointers. Pointers by definition work on memory addresses, and the type of the memory address they point to (the number of bytes to use beyond the pointed-to address) is independent of the location in memory.
Hi All,
I have Network color laser printer which is to be configured in AIX5L.
The Model of the printer is OKI C3200.
Will it is supported with AIX 5..? I could not find any drivers for this.
Will any compatible drivers are available for this printer... I tried with the default drivers hplj-4... (2 Replies)
hello everybody!
I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code:
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(){
int fileDescriptor;
fileDescriptor =... (2 Replies)
Hi,
from the manual
listen(2): listen for connections on socket - Linux man page
It has a parameter called backlog and it limits the maximum length of queue of pending list.
If I set backlog to 128, is it means no more than 128 packets can be handled by server?
If I have three... (3 Replies)
int air_date='20100103'; //2010 - Jan - 03
/* My goal here is to subtract a day. */
int day = air_date % 100; //?????? Is this right?
//Are there any functions time/date for this type of date format?
:cool: (7 Replies)
Hi I am getting the below error
/bin/mkdir -p ./obj/SunOS10_32/SingleThread/Debug/CC_5_3
/bin/mkdir -p ./bin/SunOS10_32/SingleThread/Debug/CC_5_3
CC -c -ptr./obj/SunOS10_32/SingleThread/Debug/CC_5_3 -V -I/opt/tuxedo/tuxedo11gR1/include -I. -I../../OBED_SA_1-27a/include... (1 Reply)
Hi guys,
I am currently receiving the following output in /var/log/syslog and is occurring every second leading to /var directory being full after every 2 days.
Aug 20 17:32:29 opaldn1 sendmail: r7KCOlQm002517: ruleset=check_rcpt, arg1=<postmaster@silverapp6>, relay=, reject=450 4.4.0... (3 Replies)
Discussion started by: Junaid Subhani
3 Replies
LEARN ABOUT OSF1
shmdt
shmdt(2) System Calls Manual shmdt(2)NAME
shmdt - Detaches a shared memory region
SYNOPSIS
#include <sys/shm.h>
int shmdt(
const void *addr);
Application developers may want to specify #include statements for <sys/types.h> and
<sys/ipc.h> before the one for <sys/shm.h> if programs are being developed for multiple platforms. The additional #include statements are
not required on Tru64 UNIX systems or by ISO or X/Open standards, but may be required on other vendors' systems that conform to these stan-
dards.
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
shmdt(): XPG4, XPG4-UNIX
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies the starting virtual address for the shared memory region to be detached. This is the address returned by a previous shmat()
call.
DESCRIPTION
The shmdt() function detaches the shared memory region at the address specified by the addr parameter. Other instances of the region
attached at other addresses are unaffected.
RETURN VALUES
Upon successful completion, the shmdt() function decrements the value of shm_nattach in the data structure associated with the shared mem-
ory ID of the attached shared memory segment and returns 0 (zero). Upon failure, the shared memory segment is not detached, -1 is
returned, and errno is set to indicate the error.
ERRORS
The shmdt() function sets errno to the specified values for the following conditions: The addr parameter does not specify the starting
address of a shared memory region.
RELATED INFORMATION
Functions: shmat(2), shmctl(2), shmget(2)
Data structures: shmid_ds(4)
Standards: standards(5) delim off
shmdt(2)