Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mysh-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
최지원
mysh-1
Commits
3d52fed3
Commit
3d52fed3
authored
7 years ago
by
최지원
Browse files
Options
Downloads
Patches
Plain Diff
Final_1(header)
parent
ed7fb4db
No related branches found
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
include/built_in.h
+3
-0
3 additions, 0 deletions
include/built_in.h
include/commands.h
+2
-0
2 additions, 0 deletions
include/commands.h
include/signal_handlers.h
+1
-0
1 addition, 0 deletions
include/signal_handlers.h
test
+0
-0
0 additions, 0 deletions
test
test.c
+11
-0
11 additions, 0 deletions
test.c
with
17 additions
and
0 deletions
include/built_in.h
+
3
−
0
View file @
3d52fed3
...
...
@@ -3,6 +3,9 @@
typedef
int
(
*
built_in_command_do
)(
int
,
char
**
);
typedef
int
(
*
built_in_command_validate
)(
int
,
char
**
);
extern
int
pid_num
;
//extern int back_num=0;
extern
char
running_command
[
512
];
struct
built_in_command
{
...
...
This diff is collapsed.
Click to expand it.
include/commands.h
+
2
−
0
View file @
3d52fed3
...
...
@@ -7,6 +7,8 @@ struct single_command
char
**
argv
;
};
extern
int
running
;
int
evaluate_command
(
int
n_commands
,
struct
single_command
(
*
commands
)[
512
]);
void
free_commands
(
int
n_commands
,
struct
single_command
(
*
commands
)[
512
]);
...
...
This diff is collapsed.
Click to expand it.
include/signal_handlers.h
+
1
−
0
View file @
3d52fed3
...
...
@@ -5,4 +5,5 @@ void catch_sigint(int signalNo);
void
catch_sigtstp
(
int
signalNo
);
void
signal_setting
();
#endif // SIGNAL_H_
This diff is collapsed.
Click to expand it.
test
0 → 100755
+
0
−
0
View file @
3d52fed3
File added
This diff is collapsed.
Click to expand it.
test.c
0 → 100644
+
11
−
0
View file @
3d52fed3
#include
<stdio.h>
#include
<string.h>
#include
<unistd.h>
void
main
(){
while
(
1
){
printf
(
"background
\n
"
);
sleep
(
5
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment