Sponsored Content
Operating Systems Solaris changing the setting for open files Post 73475 by reborg on Wednesday 1st of June 2005 05:23:29 PM
Old 06-01-2005
I actually ran into this one before, setting different limits will have no effect since you are using perl.

The stdio(3C) manpage notes that only 255 files may be opened using fopen(), and only file descriptors 0 through 255 can be used in a stream. Since perl calls open() and then fdopen(3C) with the resulting file descriptor, perl is limited to 256 simultaneous open files.

Last edited by reborg; 06-01-2005 at 08:54 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting Default Permissions for Files

Hi, I am setting up an area on a unix server where multiple people will be editing web pages. Can anyone tell me how to set it up the directory and subdirectories so that when a user creates a new file, it defaults to permissions of 664 or 775? I've tried using umask but from what I can... (1 Reply)
Discussion started by: robbieg
1 Replies

2. UNIX for Dummies Questions & Answers

copy directory without changing ownership setting

hi currently i am migrating some directories over to a new server. is there any command (rcp or ftp or anything) for me to use without changing the ownership and permission of the directory? i am copying some directories from unix machine to linux machine. what is the exact command? thanks... (2 Replies)
Discussion started by: legato
2 Replies

3. Solaris

changing IP thru editing files

I attempted to change the IP of my Solaris 9 box by changing these files: /etc/hosts /etc/hostname.dmfe0 And when I rebooted my system, the changes did not come up through the reboots. I have searched high and low and this is how you change the IP address permanently. Can anyone tell me what... (2 Replies)
Discussion started by: bluridge
2 Replies

4. UNIX for Dummies Questions & Answers

Recursively changing permissions on files

Please excuse for double posting, but since this seems like a " yep, me dummy question", I feel I should post here.:o Just joined after using the site as a guest.. (Very Good Stuff in here.. thanks folks.) I am in the process of hardening a Solaris 10 server using JASS. I also must use DISA... (1 Reply)
Discussion started by: altamaha
1 Replies

5. SuSE

Setting the max open files value

I'm trying to set the open files value to 4000 on a SLES 9 system. Current values:ulimit -n 1024 I can set it using this:ulimit -n 4000 ulimit -n 4000 But this obviously sets it only for the shell session where I run the command to set it. I want to set this to 4000 for all time. ... (3 Replies)
Discussion started by: blowtorch
3 Replies

6. Shell Programming and Scripting

Changing one number in all files using awk

Hi I want to change the number 70 mentioned in my file to 76 by using awk. I know how to change all same digits but not one particular number. I have 29 files almost similar to this. One of my files looks like #Input file for 200K NPT molecular dynamics of final 70%XL made from 58.5%... (3 Replies)
Discussion started by: ananyob
3 Replies

7. Red Hat

dhcp not setting dns and changing to garbage

I have 2 problems. Dhcp is not setting dns and after I manually set my dns it changes to garbage. I literally just used command to set dns which is a good copy of resolv.conf: sudo cp /home/bob/Desktop/scripts_9-12-2011/resolv.conf /etc/resolv.confHere is a copy of my resolv.conf. #... (5 Replies)
Discussion started by: cokedude
5 Replies

8. Shell Programming and Scripting

Moving files and changing name

So I am trying to get my juices flowing on another korn shell scripting project I need to do. I hope my examples here will allow someone to get me pointed in the right direction. I hope I am clear with what I am trying to do. Example: /incomplete/file1v1c1 /incomplete/temp1v1c1... (2 Replies)
Discussion started by: linuxn00b
2 Replies

9. Shell Programming and Scripting

ftp files ntrans setting

Hi all, am transfer some set files to remote machine from unix like put file1 put file2 put file3 put fileend4 But on remote machine files are getting placed like this file1 fileend4 file2 file3 Are their is any sequence of file transfer like alphabetic order or... (3 Replies)
Discussion started by: vivek1489
3 Replies

10. UNIX for Dummies Questions & Answers

Changing path in many files

I have many html files in a directory tree and want to change the a path declaration within the files. Files will look as below I want to remove "geopdf/" so I get as example href=../../../geo1937/geo02n01/geo0201r00010016.pdf rather than keeping the entry as ... (1 Reply)
Discussion started by: kristinu
1 Replies
FDOPEN(3P)						     POSIX Programmer's Manual							FDOPEN(3P)

PROLOG
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the correspond- ing Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME
fdopen - associate a stream with a file descriptor SYNOPSIS
#include <stdio.h> FILE *fdopen(int fildes, const char *mode); DESCRIPTION
The fdopen() function shall associate a stream with a file descriptor. The mode argument is a character string having one of the following values: r or rb Open a file for reading. w or wb Open a file for writing. a or ab Open a file for writing at end-of-file. r+ or rb+ or r+b Open a file for update (reading and writing). w+ or wb+ or w+b Open a file for update (reading and writing). a+ or ab+ or a+b Open a file for update (reading and writing) at end-of-file. The meaning of these flags is exactly as specified in fopen(), except that modes beginning with w shall not cause truncation of the file. Additional values for the mode argument may be supported by an implementation. The application shall ensure that the mode of the stream as expressed by the mode argument is allowed by the file access mode of the open file description to which fildes refers. The file position indicator associated with the new stream is set to the position indicated by the file offset associated with the file descriptor. The error and end-of-file indicators for the stream shall be cleared. The fdopen() function may cause the st_atime field of the underlying file to be marked for update. If fildes refers to a shared memory object, the result of the fdopen() function is unspecified. If fildes refers to a typed memory object, the result of the fdopen() function is unspecified. The fdopen() function shall preserve the offset maximum previously set for the open file description corresponding to fildes. RETURN VALUE
Upon successful completion, fdopen() shall return a pointer to a stream; otherwise, a null pointer shall be returned and errno set to indi- cate the error. ERRORS
The fdopen() function may fail if: EBADF The fildes argument is not a valid file descriptor. EINVAL The mode argument is not a valid mode. EMFILE {FOPEN_MAX} streams are currently open in the calling process. EMFILE {STREAM_MAX} streams are currently open in the calling process. ENOMEM Insufficient space to allocate a buffer. The following sections are informative. EXAMPLES
None. APPLICATION USAGE
File descriptors are obtained from calls like open(), dup(), creat(), or pipe(), which open files but do not return streams. RATIONALE
The file descriptor may have been obtained from open(), creat(), pipe(), dup(), or fcntl(); inherited through fork() or exec; or perhaps obtained by implementation-defined means, such as the 4.3 BSD socket() call. The meanings of the mode arguments of fdopen() and fopen() differ. With fdopen(), open for write (w or w+) does not truncate, and append (a or a+) cannot create for writing. The mode argument formats that include a b are allowed for consistency with the ISO C standard func- tion fopen(). The b has no effect on the resulting stream. Although not explicitly required by this volume of IEEE Std 1003.1-2001, a good implementation of append (a) mode would cause the O_APPEND flag to be set. FUTURE DIRECTIONS
None. SEE ALSO
Interaction of File Descriptors and Standard I/O Streams, fclose(), fopen(), open(), the Base Definitions volume of IEEE Std 1003.1-2001, <stdio.h> COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1, 2003 Edition, Standard for Information Technol- ogy -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html . IEEE
/The Open Group 2003 FDOPEN(3P)
All times are GMT -4. The time now is 10:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy