Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

nfcomment(3) [bsd man page]

NFCOMMENT(3)						     Library Functions Manual						      NFCOMMENT(3)

NAME
nfcomment - a user interface to the notesfile system SYNOPSIS
nfcomment ( notesfile, text, title, dirflag, anonflag ) char *nfname, *text, *title; cc ... -lnfcom DESCRIPTION
Nfcomment provides user programs with the ability to insert notes into a notesfile. The note is inserted into the notesfile specified by nfname. Text is the address of the body of the note; this must be null-terminated. If text is NULL, the note is gathered from standard input until an EOF is encountered. The note is entered with the title specified by the title parameter. If the dirflag or anonflag parameters are non-zero, the director message is enabled or the note is entered anony- mously. These take effect only if the user has the appropriate priviledges in the notesfile. Nfpipe is used to make the actual insertion of the text. FILES
/usr/lib/libnfcom.a -lnfcom library SEE ALSO
nfpipe(1), notes(1), popen(3S), system(3), The Notesfile Reference Manual AUTHORS
Ray Essick (uiucdcs!essick, essick%uiuc@csnet-relay.arpa) Department of Computer Science University of Illinois at Urbana-Champaign Urbana, IL Rob Kolstad (kolstad@convex.UUCP) CONVEX Computer Corporation Richardson, TX University of Illinois NFCOMMENT(3)

Check Out this Related Man Page

NFABORT(3)						     Library Functions Manual							NFABORT(3)

NAME
nfabort - dump core and log it in a notesfile SYNOPSIS
nfabort ( notesfile, message, title, cname, exitcode ) char *notesfile, *message, *title, *cname, exitcode cc ... -lnfcom DESCRIPTION
Nfabort provides user programs with a convenient way to generate a core image, move it to a save place, and log the action in a notesfile. The notesfile parameter specifies the notesfile to receive a copy of the string message with a line appended detailing the final resting place of the core image. The text is inserted into the notesfile as a base note with title taken from the parameter list. Cname is the prefix of the pathname of where to place the core image. This is suffixed with ``.integer'' to yield the full pathname. The integer is generated from the pid of the current process. After generating and saving the core image and placing the message in the notesfile, nfabort terminates the current process with the exit code specified by the exitcode parameter. Nfabort calls nfcomment to insert the message into the notesfile. BUGS
Certain conditions, such as running out of memory, will cause nfabort to fail. Nfabort will fail to log the message if it can't fork a child process. The final resting place of the core image will not be logged if nfabort can't allocate memory for temporary strings. FILES
/usr/lib/libnfcom.a -lnfcom library SEE ALSO
malloc(3), nfcomment(3), nfpipe(1), notes(1), popen(3S), system(3), The Notesfile Reference Manual AUTHORS
Ray Essick (uiucdcs!essick, essick%uiuc@csnet-relay.arpa) Department of Computer Science University of Illinois at Urbana-Champaign Urbana, IL University of Illinois NFABORT(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Aggregate title to an archive.log

Hello how are you, i have a question i have a file ale.log and i want to agregate a title and later a space when the text is over and put another title (when the text is over) how can i do this? thank you Example Last ------>(Title) i want to agregate pupu pupu pupu pupu... (1 Reply)
Discussion started by: enkei17
1 Replies

2. What is on Your Mind?

Looking for cartoon

Hey, I was just reminded to something: Years ago I have seen a cartoon, maybe dilbert-style?, with a couple of nerds talking. The title was "Computer-people probably aliens?" and the guys were saying all kinds of unix-commands with funny sounds, like gawk, grep, sed, awk and so on. Does... (0 Replies)
Discussion started by: PatrickBaer
0 Replies

3. Shell Programming and Scripting

How to put content of file into a variable?

For example, I have a simple text file note: this a note a simple note a very very simple notewhen I use this command, temp=$(cat "note.txt")then I echo temp, the result is in one line. echo $temp note: this a note a simple note a very very simple noteMy variable doesn't have newline. How... (7 Replies)
Discussion started by: 14th
7 Replies

4. Shell Programming and Scripting

Checking whether the entered text is file or not

how to check that the "file path" entered by the user has the valid file. (6 Replies)
Discussion started by: Rashid Khan
6 Replies

Featured Tech Videos