Flash cards

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:43 PM on 7/22/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

26 Terms

1
New cards

yylex()

The primary scanner function generated by Flex that reads input characters and converts them into tokens.

2
New cards

symlook(char *s)

Searches a symbol table for a given identifier string; if not found, it inserts a new entry into the table.

3
New cards

addfunc(char name, double (func)())

Registers and binds a function pointer to a specific identifier name in the symbol table.

4
New cards

yyerror(char *s)

A standard error reporting routine invoked when a syntax or scanning error is encountered.

5
New cards

socket(int domain, int type, int protocol)

Creates an endpoint for network communication and returns a file descriptor.

6
New cards

setsockopt(int sockfd, int level, int optname, const void *optval, socklen_t optlen)

Manipulates configuration options on a socket, such as allowing local address reuse.

7
New cards

bind(int sockfd, const struct sockaddr *addr, socklen_t addrlen)

Assigns a local IP address and port number to a socket.

8
New cards

listen(int sockfd, int backlog)

Marks the socket as passive, ready to accept incoming client requests.

9
New cards

accept(int sockfd, struct sockaddr *addr, socklen_t *addrlen)

Extracts the first connection request from the queue and creates a new connected socket descriptor.

10
New cards

connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen)

Initiates a TCP connection request to a remote listening server socket.

11
New cards

read(int fd, void *buf, size_t count)

Reads data from a file descriptor or connected socket into a memory buffer.

12
New cards

write(int fd, const void *buf, size_t count)

Writes data from a memory buffer to a file descriptor or connected socket.

13
New cards

open(const char *pathname, int flags)

Opens a file and returns a new file descriptor.

14
New cards

dup2(int oldfd, int newfd)

Duplicates oldfd onto newfd, redirecting input or output streams.

15
New cards

pipe(int pipefd[2])

Creates a unidirectional data channel for interprocess communication.

16
New cards

fork(void)

Creates an exact duplicate child process.

17
New cards

execvp(const char *file, char *const argv[])

Replaces current process image with a new executable program.

18
New cards

wait(int *status)

Suspends execution of calling process until one of its child processes terminates.

19
New cards

close(int fd)

Closes an open file descriptor, releasing system resource handles.

20
New cards

AF_INET

Constant specifying the IPv4 protocol family.

21
New cards

AF_UNIX

Constant specifying local filesystem communication sockets (UNIX domain sockets) on the local host.

22
New cards

serv_addr.sin_family

Member of struct sockaddr_in that stores the designated address family.

23
New cards

serv_addr.sin_addr

Member structure inside sockaddr_in containing the 32-bit IP address field.

24
New cards

INADDR_ANY

Wildcard IP address constant instructing a server to bind across all available local network interfaces.

25
New cards

htonl(uint32_t hostlong)

Converts a 32-bit integer from the host's native byte order to Network Byte Order.

26
New cards

htons(uint16_t hostshort)

Converts a 16-bit integer from host native byte order to Network Byte Order.