#inlcude Flashcards

1
Q

Whats the include for standard input/output?

A

<stdio.h>
</stdio.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Whats the include for memory allocation and program control (exit, abort)?

A

<stdlib.h>
</stdlib.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats the include for POSIX API like fork(), exec(), pipe()

A

<unistd.h>
</unistd.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Whats the include for signals? like SIGINT, SIGKILL?

A

<signal.h>
</signal.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Whats the include for file control options? like open()

A

<fcntl.h>
</fcntl.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Whats the include for data types used in syste mcalls? like pid_t size_t?

A

<sys/types.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Whats the include for macros and fucntions for parent/child processes?

A

<sys/wait.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Whats the include for stat() and chmod()?

A

<sys/stat.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Whats the include for things like memory management function like mmap()?

A

<sys/mman.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Whats the include for socket programing?

A

<sys/socket.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Whats the include for manipulating IP addresses?

A

<arpa/inet.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Whats the include for IPv4 and IPv6?

A

<netinet/in.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Whats the include for managing system resources?

A

<sys/resource.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Whats the include for measuring time?

A

<sys/time.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Whats the include for for handling timestamps and conversions?

A

<time.h>
</time.h>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Whats the include for for retrieving user account information like getpwnam()? pwd

A

<pwd.h>
</pwd.h>

17
Q

Whats the include for things like grep?

A

<grp.h>
</grp.h>

18
Q

Whats the include for errno and reporting errors?

A

<errno.h>
</errno.h>

19
Q

Name me 7 functions in String.h

A

strcmp(), strlen(), strcpy(), strncpy(), strcat(), strncmp(), memcpy()