Sponsored Content
Operating Systems Solaris Explain @(#)cshrc 1.11 89/11/29 SMI Post 302843471 by fgrirx on Tuesday 13th of August 2013 12:09:32 PM
Old 08-13-2013
Explain @(#)cshrc 1.11 89/11/29 SMI

What does ' @(#)cshrc 1.11 89/11/29 SMI ' mean?
Can someone please deconstruct and explain the parts?
Code:
# @(#)cshrc 1.11 89/11/29 SMI

It is at the top of a the .cshrc of a new Solaris account I am working on.
I am familiar with using the first line of a script for setting the program/shell to use. Example: #!/bin/csh or #!/bin/sh or #!/ben/perl.
I am also familiar with leaving the first line blank or adding a comment. For .cshrc (opposed to my_script.csh) I just start with a # comment line.

Searching the internets, I see lots of examples of .cshrc posted that begin with this line, but I have not found anybody who explains what it is doing or where it comes from. The best I tell, it is just a comment. But why does it appear at the beginning of so many .cshrc files?

Last edited by fgrirx; 08-13-2013 at 07:02 PM.. Reason: bad grammer and misspelling
 
af_misc(3)						    Attribute Filesystem (AtFS) 						af_misc(3)

NAME
af_afname, af_afpath, af_aftype, af_afuser, af_setarchpath, af_version - miscellaneous AtFS functions SYNOPSIS
#include <atfs.h> char *af_afname (char *path) char *af_afpath (char *path) char *af_aftype (char *path) Af_user*af_afuser (uit_t uid) char *af_setarchpath (char *path) char *af_version (void) DESCRIPTION
The functions af_afname, af_afpath and af_aftype extract name, syspath or type from a given (operating system dependent) file identifica- tion. In an UNIX environment, a given pathname of the form /usr/lib/libatfs.a leads to afname libatfs, afpath /usr/lib and aftype a. If no path (eg. otto.c), or no type (eg. /usr/hugo/Makefile) is given, the corresponding routine returns an empty string. A period as first character in a filename is always considered to be part of the name (e.g. .cshrc has the name .cshrc and an empty type string). "." and ".." are recognized as names. Archive file extensions and AtFS specific path extensions are stripped from the resulting name resp. pathname. Note: af_afname, af_afpath and af_aftype use static memory for the returned results. Subsequent calls of the same function overwrite for- mer results. af_afuser returns an AtFS user identification which consists of the login name of the user identified by uid, the current host and the cur- rent domain. Uid_t is defined according to the return type of getuid (2) on your system. The Af_user type has the following structure typedef struct { charaf_username[MAXUSERNAMELEN]; charaf_userhost[MAXHOSTNAMELEN]; charaf_userdomain[MAXDOMAIN+1]; } Af_user; af_setarchpath defines the location of the AtFS archive files. A nil-pointer given as path-argument clears the former setting of the global archive path. af_setarchpath returns the old global archive path. Initially, no global archive path is set. In this case, all archive files are stored in a subdirectory called AtFS, relative to the directory where corresponding busy version resides. af_version returns a string that names the version and the creator of the currently used AtFS library. SEE ALSO
getuid(2) AtFS-1.71 Fri Jun 25 14:33:12 1993 af_misc(3)
All times are GMT -4. The time now is 11:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy