diff options
| author | Paul Eggert | 2019-07-07 12:29:27 -0700 |
|---|---|---|
| committer | Paul Eggert | 2019-07-07 12:33:35 -0700 |
| commit | 8f522efe9a963cd3523ea6863f9bd44881cdf6b7 (patch) | |
| tree | 10ba28c937e142395bcc4d81580d24fa334e1227 /src/sysdep.c | |
| parent | bda8a57141e6cb5455e1246c6ab394791fd6c582 (diff) | |
| download | emacs-8f522efe9a963cd3523ea6863f9bd44881cdf6b7.tar.gz emacs-8f522efe9a963cd3523ea6863f9bd44881cdf6b7.zip | |
Remove printmax_t etc.
printmax_t etc. were needed only for platforms that lacked
support for printing intmax_t. These platforms are now so
obsolete that they are no longer practical porting targets.
* src/image.c (gs_load): Fix unlikely buffer overrun
discovered while making these changes. It was introduced in
2011-07-17T00:34:43!eggert@cs.ucla.edu.
* src/lisp.h (printmax_t, uprintmax_t, pMd, pMu, pMx):
Remove. All uses replaced by their standard counterparts
intmax_t, uintmax_t, PRIdMAX, PRIuMAX, PRIxMAX.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index 48eebb594f7..c7d7eefc2ab 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -3269,7 +3269,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 3269 | char *cmdline = NULL; | 3269 | char *cmdline = NULL; |
| 3270 | ptrdiff_t cmdline_size; | 3270 | ptrdiff_t cmdline_size; |
| 3271 | char c; | 3271 | char c; |
| 3272 | printmax_t proc_id; | 3272 | intmax_t proc_id; |
| 3273 | int ppid, pgrp, sess, tty, tpgid, thcount; | 3273 | int ppid, pgrp, sess, tty, tpgid, thcount; |
| 3274 | uid_t uid; | 3274 | uid_t uid; |
| 3275 | gid_t gid; | 3275 | gid_t gid; |
| @@ -3284,7 +3284,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 3284 | 3284 | ||
| 3285 | CHECK_NUMBER (pid); | 3285 | CHECK_NUMBER (pid); |
| 3286 | CONS_TO_INTEGER (pid, pid_t, proc_id); | 3286 | CONS_TO_INTEGER (pid, pid_t, proc_id); |
| 3287 | sprintf (procfn, "/proc/%"pMd, proc_id); | 3287 | sprintf (procfn, "/proc/%"PRIdMAX, proc_id); |
| 3288 | if (stat (procfn, &st) < 0) | 3288 | if (stat (procfn, &st) < 0) |
| 3289 | return attrs; | 3289 | return attrs; |
| 3290 | 3290 | ||
| @@ -3505,7 +3505,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 3505 | struct psinfo pinfo; | 3505 | struct psinfo pinfo; |
| 3506 | int fd; | 3506 | int fd; |
| 3507 | ssize_t nread; | 3507 | ssize_t nread; |
| 3508 | printmax_t proc_id; | 3508 | intmax_t proc_id; |
| 3509 | uid_t uid; | 3509 | uid_t uid; |
| 3510 | gid_t gid; | 3510 | gid_t gid; |
| 3511 | Lisp_Object attrs = Qnil; | 3511 | Lisp_Object attrs = Qnil; |
| @@ -3514,7 +3514,7 @@ system_process_attributes (Lisp_Object pid) | |||
| 3514 | 3514 | ||
| 3515 | CHECK_NUMBER (pid); | 3515 | CHECK_NUMBER (pid); |
| 3516 | CONS_TO_INTEGER (pid, pid_t, proc_id); | 3516 | CONS_TO_INTEGER (pid, pid_t, proc_id); |
| 3517 | sprintf (procfn, "/proc/%"pMd, proc_id); | 3517 | sprintf (procfn, "/proc/%"PRIdMAX, proc_id); |
| 3518 | if (stat (procfn, &st) < 0) | 3518 | if (stat (procfn, &st) < 0) |
| 3519 | return attrs; | 3519 | return attrs; |
| 3520 | 3520 | ||