10-29-2009
Thanks cfajohnson. I'd assumed that the standard implemention-specific "man 5" pages were pretty universal . After checking a generic Linux "man" site I see that most of the usual ones are present but not necessarily in the the same man section. No mention of "limits" though.
I'll take a closer look at a modern Linux and update my notes.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi folks,
Can anybody tell me whether there is any limit on the file name length and directory name length in UNIX. (4 Replies)
Discussion started by: rkkiran
4 Replies
2. UNIX for Dummies Questions & Answers
What is the maximum size of a command which can be given in telnet command prompt in unixfor Korn shell? (2 Replies)
Discussion started by: miltony
2 Replies
3. UNIX for Dummies Questions & Answers
What is the maximum size of a command which can be given in telnet command prompt in unix? (2 Replies)
Discussion started by: miltony
2 Replies
4. UNIX for Dummies Questions & Answers
Hi All,
I didn't find any thread that match this question so I hope it's not redundant. I am totally new to Unix. I want to know what is the maximum length of the os-commandline in Unix. Will it cause any problem if I run any application whose total path length is much longer than 256... (2 Replies)
Discussion started by: kumardesai
2 Replies
5. UNIX for Dummies Questions & Answers
hi,
I am using solaris10. I have to write a bourne shell script, which copies files for the said destination path which is passed as an argument to the script.
it looks like this
myscript.sh /var/test -->destination path
now i would like to know what is the maximum length i can... (3 Replies)
Discussion started by: raghu.amilineni
3 Replies
6. Shell Programming and Scripting
what is the maximum length of a unix shell variable which can be can passed to plsql variable:( (1 Reply)
Discussion started by: alokjyotibal
1 Replies
7. Shell Programming and Scripting
Hi,
The problem I have is that I want to create a list of folders whose names are read from a text file but the file names are in decimal. Each letter consists of an octet and the end of the folder name is defined by the white space character (0032)
For example, we have in the text... (2 Replies)
Discussion started by: Gengis-Kahn
2 Replies
8. AIX
Hi
My Unix sever is AIX 5.3. My Login shell ( using echo $SHELL) is /bin/sh implying it is a Bourne Shell. My Question is that i am still able to use Alias command to create/retrieve aliases. I have read in several sites on Unix online that the Bourne Shell does not support Aliases but... (12 Replies)
Discussion started by: pchegoor
12 Replies
9. Shell Programming and Scripting
Is there a maximum length for a shell script command? How can I detect that in my OS?
For example, if I have something like:
command A | command B | command C | awk '{print $1 $2 $3 $4 $5}'
then can we break the commands and also the arguments inside awk ?
Thanks (11 Replies)
Discussion started by: hbar
11 Replies
10. Shell Programming and Scripting
good friends days
I would love to know if I can help you know the length of a string
example:
cadena= "cual es mi largo"
echo "cadena : $cadena#
cadena :16 (7 Replies)
Discussion started by: tricampeon81
7 Replies
LEARN ABOUT CENTOS
syncfs
SYNC(2) Linux Programmer's Manual SYNC(2)
NAME
sync, syncfs - commit buffer cache to disk
SYNOPSIS
#include <unistd.h>
void sync(void);
int syncfs(int fd);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
sync():
_BSD_SOURCE || _XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
syncfs():
_GNU_SOURCE
DESCRIPTION
sync() causes all buffered modifications to file metadata and data to be written to the underlying file systems.
syncfs() is like sync(), but synchronizes just the file system containing file referred to by the open file descriptor fd.
RETURN VALUE
syncfs() returns 0 on success; on error, it returns -1 and sets errno to indicate the error.
ERRORS
sync() is always successful.
syncfs() can fail for at least the following reason:
EBADF fd is not a valid file descriptor.
VERSIONS
syncfs() first appeared in Linux 2.6.39; library support was added to glibc in version 2.14.
CONFORMING TO
sync(): SVr4, 4.3BSD, POSIX.1-2001.
syncfs() is Linux-specific.
NOTES
Since glibc 2.2.2 the Linux prototype for sync() is as listed above, following the various standards. In libc4, libc5, and glibc up to
2.2.1 it was "int sync(void)", and sync() always returned 0.
BUGS
According to the standard specification (e.g., POSIX.1-2001), sync() schedules the writes, but may return before the actual writing is
done. However, since version 1.3.20 Linux does actually wait. (This still does not guarantee data integrity: modern disks have large
caches.)
SEE ALSO
bdflush(2), fdatasync(2), fsync(2), sync(8), update(8)
COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2012-05-04 SYNC(2)