Normed stuff
This commit is contained in:
parent
8146ed2176
commit
f925aea552
9 changed files with 23 additions and 25 deletions
|
|
@ -27,7 +27,8 @@ t_fd *dup_fd(t_fd *fd)
|
|||
return (NULL);
|
||||
tmp = dup(fd->fd);
|
||||
if (tmp == -1)
|
||||
return (printf("There was an error while duping the fd %d `%s`\n", fd->fd, fd->name), NULL);
|
||||
return (printf("There was an error while duping the "\
|
||||
"fd %d `%s`\n", fd->fd, fd->name), NULL);
|
||||
slot->ty = SLOT_FD;
|
||||
slot->slot.fd.fd = tmp;
|
||||
slot->slot.fd.perms = fd->perms;
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@
|
|||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef static
|
||||
# undef static
|
||||
#endif
|
||||
|
||||
t_fd_array *get_fd_arrays(void)
|
||||
{
|
||||
static t_fd_array val = {};
|
||||
|
|
|
|||
|
|
@ -21,10 +21,6 @@
|
|||
#include <stdio.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#ifdef static
|
||||
# undef static
|
||||
#endif
|
||||
|
||||
t_fd *get_stdin(void)
|
||||
{
|
||||
t_fd *out;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue