|
Lines 201-206
tcsendbreak(int fd, int duration)
Link Here
|
| 201 |
} |
201 |
} |
| 202 |
#endif /* HAVE_TCSENDBREAK */ |
202 |
#endif /* HAVE_TCSENDBREAK */ |
| 203 |
|
203 |
|
|
|
204 |
#ifndef HAVE_UNSETENV |
| 205 |
void |
| 206 |
unsetenv(const char *name) |
| 207 |
{ |
| 208 |
extern char **environ; |
| 209 |
char **curenv, **moveenv; |
| 210 |
size_t len; |
| 211 |
|
| 212 |
len = strlen(name); |
| 213 |
for (curenv = environ; *curenv != NULL; curenv++) { |
| 214 |
if (strncmp(*curenv, name, len) == 0 && (*curenv)[len] == '=') { |
| 215 |
for (moveenv = curenv; *moveenv != NULL; moveenv++) |
| 216 |
*moveenv = *(moveenv + 1); |
| 217 |
curenv--; |
| 218 |
} |
| 219 |
} |
| 220 |
} |
| 221 |
#endif /* HAVE_UNSETENV */ |
| 222 |
|
| 204 |
mysig_t |
223 |
mysig_t |
| 205 |
mysignal(int sig, mysig_t act) |
224 |
mysignal(int sig, mysig_t act) |
| 206 |
{ |
225 |
{ |