Sponsored Content
Full Discussion: For Kelam_Magnus
Contact Us Post Here to Contact Site Administrators and Moderators For Kelam_Magnus Post 57852 by chekeitout on Monday 8th of November 2004 07:43:33 PM
Old 11-08-2004
For Kelam_Magnus

It is not my intention to cheat the system. yes, you are correct that it is a homework question, on attempting the problem , i read through 6 chapters of my book and put in an entire saturday, 10 hrs trying to figure tthis out and I still got no where. Just like any language i have been through c++ and java, to know how to code you must be taught and shown some example to understand how to do the code correctly, as in can i use c++ in my unix, i didnt even know until i asked someone out of class. Im taking an intro course, and the assigment is 7 scripts , this one is one of them in which i have already finished 5 on my own, i have this one and another. So please do not judge someone before you know, and actually it would be nice if you left that thread open so i could see other example and learn.

another unix learner, cam , but yes I do see your concern. ohh and i had to do it this way, cause i couldnt post a reply to my thread, im not sure why. have a good night
 

We Also Found This Discussion For You

1. Post Here to Contact Site Administrators and Moderators

Kelam_Magnus

Why did you close all my threads? I undstand that since you may be an advanced unix user, that my questions seem dumb. Hey, they probably are. But the title of the forum is " UNIX for Dummies Questions & Answers" and it says "All UNIX Newbies Welcome !!" So what is the prob? I dont think... (7 Replies)
Discussion started by: LANSTARR.COM
7 Replies
INTRO(9)						   BSD Kernel Developer's Manual						  INTRO(9)

NAME
intro -- introduction to system kernel interfaces DESCRIPTION
This section contains information about the interfaces and subroutines in the kernel. PROTOTYPES ANSI-C AND ALL THAT Yes please. We would like all code to be fully prototyped. If your code compiles cleanly with cc -Wall we would feel happy about it. It is important to understand that this isn't a question of just shutting up cc, it is a question about avoiding the things it complains about. To put it bluntly, don't hide the problem by casting and other obfuscating practices, solve the problem. INDENTATION AND STYLE
Believe it or not, there actually exists a guide for indentation and style. It isn't generally applied though. We would appreciate if people would pay attention to it, and at least not violate it blatantly. We don't mind it too badly if you have your own style, but please make sure we can read it too. Please take time to read style(9) for more information. NAMING THINGS
Some general rules exist: 1. If a function is meant as a debugging aid in DDB, it should be enclosed in #ifdef DDB #endif /* DDB */ And the name of the procedure should start with the prefix DDB_ to clearly identify the procedure as a debugger routine. SCOPE OF SYMBOLS
It is important to carefully consider the scope of symbols in the kernel. The default is to make everything static, unless some reason requires the opposite. There are several reasons for this policy, the main one is that the kernel is one monolithic name-space, and pollution is not a good idea here either. For device drivers and other modules that don't add new internal interfaces to the kernel, the entire source should be in one file if possi- ble. That way all symbols can be made static. If for some reason a module is split over multiple source files, then try to split the module along some major fault-line and consider using the number of global symbols as your guide. The fewer the better. SEE ALSO
style(9) HISTORY
The intro section manual page appeared in FreeBSD 2.2. BSD
December 13, 1995 BSD
All times are GMT -4. The time now is 04:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy