Changeset 3275 for vendor/bash
- Timestamp:
- May 1, 2007, 7:20:54 PM (18 years ago)
- Location:
- vendor/bash/3.1-p17
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/bash/3.1-p17/builtins/Makefile.in
r3232 r3275 211 211 212 212 psize.aux: psize.c 213 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD)-o $@ $(srcdir)/psize.c213 $(CC_FOR_BUILD) $(CCFLAGS_FOR_BUILD) -o $@ $(srcdir)/psize.c 214 214 215 215 documentation: builtins.texi -
vendor/bash/3.1-p17/findcmd.c
r3232 r3275 235 235 int flags; 236 236 { 237 #if defined __WIN32__ || defined __OS2__237 #ifdef __WIN32__ 238 238 char *res, *dotexe; 239 239 -
vendor/bash/3.1-p17/general.c
r3232 r3275 663 663 are handled OK by the `else' part of the if statement; an empty 664 664 string is returned in that case. */ 665 #ifndef __OS2__666 665 if (i && string[i] == ':') 667 666 i++; … … 669 668 for (start = i; string[i] && string[i] != ':'; i++) 670 669 ; 671 672 #else /* __OS2__ */673 if (i && (string[i] == ':' || string[i] ==';'))674 i++;675 676 /* In OS/2, interpret either `:' or `;' as separator, except when677 the `:' looks like part of a drive letter. */678 for (start = i;; i++)679 {680 if (!string[i])681 break;682 if (string[i] == ';')683 break;684 if (string[i] != ':')685 continue;686 if (i - start != 1)687 break;688 if (!isalpha (string[i - 1]))689 break;690 }691 #endif /* __OS2__ */692 670 693 671 *p_index = i; -
vendor/bash/3.1-p17/jobs.c
r3244 r3275 32 32 #if defined (HAVE_UNISTD_H) 33 33 # include <unistd.h> 34 #endif35 36 #ifdef __OS2__37 extern int _setpgid(pid_t pid, pid_t pgid);38 34 #endif 39 35 … … 1604 1600 map_over_jobs (print_job, format, -1); 1605 1601 } 1606 1607 #ifdef __OS2__1608 /* Overrides the kLIBC setpgid() ENOSYS stub. This implements the1609 simple calls that requires no real work. */1610 int1611 setpgid (pid, pgid)1612 pid_t pid, pgid;1613 {1614 /* FIXME: if ppid != getpid(), check that it exists. */1615 if (pid == pgid || pgid == getpid())1616 return 0;1617 return _setpgid (pid, pgid);1618 }1619 #endif1620 1602 1621 1603 /* Fork, handling errors. Returns the pid of the newly made child, or 0. -
vendor/bash/3.1-p17/lib/readline/input.c
r3232 r3275 443 443 unsigned char c; 444 444 445 #if defined (__OS2__)446 if (isatty (fileno (stream)) )447 {448 static const char *esq_seq[] =449 { "\033[A", "\033[B", "\033[C", "\033[D"450 , "\033[H", "\033[F"451 , "\033[4h" };452 static const char *esq = NULL;453 if (esq)454 {455 c = *esq++;456 if (*esq == '\0')457 esq = NULL;458 }459 else460 {461 for (;;)462 {463 result = _read_kbd (0, 1, 0);464 if (result == 0)465 {466 int no;467 result = _read_kbd (0, 1, 0);468 switch (result)469 {470 case 'H': no = 0; break; // Arrow Up471 case 'P': no = 1; break; // Arrow Down472 case 'M': no = 2; break; // Arrow Left473 case 'K': no = 3; break; // Arrow Right474 case 'G': no = 4; break; // Home key475 case 'O': no = 5; break; // End key476 case 'R': no = 6; break; // Insert key477 default: continue;478 }479 esq = esq_seq[no];480 c = *esq++;481 break;482 }483 else484 {485 if (result == 0x1A)486 return (EOF); // Ctrl-Z487 c = result;488 break;489 }490 }491 }492 return (c);493 }494 #endif495 496 445 while (1) 497 446 { -
vendor/bash/3.1-p17/lib/readline/readline.c
r3253 r3275 172 172 and the attributes include `echo'. Look at rltty.c:prepare_terminal_settings 173 173 for the code that sets it. */ 174 #if defined (__OS2__)175 int readline_echoing_p = 1;176 #else177 174 int readline_echoing_p = 0; 178 #endif179 175 180 176 /* Current prompt. */ … … 1093 1089 rl_bind_keyseq_if_unbound ("\033[H", rl_beg_of_line); 1094 1090 rl_bind_keyseq_if_unbound ("\033[F", rl_end_of_line); 1095 #if defined (__OS2__)1096 rl_bind_keyseq_if_unbound ("\033[4h", rl_overwrite_mode);1097 #endif1098 1091 1099 1092 rl_bind_keyseq_if_unbound ("\033OA", rl_get_previous_history); -
vendor/bash/3.1-p17/lib/sh/netconn.c
r3232 r3275 39 39 #if defined (HAVE_SYS_SOCKET_H) && defined (HAVE_GETPEERNAME) && !defined (SVR4_2) 40 40 # include <sys/socket.h> 41 #endif42 43 #ifdef __OS2__44 typedef __socklen_t socklen_t;45 41 #endif 46 42
Note:
See TracChangeset
for help on using the changeset viewer.