user_id
stringlengths 24
24
| time
stringlengths 24
24
| feature_type
stringclasses 5
values | feature_version
stringclasses 2
values | input_question
stringlengths 1
1.24k
⌀ | input_code
stringlengths 2
18.5k
⌀ | input_intention
stringlengths 1
2.48k
⌀ | input_task_description
stringlengths 18
3.32k
⌀ |
---|---|---|---|---|---|---|---|
63c647ae5f004bf4898cf5c7 | 2023-04-01T03:13:54.257Z | General Question | v2 | How do I get client fd in the waiting list from listen()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T03:36:02.989Z | General Question | v2 | How to loop over set_fd? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T03:50:16.098Z | General Question | v2 | How to find the second largest fd in fd_set? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T16:58:12.749Z | General Question | v2 | Could FD_ISSET() prevent the program from being blocked by read()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T16:59:58.299Z | General Question | v2 | How to prevent a program from being blocked by accept()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T19:36:20.082Z | General Question | v2 | How to reconnect a client to their previous client fd? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T20:18:33.208Z | General Question | v2 | How to avoid redefinition from a header file? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T20:20:12.414Z | General Question | v2 | How to avoid function redefinition from a header file? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T23:18:30.228Z | General Question | v2 | Can a server keep track of multiple client sockets at once after calling select() and FD_ISSET()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T23:32:57.529Z | General Question | v2 | Do I need to malloc an int member inside a struct? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-01T23:45:38.221Z | General Question | v2 | Arguments of read()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T01:03:09.377Z | Help Fix Code | v2 | new_user->sock_fd should be assigned with int fd | Usersockname *new_user = to_malloc(sizeof(Usersockname)); // to_malloc is from friends.c
new_user->username = to_malloc(strlen(name) + 1);
new_user->sock_fd = to_malloc(sizeof(int));
new_user->next = to_malloc(sizeof(Usersockname));
// There was a previous check on length size, so no need to recheck it again
strncpy(new_user->username, name, strlen(name) + 1); // name has max length MAX_NAME - 1
new_user->username[strlen(name)] = '\0'; // Null terminate
*(new_user->sock_fd) = fd; | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T02:12:58.616Z | General Question | v2 | Do I have to malloc the ptr to the first node of linked list? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T02:18:16.939Z | General Question | v2 | Malloc but still cannot hold memory | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T02:20:58.658Z | General Question | v2 | Is it a good idea to use malloc() inside a local scope? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T02:21:41.091Z | General Question | v2 | How should I malloc the ptr to the first node of array list? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T02:22:15.408Z | General Question | v2 | How should I malloc the double ptr to the first node of array list? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T15:26:02.576Z | General Question | v2 | When to use dup2() instead of pipe()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T16:07:30.812Z | General Question | v2 | How to properly initialize an array of char without any garbage? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T16:44:18.094Z | General Question | v2 | How to avoid read() from reading a blank line? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T16:45:01.261Z | General Question | v2 | How to check for an empty line in C? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T16:45:54.287Z | General Question | v2 | Should I use fgets() in socket programming? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T16:47:22.890Z | General Question | v2 | How to use strtok() to filter out empty line? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T19:22:52.682Z | General Question | v2 | What does FD_SET do? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T19:27:57.092Z | General Question | v2 | How can a server take care of multiple simultaneously requests from different clients at once? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T19:41:22.753Z | General Question | v2 | I used select(), FD_SET() and FD_ISSET() but server still ignores upcoming requests | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-04T20:12:25.416Z | General Question | v2 | Should I malloc a char[]? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T02:29:39.306Z | General Question | v2 | When does read() return -1? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T02:45:40.668Z | General Question | v2 | Will close(fd) also close the pipe? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T03:02:15.722Z | General Question | v2 | Why FD_SET() does not add new fd into fd_set? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T12:43:41.569Z | General Question | v2 | why double free or corruption (out) when I only free() for the first time? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T12:58:27.850Z | General Question | v2 | When does free() gives corrupted error? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T13:25:49.649Z | General Question | v2 | Could I copy a malloced string to a stack-allocated string? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T18:58:53.275Z | General Question | v2 | Could I use strlen() on just dynamically allocated string without any input? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T18:59:56.304Z | General Question | v2 | How to tell if a malloced string is empty or not? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T19:00:35.544Z | General Question | v2 | Is all malloced string initialized with null characters? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-05T20:08:22.725Z | General Question | v2 | Does memset() affect malloced string? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T00:35:52.449Z | General Question | v2 | Will strtok() return a stack-allocated string after tokenizing heap-allocated string? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:06:03.166Z | General Question | v2 | What does select() return where there is a signal from a client? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:12:19.829Z | General Question | v2 | How to know how many clients are talking via select() and FD_ISSET()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:20:26.388Z | General Question | v2 | Should the server call accept() multiple times on the same client? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:22:25.095Z | General Question | v2 | How to use the fcntl() function with the O_NONBLOCK flag for non-blocking select() call? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:28:39.696Z | General Question | v2 | How should I use fcntl() in socket programming?
| null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:29:35.485Z | General Question | v2 | How to use fcntl() with multiple fds? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:41:33.530Z | General Question | v2 | Why fcntl() leads to broken pipe? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:43:15.899Z | General Question | v2 | How to make a server unblocking on read() call from multiple clients? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T01:48:22.446Z | General Question | v2 | I used select() and FD_ISSET() but the server still blocks inputs from clients? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:02:10.895Z | General Question | v2 | What makes select() call knows a client is ready to read? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:07:20.372Z | General Question | v2 | What is the point of using FD_ISSET() after select() call? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:15:47.384Z | General Question | v2 | How to make a read() call unblocking? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:16:57.941Z | General Question | v2 | How to use fcntl()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:27:22.232Z | General Question | v2 | How to know if the read() call is blocking? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:30:15.718Z | General Question | v2 | Is the server socket fd always set at 3? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:31:08.346Z | General Question | v2 | is select() a blocking function? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:31:53.810Z | General Question | v2 | How to set out a timeout for select()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T02:34:23.889Z | General Question | v2 | what does select() return after being timed out? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T04:45:51.676Z | General Question | v2 | Why the server keeps ignoring clients' call even though using select(), FD_iSSET() and reset the set_fd to the original set_fd? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T04:47:54.165Z | General Question | v2 | How to use FD_COPY()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T04:48:59.740Z | General Question | v2 | What are the parameters of FD_COPY()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T04:55:39.753Z | General Question | v2 | How to copy a set_fd object? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T12:43:04.763Z | General Question | v2 | Why timeout (struct timeval) only waits on the first call of select() with a given client fd? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T14:57:15.211Z | General Question | v2 | Does select() save the ready-to-read fd to its parameters? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-06T15:13:19.336Z | General Question | v2 | How to print out every fd inside fd_set? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-22T20:27:45.737Z | General Question | v2 | why does strtol need pointer to char array? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-22T20:38:44.778Z | General Question | v2 | What happens if I pass string of 0 to strtol? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-22T23:37:10.079Z | General Question | v2 | What happens if I pass a NULL endptr to strtol()?
| null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-22T23:53:29.243Z | General Question | v2 | Does strtol read negative values? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-22T23:54:12.565Z | General Question | v2 | when does strtol return an error? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-22T23:55:59.144Z | General Question | v2 | Does strtol return an error if there is a non-numeric value in a string? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T01:15:46.787Z | General Question | v2 | What happens if errno is not 0? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T01:38:05.809Z | General Question | v2 | Which process id pick up orphanage processes? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T01:46:39.465Z | General Question | v2 | Is waitpid() a blocking function? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T01:50:08.578Z | General Question | v2 | Does waitpid return 0 mean that pid process is an orphan? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T01:54:39.932Z | General Question | v2 | What return status of waitpid indicate that pid process is a zombie? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:03:58.602Z | General Question | v2 | How do we call pipe in C? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:14:05.594Z | General Question | v2 | When does pipe() return -1? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:20:34.051Z | General Question | v2 | Is a newer pid always greater than the older ones? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:22:08.963Z | General Question | v2 | Are system calls returning -1 as errors? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:24:30.194Z | General Question | v2 | What happens if I close a closed fd? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:25:39.636Z | General Question | v2 | What happens if I close a non-existent fd? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T03:28:58.750Z | General Question | v2 | How to close all previously forked children processes? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T15:58:01.970Z | General Question | v2 | Why do I need to pass in ptr to read() and write() call? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T15:59:03.219Z | General Question | v2 | What does buffer do in write() and read()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:01:16.517Z | General Question | v2 | What does buffer do in read()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:07:26.449Z | General Question | v2 | When does waitpid() return -1? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:08:42.630Z | General Question | v2 | How to use WNOHANG with waitpid()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:21:31.050Z | General Question | v2 | Why does wait() need a ptr to status? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:22:52.785Z | General Question | v2 | Use wait() with WIFEXITED and WEXITSTATUS | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:25:32.569Z | General Question | v2 | What argument does WEIXTSTATUS take? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T16:26:46.818Z | General Question | v2 | What argument does WEXITSTATUS take? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T17:17:59.346Z | General Question | v2 | open() vs. fopen()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T17:21:09.605Z | General Question | v2 | What does dup2() do in C? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T17:53:01.112Z | General Question | v2 | How to use execl()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-23T17:55:19.998Z | General Question | v2 | What are the parameters of waitpid()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-24T00:23:53.643Z | General Question | v2 | sigaddset() and sigemptyset() in C? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-24T00:25:17.447Z | General Question | v2 | sigprocmask()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-24T00:35:00.431Z | General Question | v2 | Does sigprocmask() block a signal from reaching a process? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-24T03:04:24.196Z | General Question | v2 | What does sigprocmask()? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-24T03:06:40.563Z | General Question | v2 | what does SIG_BLOCK do? | null | null | null |
63c647ae5f004bf4898cf5c7 | 2023-04-24T03:07:27.032Z | General Question | v2 | What does SIG_SETMASK do? | null | null | null |
Subsets and Splits