-
Notifications
You must be signed in to change notification settings - Fork 16
/
coding_standerds.txt
62 lines (55 loc) · 1.47 KB
/
coding_standerds.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Defining Macros:
It should start with NT (Which stands for NEKTech).
e.g. NEKTech_MAX_PATH
Defining functions and global variable:
It should stat with nektech
e.g. nektech_change_dir()
Comment Sections standards:
Example of Format for new functions:
/*
*NEKTech Research Labs
*
*Function name : nektech_etc_passwd_search()
*Description : This fuction is used for getting home directory path
* from /etc/passwd file.
*
*working : 1. open /etc/passwd file
* 2. store line till '\n' character
* 3. then call nektech_search_path(char *ptr,int userid)
* 4. which give path in global variable nk_temp_arg[1]
* 5. it is used in change_dir function.
*
*Developer : jitendra khasdev
*
*/
------------
Example of Format for new Structures:
/*
*NEKTech Research Labs
*
*Structure name :
*Description :
*Developer :
*
*/
----------
Example of Format of header for new files:
/*
* filename - Linux Shell
*
* Copyright (C) NEK Tech 2013
* Developers V1.0:
*
* Copyright (C) NEK Tech 2014
* Developer V2.0:
*
* Author and Architect: Pankaj Saraf
*
* This program is free software; you can redistribute it and/or modify
* it under the terms and conditions of NEK Tech.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
*/