I am trying to find a way to check the current status of a file. Such as some cron job processes are dependent on the completion of others. if a file is currently being accessed / modified or simply open state I will wait until it is done being processed before attempting the next process on that... (3 Replies)
Hello All,
Im opening a file desciptor in perl and sending data using print CMD "$xyz".
is there a limit to the length of the string that I can give to this CMD at a time. (3 Replies)
Hi All,
Thaks for the help in my last thread. I have one more question. I have two files with ldap entries in it. One file contains all the user LDAP parameter entries (26 MB) and other file contains only the user id's that have to be inactivated. Unix script has to read from the file that has... (8 Replies)
Hello,
How can i use file descriptor in a script to read 2 files at the same time and extract line 200 from file 1 and line 500 from file 2.
Thanks. (6 Replies)
Hi guys,
I am writing a Makefile with some strange features.
What I have is:
list of files *.efi
list of guids (guid is just a number)
one *.efi file is supposed to be used with one guid, so efi file and guid is a pair.
What I need is:
list of files *.fv
How to make *.fv file... (1 Reply)
Discussion started by: Chrisdot
1 Replies
LEARN ABOUT SUNOS
getdtablesize
getdtablesize(3C) Standard C Library Functions getdtablesize(3C)NAME
getdtablesize - get the file descriptor table size
SYNOPSIS
#include <unistd.h>
int getdtablesize(void);
DESCRIPTION
The getdtablesize() function is equivalent to getrlimit(2) with the RLIMIT_NOFILE option.
RETURN VALUES
The getdtablesize() function returns the current soft limit as if obtained from a call to getrlimit() with the RLIMIT_NOFILE option.
ERRORS
No errors are defined.
USAGE
There is no direct relationship between the value returned by getdtablesize() and OPEN_MAX defined in <limits.h>.
Each process has a file descriptor table which is guaranteed to have at least 20 slots. The entries in the descriptor table are numbered
with small integers starting at 0. The getdtablesize() function returns the current maximum size of this table by calling the getrlimit()
function.
SEE ALSO close(2), getrlimit(2), open(2), setrlimit(2), select(3C)SunOS 5.10 1 Mar 1996 getdtablesize(3C)