File: pty_decls.diff

package info (click to toggle)
freebsd-libs 10.3~svn296373-10
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 6,564 kB
  • ctags: 9,832
  • sloc: ansic: 107,913; makefile: 1,101; sh: 72
file content (20 lines) | stat: -rw-r--r-- 908 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/lib/libutil/libutil.h
+++ b/lib/libutil/libutil.h
@@ -94,7 +94,7 @@
 int	extattr_string_to_namespace(const char *_string, int *_attrnamespace);
 int	flopen(const char *_path, int _flags, ...);
 int	forkpty(int *_amaster, char *_name,
-	    struct termios *_termp, struct winsize *_winp);
+	    const struct termios *_termp, const struct winsize *_winp);
 void	hexdump(const void *_ptr, int _length, const char *_hdr, int _flags);
 int	humanize_number(char *_buf, size_t _len, int64_t _number,
 	    const char *_suffix, int _scale, int _flags);
@@ -112,7 +112,7 @@
 int	kld_load(const char *_name);
 int	login_tty(int _fd);
 int	openpty(int *_amaster, int *_aslave, char *_name,
-	    struct termios *_termp, struct winsize *_winp);
+	    const struct termios *_termp, const struct winsize *_winp);
 int	pidfile_close(struct pidfh *_pfh);
 int	pidfile_fileno(const struct pidfh *_pfh);
 struct pidfh *