]> sourceware.org Git - newlib-cygwin.git/blame - winsup/cygwin/ChangeLog
* common.h: Change registry@sco.com to registry@caldera.com.
[newlib-cygwin.git] / winsup / cygwin / ChangeLog
CommitLineData
f7a7cc90
CF
12002-06-05 Christopher Faylor <cgf@redhat.com>
2
3 * child_info.h (CHILD_INFO_MAGIC): Oops. Revert previous change. gcc
4 3.1 bug?
5
784e340c
CF
62002-06-05 Christopher Faylor <cgf@redhat.com>
7
8 * child_info.h (CHILD_INFO_MAGIC): Update.
9
58fcd93a
CF
102002-06-05 Christopher Faylor <cgf@redhat.com>
11
12 * strace.cc (strace::hello): Set inited, when appropriate.
13
ee964e2f
CF
142002-06-05 Christopher Faylor <cgf@redhat.com>
15
16 * cygwin.din: Eliminate some newlib wrappers.
17 * path.cc (get_devn): Only consider first 99 potential com devices.
18 (get_device_number): Ditto.
19 * times.cc (_times): Eliminate.
20 (_times): Renamed from times().
21
ea4e6ec8
CF
222002-06-05 Christopher Faylor <cgf@redhat.com>
23
24 * dir.cc (rmdir): Streamline. Detect attempts to remove directories
25 from "read-only" virtual devices. (Suggested by Pavel Tsekov)
26 * syscalls.cc (unlink): Detect attempts to remove directories
27 from "read-only" virtual devices. (From Pavel Tsekov)
28
2bb6b3e5
CF
292002-06-05 Christopher Faylor <cgf@redhat.com>
30
31 * dtable.cc (handle_to_fn): Check error return value from NtQueryObject
32 first before seeing if name buffer is NULL.
33
34 * grp.cc (read_etc_group): Fix gcc warning regarding snprintf format.
35 * passwd.cc (read_etc_passwd): Ditto.
36
e9259cb2
RC
372002-04-18 Thomas Pfaff <tpfaff@gmx.net>
38
39 * thread.h (pthread::joiner): New member.
40 * thread.cc (pthread::pthread): Initialize joiner to NULL
41 (pthread::create): Increment of thread counter moved from
42 __pthread_create to this location.
43 (__pthread_create): Increment thread counter removed.
44 (thread_init_wrapper): Set joiner to self when thread was created
45 detached.
46 (__pthread_exit): delete thread when it is detached and not
47 joined.
48 (__pthread_join): Check for deadlock and delete thread when it has
49 terminated.
50 (__pthread_detach): Set joiner to self when thread state
51 changed to detached.
52
eceee297
CV
532002-06-05 Corinna Vinschen <corinna@vinschen.de>
54
55 * grp.cc (read_etc_group): When emulating nonexisting group file on
56 NT systems, read primary group SID from process token. Use that info
57 to create correct group entry. On error or on 9x systems fallback
58 to emulating Administrators group as before.
ae1ebb81
CV
59 * passwd.cc (read_etc_passwd): When emulating nonexisting passwd file
60 on NT systems, read user and primary group SID from process token.
61 Use that info to create correct passwd entry. On error or on 9x
62 systems fallback to emulating user with Administrator user id and
63 Administrators group as before.
eceee297 64
38f39368
CV
652002-06-05 Corinna Vinschen <corinna@vinschen.de>
66
67 * grp.cc (etc_group): Removed.
68 (parse_grp): Make line parameter nonconst. Don't copy data into new
69 allocated memory. Check for CR instead of LF to accomodate new
70 read method.
71 (add_grp_line): Make line parameter nonconst.
72 (read_etc_group): Rearrange using new pwdgrp_read class.
73 * passwd.cc (parse_pwd): Don't copy data into new allocated memory.
74 Check for CR instead of LF to accomodate new read method.
75 (read_etc_passwd): Rearrange using new pwdgrp_read class.
76 * pwdgrp.h (pwdgrp_check::set_last_modified): Use different
77 parameters.
78 (class pwdgrp_read): New class for opening and reading passwd and
79 group files.
80
ce006ffa
CF
812002-06-04 Christopher Faylor <cgf@redhat.com>
82
83 * dtable.cc (handle_to_fn): Attempt to handle "raw" accesses to remote
84 shares.
85 * path.cc (mount_info::conv_to_win32_path): Set flags to binary when
86 mount entry is not found.
87 (mount_info::set_flags_from_win32_path): Ditto.
88
147d2ab4
CF
892002-06-04 Christopher Faylor <cgf@redhat.com>
90
91 * dtable.cc (handle_to_fn): Correct placement and length of name
ea4e6ec8 92 buffer. (Suggested by Pavel Tsekov)
147d2ab4 93
e35f391f
CF
942002-06-04 Christopher Faylor <cgf@redhat.com>
95
96 Remove fcntl.h includes throughout.
97 * fhandler.h: Move fcntl.h include here.
98 (fhandler_base::set_flags): Accept supplied_bin argument. Make
99 non-inlined.
100 * dtable.cc (dtable::init_std_file_from_handle): Just use binmode from
101 pc.
102 (reset_to_open_binmode): Use set_flags.
103 * cygwin.din (open): Avoid newlib wrapper.
104 (read): Ditto.
105 (unlink): Ditto.
106 (write): Ditto.
107 * fhandler.cc (fhandler_base::set_flags): Accept supplied_bin argument.
108 Make binmode decisions here.
109 (fhandler_base::open): Avoid using pc if it is NULL. Eliminate binmode
110 logic. Just call set_flags with binmode argument.
111 (fhandler_base::init): Call set_flags with binmode argument.
112 * fhandler_clipboard.cc (fhandler_dev_clipboard::open): Ditto.
113 * fhandler_console.cc (fhandler_console::open): Ditto.
114 (fhandler_console::init): Force binary on open.
115 * fhandler_disk_file.cc (fhandler_disk_file::open): Don't set binmode
116 here. Let it happen in base class.
117 * fhandler_dsp.cc (fhandler_dev_dsp::open): Force binmode open. Set
118 return value appropriately if unable to open.
119 * fhandler_proc.cc (fhandler_proc::open): Make sure flags are set
120 before open_status.
121 * fhandler_process.cc (fhandler_process::open): Ditto.
122 * fhandler_registry.cc (fhandler_registry::open): Ditto.
123 * fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto.
124 * fhandler_raw.cc (fhandler_dev_raw::open): Force O_BINARY by default.
125 * fhandler_serial.cc (fhandler_serial::init): Ditto.
126 * fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
127 (fhandler_pty_master::open): Ditto.
128 * fhandler_virtual.cc (fhandler_virtual::open): Ditto.
129 * fhandler_windows.cc (fhandler_windows::open): Ditto.
130 * fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
131 * net.cc (fdsock): Ditto.
132 * path.cc (path_conv::check): Avoid checking for executable extension
133 when directory. (Suggested by Pavel Tsekov)
134 (set_flags): Set PATH_TEXT explicitly, when appropriate.
135 (mount_info::conv_to_win32_path): Use set_flags() to set path flags.
136 * path.h (PATH_TEXT): New enum.
137 (path_conv::binmode): Return appropriate constant based on binmode.
138 * pipe.cc (make_pipe): Set binmode to O_TEXT xor O_BINARY.
139 * syscalls.cc (setmode_helper): Make debugging message a little
140 clearer.
141 (setmode): Set binmode via set_flags.
142
4e138847
CV
1432002-06-04 Corinna Vinschen <corinna@vinschen.de>
144
145 * fhandler.h (class fhandler_socket): Add private method
146 fixup_after_fork (bool, HANDLE).
147 * fhandler_socket.cc (fhandler_socket::fixup_after_fork): Move
148 functionality to new private method. Add closing parent socket
149 if not called from dup(). Create method new calling private method
150 with appropriate parameter.
151 (fhandler_socket::fixup_after_exec): Call private method
152 fixup_after_fork with appropriate parameter.
153 (fhandler_socket::dup): Ditto.
154
1552002-06-04 Corinna Vinschen <corinna@vinschen.de>
6bfca3cc
CV
156
157 * fhandler_dsp.cc (fhandler_dev_dsp::open): Set errno to EACCES if
158 requested mode isn't supported.
159
e02f1e9c
CF
1602002-06-03 Christopher Faylor <cgf@redhat.com>
161
162 * fhandler.cc (fhandler_base::open): Don't set binmode if already set.
163 Don't check for file. Files should already be set. Report on binary
164 mode for debugging.
165 (fhandler_base::fhandler_base): Don't set default binmode here. That's
166 for later.
167 * fhandler_console.cc (fhandler_console::output_tcsetattr): Don't set
168 binmode, ever, for console.
169 * fhandler_disk_file.cc (fhandler_disk_file::open): Always set the
170 binary mode to the value derived from mount table.
171 * path.cc (mount_info::conv_to_win32_path): Default to binmode if path
172 does not translate into anything in the mount table.
173
31b98a62
CV
1742002-06-03 Corinna Vinschen <corinna@vinschen.de>
175
176 * external.cc (cygwin_internal): Add CW_EXTRACT_DOMAIN_AND_USER
177 handling to call extract_nt_dom_user() from applications.
178 * include/sys/cygwin.h (cygwin_getinfo_types): Add
179 CW_EXTRACT_DOMAIN_AND_USER.
180
b3c29731
CV
1812002-06-03 Corinna Vinschen <corinna@vinschen.de>
182
183 * syscalls.cc (stat64_to_stat32): Transform st_dev correctly.
184 (fstat64): Add evaluating st_ino and st_dev.
185 (stat_worker): Evaluate st_dev as 32 bit value.
186 * include/cygwin/stat.h: Use new dev_t definition throughout.
187 * include/cygwin/types.h: Define __dev16_t and __dev32_t. Define
188 dev_t according to __CYGWIN_USE_BIG_TYPES__ setting.
189 * include/sys/sysmacros.h: Define major, minor and makedev
190 according to __CYGWIN_USE_BIG_TYPES__ setting.
191
656c3192
CV
1922002-06-03 Pierre Humblet <pierre.humblet@ieee.org>
193
194 * syscalls.cc (setegid32): Verify the correctness of the gid
195 of the group returned by getgrgid32.
196
1eb934b7
CV
1972002-06-03 Pierre Humblet <pierre.humblet@ieee.org>
198
199 * security.cc (lsa2wchar): Suppressed.
200 (get_lsa_srv_inf): Suppressed.
201 (get_logon_server_and_user_domain): Suppressed.
202 (get_logon_server): Essentially new.
203 (get_user_groups): Add "domain" argument. Only lookup the
204 designated server and use "domain" in LookupAccountName.
205 (is_group_member): Simplify the arguments.
206 (get_user_local_groups): Simplify the arguments. Do only a
207 local lookup. Use "BUILTIN" and local domain in LookupAccountName.
208 (get_user_primary_group). Only lookup the designated server.
209 (get_group_sidlist): Remove logonserver argument. Do not lookup
210 any server for the SYSTEM account.
211 (create_token): Delete logonserver and call to get_logon_server.
212 Adjust arguments of get_group_sidlist, see above.
213 * security.h: Delete declaration of get_logon_server_and_user_domain
e35f391f 214 and add declaration of get_logon_server.
1eb934b7
CV
215 * uinfo.cc (internal_get_login): Call get_logon_server instead of
216 get_logon_server_and_user_domain.
217
37be5a67
CF
2182002-06-02 Christopher Faylor <cgf@redhat.com>
219
e35f391f
CF
220 * dtable.cc (handle_to_fn): Use largest match for device. Correctly
221 (?) deal with remote drive weirdness.
37be5a67 222
97478fe6
CF
2232002-06-02 Christopher Faylor <cgf@redhat.com>
224
225 * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_name): Check
226 specifically for non-existent file, first.
227 (fhandler_disk_file::fstat): Perform fd open on files with funny
228 characters.
229
47413f84
CF
2302002-06-02 Christopher January <chris@atomice.net>
231
232 * fhandler_process.cc (fhandler_process::open): Set fileid.
233
6b7cd251
CF
2342002-06-02 Christopher Faylor <cgf@redhat.com>
235
236 Remove unneeded sigproc.h includes throughout.
237 * fhandler.h (fhandler_proc::fill_filebuf): Take a pinfo argument.
238 * fhandler_proc.cc (fhandler_proc::get_proc_fhandler): Simplify search
239 for given pid.
240 (fhandler_proc::readdir): Assume that pid exists if it shows up in the
241 winpid list.
242 * fhandler_process.cc (fhandler_process::open): Simplify search for
243 given pid. Call fill_filebuf with pinfo argument.
244 (fhandler_process::fill_filebuf): Pass pinfo here and assume that it
245 exists.
246 * pinfo.h (pinfo::remember): Define differently if sigproc.h is not
247 included.
248
2492002-06-02 Christopher Faylor <cgf@redhat.com>
250
251 * dll_init.cc (dll_list::detach): Don't run destructor on exit.
252
e065a187
CF
2532002-06-01 Christopher Faylor <cgf@redhat.com>
254
255 * fhandler.cc (fhandler_base::fstat): Move dev and ino calculation into
256 caller.
257 * syscalls.cc (stat_worker): Calculate dev and ino calculation here, if
258 zero.
259 * fhandler_proc.cc (fhandler_proc::fhandler_proc): Minor reorg for
260 debugging.
261 * fhandler_process.cc (fhandler_process::exists): Return 0 on
262 nonexistence.
263 (fhandler_process::fstat): Simplify pid logic.
264 * fhandler_tape.cc (fhandler_dev_tape::fstat): Minor reformatting.
265
60abf1c4
CF
2662002-06-01 Christopher Faylor <cgf@redhat.com>
267
268 * path.cc (chdir): Don't allow cd'ing to a non-directory virtual path.
269
28af03fa
CF
2702002-05-31 Christopher Faylor <cgf@redhat.com>
271
272 * fhandler_disk_file.cc (readdir): Move inode calculation into caller.
273 (fhandler_cygdrive::readdir): Add "." and "..".
274 * dir.cc (readdir): Move inode calculation here so that fhandler
275 readdirs can benefit.
276
8e74c320
CF
2772002-05-31 Christopher Faylor <cgf@redhat.com>
278
279 * fhandler_console.cc (fhandler_console::open): Reinstate setting of
280 flags.
281
30478f15
CF
282 * dtable.cc (dtable::init_std_file_from_handle): Default to using
283 binmode derived from path_conv, when required.
284 * fhandler.h (fhandler_base::get_w_binary): Default to binmode if
285 nothing else is specified.
286 * fhandler.h (fhandler_base::get_r_binary): Ditto.
287
288 * fhandler_disk_file.cc (fhandler_disk_file::fstat_by_handle): Work
289 around g++ warning.
290
291 * path.cc (path_conv::check): Remove a debugging statement.
292
de86e35b
CF
2932002-05-31 Christopher Faylor <cgf@redhat.com>
294
295 * fhandler_console.cc (fhandler_console::open): Always default to
296 binmode.
297 (fhandler_console::write_normal): Don't honor binmode setting. There
298 is already a termios setting for this.
299 (fhandler_console::init): Correct argument order in init call.
300
8461f41e
CF
3012002-05-31 Christopher Faylor <cgf@redhat.com>
302
303 * fhandler.cc (fhandler_base::open): Make default open mode == binmode.
304 (fhandler_base::init): Set open flags based on derived binmode argument.
305
bcd0ed9f
CF
3062002-05-31 Christopher Faylor <cgf@redhat.com>
307
308 * dll_init.cc (dll_list::init): Eliminate unneeded debugging statement.
309
18c04cc4
CF
3102002-05-31 Christopher Faylor <cgf@redhat.com>
311
312 * fhandler_proc.cc (fhandler_proc::readdir): Set errno when no more
313 files.
314 * fhandler_process.cc (fhandler_process::readdir): Ditto.
315 * fhandler_registry.cc (fhandler_registry::readdir): Ditto.
316
69be001c
CF
3172002-05-30 Christopher Faylor <cgf@redhat.com>
318
319 * path.cc (path_conv::check): Set fileattr to INVALID_FILE_ATTRIBUTES
320 for nonexistent virtual device path.
321 (chdir): Set correct errno when attempt is made to cd to nonexistent
322 virtual device path.
323
5d8c7a56
CF
3242002-05-30 Christopher Faylor <cgf@redhat.com>
325
326 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Always call
327 fstat_by_name if fd is not opened to allow fstat_by_name to properly
328 set errno.
329
d74eced5
CV
3302002-05-30 Corinna Vinschen <corinna@vinschen.de>
331
332 * autoload.cc: Replace autoload statments for ZwXXX by NtXXX.
333 Drop ZwQuerySystemInformation since NtQuerySystemInformation was
334 already available.
335 * fhandler_proc.cc (format_proc_uptime): Replace call to
336 ZwQuerySystemInformation by call to NtQuerySystemInformation.
337 (format_proc_stat): Ditto.
338 * fhandler_process.cc (format_process_stat): Replace call to
339 ZwQueryInformationProcess by call to NtQueryInformationProcess.
340 (get_process_state): Ditto.
341 (get_mem_values): Ditto. Replace call to ZwQueryVirtualMemory by
342 call to NtQueryVirtualMemory.
343 * ntdll.h: Cleanup. Drop ZwQuerySystemInformation since
344 NtQuerySystemInformation was already available. Replace declarations
345 of ZwXXX functions by declarations of NtXXX.
346 * pinfo.cc (winpids::enumNT): Replace call to ZwQuerySystemInformation
347 by call to NtQuerySystemInformation.
348
5d8c7a56
CF
3492002-05-29 Christopher Faylor <cgf@redhat.com>
350
351 * fhandler.cc (binmode): Default to binmode when mode is not known.
352
186637a5
CF
3532002-05-29 Christopher Faylor <cgf@redhat.com>
354
355 * include/sys/cygwin.h (EXTERNAL_PINFO_VERSION): Reinstate.
356 * external.cc (fillout_pinfo): Use it.
357
3a571063
CV
3582002-05-29 Corinna Vinschen <corinna@vinschen.de>
359
360 * external.cc (fillout_pinfo): Use new version define.
361 * include/sys/cygwin.h (external_pinfo): Define
362 EXTERNAL_PINFO_VERSION_16_BIT and EXTERNAL_PINFO_VERSION_32_BIT
363 instead of just EXTERNAL_PINFO_VERSION.
364
9fef0139
CF
3652002-05-29 Christopher Faylor <cgf@redhat.com>
366
367 * external.cc (fillout_pinfo): Set new version field in external_pinfo
368 structure.
369 * include/sys/cygwin.h (external_pinfo): Replace strace_file with
370 version field.
371
a8d7ae61
CV
3722002-05-29 Corinna Vinschen <corinna@vinschen.de>
373
374 Change internal uid datatype from __uid16_t to __uid32_t
375 throughout.
376 * cygwin.din: Export new symbols getpwuid32, getpwuid_r32, getuid32,
377 geteuid32, setuid32, seteuid32.
378 * passwd.cc (getpwuid32): New function.
379 (getpwuid_r32): Ditto.
380 * syscalls.cc (seteuid32): Ditto.
381 (setuid32): Ditto.
382 * uinfo.cc (getuid32): Ditto.
383 (geteuid32): Ditto.
d4000bc4 384 * winsup.h (uid16touid32): New macro, correct casting from __uid16_t
a8d7ae61
CV
385 to __uid32_t.
386 (gid16togid32): Ditto fir gids.
387 (getuid32): Declare.
388 (geteuid32): Ditto.
389 (getpwuid32): Ditto.
390 * include/sys/cygwin.h (struct external_pinfo): Add members uid32 and
391 gid32.
392
9854c44c
CV
3932002-05-29 Corinna Vinschen <corinna@vinschen.de>
394
395 * include/cygwin/socket.h: Protect some symbols against multiple
396 definition.
397 * include/netinet/ip.h: Ditto.
398 * include/netinet/tcp.h: Ditto.
399
4002002-05-29 Wu Yongwei <adah@netstd.com>
401
402 * include/netinet/ip.h: Replace by BSD derived version of the file.
403 * include/netinet/tcp.h: Ditto.
404 * include/netinet/udp.h: New file.
405 * include/cygwin/ip.h: Remove.
406
cef69559
CF
4072002-05-29 Christopher Faylor <cgf@redhat.com>
408
409 * dtable.cc (dtable::init_std_file_from_handle): Attempt stronger
410 detection of invalid handle.
411 (handle_to_fn): Detect pathological condition where NT resets the
412 buffer pointer to NULL on an invalid handle.
413
a761ad82
CF
4142002-05-28 Christopher Faylor <cgf@redhat.com>
415
416 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Properly
417 check for whether we should be opening the file to search for #!
654783b6
CF
418 characters. Set path_conv structure execability, too, when
419 appropriate.
a761ad82 420
7ea70e99
CV
4212002-05-28 Corinna Vinschen <corinna@vinschen.de>
422
423 * security.cc (set_security_attribute): Call getegid32() instead of
424 getegid().
425 * include/cygwin/grp.h: Declare getegid32().
426
57196405
CV
4272002-05-28 Corinna Vinschen <corinna@vinschen.de>
428
429 Change internal gid datatype from __gid16_t to __gid32_t
430 throughout.
431 * cygwin.din: Export new symbols chown32, fchown32, getegid32,
432 getgid32, getgrgid32, getgrnam32, getgroups32, initgroups32, lchown32,
433 setgid32, setegid32, getgrent32.
434 * grp.cc (grp32togrp16): New static function.
435 (getgrgid32): New function.
436 (getgrnam32): Ditto.
437 (getgrent32): Ditto.
438 (getgroups32): Change name of internal function from getgroups.
439 (getgroups32): New function.
440 (initgroups32): Ditto.
441 * syscalls.cc (chown32): Ditto.
442 (lchown32): Ditto.
443 (fchown32): Ditto.
444 (setegid32): Ditto.
445 (setgid32): Ditto.
446 * uinfo.cc (getgid32): Ditto.
447 (getegid32): Ditto.
448 * include/cygwin/grp.h: Remove declaration of getgrgid() and getgrnam().
449 Declare getgrgid32() and getgrnam32() instead. Declare getgid32().
450
0c12979b
CF
4512002-05-27 Christopher Faylor <cgf@redhat.com>
452
453 * autoload.cc (noload): Properly mask low order word for determining
454 number of bytes to pop.
455
57e2ae68
CF
4562002-05-27 Christopher Faylor <cgf@redhat.com>
457
458 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Minor logic
459 cleanup.
460
2402700d
CF
4612002-05-27 Christopher Faylor <cgf@redhat.com>
462
463 * autoload.cc (LoadFuncEx): Define via new LoadFuncEx2 macro.
464 (LoadFuncEx2): Adapted from LoadFuncEx. Provides control of return
465 value for nonexistent function.
466 (NtQueryObject): Declare.
467 (IsDebuggerPresent): Declare via LoadFuncEx2 and always return true if
468 not available.
469 * debug.h (being_debugged): Just rely on IsDebuggerPresent return
470 value.
471 * dtable.cc (handle_to_fn): New function.
472 (dtable::init_std_file_from_handle): Attempt to derive std handle's
473 name via handle_to_fn.
474 (dtable::build_fhandler_from_name): Fill in what we can in path_conv
475 structure when given a handle and path doesn't exist.
476 * fhandler.cc (fhandler_base::open): Don't set the file pointer here.
477 Use pc->exists () to determine if file exists rather than calling
478 GetFileAttributes again.
479 * fhandler.h (fhandler_base::exec_state_isknown): New method.
480 (fhandler_base::fstat_helper): Add extra arguments to declaration.
481 (fhandler_base::fstat_by_handle): Declare new method.
482 (fhandler_base::fstat_by_name): Declare new method.
483 * fhandler_disk_file (num_entries): Make __stdcall.
484 (fhandler_base::fstat_by_handle): Define new method.
485 (fhandler_base::fstat_by_name): Define new method.
486 (fhandler_base:fstat): Call fstat_by_{handle,name} as appropriate.
487 (fhandler_disk_file::fstat_helper): Accept extra arguments for filling
488 out stat structure. Move handle or name specific stuff to new methods
489 above.
490 (fhandler_disk_file::open): Use real_path->exists rather than calling
491 GetFileAttributes again.
492 * ntdll.h (FILE_NAME_INFORMATION): Define new structure.
493 (OBJECT_INFORMATION_CLASS): Partially define new enum.
494 (OBJECT_NAME_INFORMATION): Define new structure.
495 (NtQueryInformationFile): New declaration.
496 (NtQueryObject): New declaration.
497 * path.cc (path_conv::fillin): Define new method.
498 * path.h (path_conv::fillin): Declare new method.
499 (path_conv::drive_thpe): Rename from 'get_drive_type'.
500 (path_conv::volser): Declare new method.
501 (path_conv::volname): Declare new method.
502 (path_conv::root_dir): Declare new method.
503 * syscalls.cc (fstat64): Send real path_conv to fstat as second
504 argument.
505
74b2f73e
CV
5062002-05-24 Pierre Humblet <pierre.humblet@ieee.org>
507
508 * security.cc (lsa2str): New function.
509 (get_priv_list): Call lsa2str instead of sys_wcstombs.
510
75bf2931
CV
5112002-05-22 Pierre Humblet <pierre.humblet@ieee.org>
512
513 * syscalls.cc (seteuid): Do not take allow_ntsec into account.
514 Attempt to use an existing or new token even when the uid
515 matches orig_uid, but the gid is not in the process token.
516 Major reorganization after several incremental changes.
517 (setegid): Do not take allow_ntsec into account. Minor
518 reorganization after several incremental changes.
519
918a268c
CF
5202002-05-26 Christopher Faylor <cgf@redhat.com>
521
522 * debug.h (being_debugged): New macro.
523 * dtable.cc (dtable::extend): Use new macro.
524 * exceptions.cc (try_to_debug): Ditto.
525 * strace.cc (strace::hello): Only output debugging info when we think
526 we're being debugged.
527
0cfbfc24
CF
5282002-05-25 Robert Collins <rbtcollins@hotmail.com>
529
530 * winsup.h: Remove duplicate declarations of malloc_lock and
531 malloc_unlock.
532
d7b4a300
CF
5332002-05-24 Christopher Faylor <cgf@redhat.com>
534
535 Remove unneeded sync.h, where appropriate, throughout.
536 Remove unneeded heap.h, where appropriate, throughout.
537 Remove unneeded exceptions.h, where appropriate, throughout.
538 Remove unneeded perprocess.h, where appropriate, throughout.
539
908f9b65
CV
5402002-05-22 Pierre Humblet <pierre.humblet@ieee.org>
541
542 * security.cc (create_token): Call __sec_user() instead of
543 sec_user() to remove dependence on allow_ntsec. Verify that
544 the returned sd is non-null.
545
a6247be9
RC
5462002-05-25 Robert Collins <rbtcollins@hotmail.com>
547
548 * gmon.c (fake_sbrk): Correctly return -1 on failed malloc's.
549
ff938546
CF
5502002-05-24 Christopher Faylor <cgf@redhat.com>
551
552 * dtable.cc (dtable::build_fhandler_from_name): Just pass posix path
553 along to set_name via return_and_clear_normalized_path.
554 (dtable::build_fhandler): New method with const char * argument.
555 (dtable::reset_unix_path_name): Eliminate.
556 (dtable::dup_worker): Use correct build_fhandler method.
557 * mmap.cc (mmap_record::alloc_fh): Ditto.
558 * dtable.h (dtable::build_fhandler): New method.
559 (dtable::reset_unix_path_name): Eliminate.
560 * fhandler.cc (fhandler_base::set_name): Assume that unix_name has
561 already been cmalloced.
562 (fhandler_base::reset_unix_path_name): Eliminate.
563 (fhandler_base::~fhandler_base): Coercion for cfree.
564 * fhandler.h (fhandler_base::unix_path_name): Make const char *.
565 (fhandler_base::win32_path_name): Ditto.
566 (fhandler_base::reset_unix_path_name): Eliminate.
567 * fhandler_disk_file.cc (fhandler_cygdrive::set_drives): Accommodate
568 const char *ness of win32_path_name.
569 * fhandler_socket.cc (fhandler_socket::fstat): Accommodate new set_name
570 requirements.
571 * path.cc (path_conv::return_and_clear_normalized_path): New method.
572 (path_conv::clear_normalized_path): Eliminate.
573 (path_conv::~path_conv): Ditto.
574 (path_conv::check): Accommodate new build_fhandler method.
575 * path.h (path_conv::~path_conv): Eliminate.
576 (path_conv::clear_normalized_path): Ditto.
577 (path_conv::return_and_clear_normalized_path): Declare new method.
578
b4bb31ad
CF
5792002-05-23 Christopher Faylor <cgf@redhat.com>
580
581 * path.cc (path_conv::check): Make sure any trailing path component is
582 part of potential normalized posix path.
583
b2f338e9
CF
5842002-05-23 Christopher Faylor <cgf@redhat.com>
585
586 * smallprint.c (__small_vsprintf): Implement '%o' after all these
587 years.
588
fc240f58
CF
5892002-05-22 Christopher Faylor <cgf@redhat.com>
590
591 * fhandler.h (fhandler_virtual::exists): Eliminate path argument.
592 (fhandler_proc::exists): Ditto.
593 (fhandler_registry::exists): Ditto.
594 (fhandler_process::exists): Ditto.
595 * fhandler_proc.cc (fhandler_proc::exists): Ditto. Use built-in name.
596 * fhandler_process.cc (fhandler_process::exists): Ditto.
597 (fstat): Ditto.
598 * fhandler_registry.cc (fhandler_registry::exists): Ditto.
599 (fhandler_registry::fstat): Ditto.
600 * fhandler_virtual.cc (fhandler_virtual::opendir): Ditto.
601 * path.cc (path_conv::check): Ditto. Add debugging.
602
6032002-05-22 Christopher Faylor <cgf@redhat.com>
604
605 * syscalls.cc (dup): Always call dup2 for error handling.
606
1d2b71d6
CV
6072002-05-22 Corinna Vinschen <corinna@vinschen.de>
608
609 * include/cygwin/types.h: Revert previous patch.
610
36f86a55
CV
6112002-05-22 Corinna Vinschen <corinna@vinschen.de>
612
613 * include/cygwin/types.h: Define pthread stuff only if _POSIX_THREADS
614 is defined.
615
2d6ce5c2
CV
6162002-05-19 Pierre Humblet <pierre.humblet@ieee.org>
617
fc240f58 618 * security.cc (open_local_policy): Initialize lsa to
2d6ce5c2
CV
619 INVALID_HANDLE_VALUE instead of NULL.
620 (get_logon_server_and_user_domain): Test for INVALID_HANDLE_VALUE
621 instead of NULL.
622 (create_token): Both of the above.
623
9ded8bd8
CF
6242002-05-18 Christopher Faylor <cgf@redhat.com>
625
626 * fhandler_disk_file.cc (fhandler_disk_file::fstat): Make handling of
627 nlink consistent for remote files.
628
2701126a
CF
6292002-05-18 Christopher Faylor <cgf@redhat.com>
630
631 * path.cc (path_conv::check): Always set executable bit for executable
632 extension.
633
b05b7d84
CF
6342002-05-17 Christopher Faylor <cgf@redhat.com>
635
636 * fhandler.cc (fhandler_base::lseek): Avoid calling SetFilePointer with
637 high order part of 64 bit address on OS's which do not support that
638 kind of operation. Otherwise Windows 95 will become confused.
639
d6dc9825
CV
6402002-05-16 Pierre Humblet <pierre.humblet@ieee.org>
641
642 * fhandler_raw.cc (fhandler_dev_raw::open): Replace set_errno()
643 by __seterrno_from_win_error().
644 * security.cc (open_local_policy): Ditto.
645 (get_lsa_srv_inf): Ditto.
646 (get_user_groups): Ditto.
647 (get_user_primary_group): Ditto.
648 (create_token): Ditto.
649 (subauth): Ditto.
650
35a89cbe
CV
6512002-05-17 Corinna Vinschen <corinna@vinschen.de>
652
653 * times.cc (utimes): Use FILE_WRITE_ATTRIBUTES even on 9x/Me when
654 opening file for writing timestamp.
655 * wincap.cc: Remove flag has_specific_access_rights.
656 * wincap.h: Ditto.
657
ebbdc703
CV
6582002-05-13 Pierre Humblet <pierre.humblet@ieee.org>
659
660 * syscalls.cc (seteuid): Set default dacl in process token.
661 Replace in-line code by call to verify_token().
662 (setegid): Reverse change from 2002-01-21. Add call to
663 RevertToSelf and set primary group in impersonation token.
664 * security.cc (create_token): Store pgrpsid in token security
665 descriptor, except if it already appears in my_grps.
666 Use sec_acl() in place of get_dacl().
667 (verify_token): Create from code in seteuid(), with tighter checks.
668 (get_dacl) Deleted.
669 (get_group_sidlist): Add argument to indicate if pgrpsid is already
670 in the groups.
671 * security.h: Define verify_token().
672 * autoload.cc: Load GetKernelObjectSecurity().
673
feb7f1a9
CF
6742002-05-13 Mark Bradshaw <bradshaw@staff.crosswalk.com>
675
676 * cygwin.din: Add strlcat and strlcpy.
677 * include/cygwin/version.h: Increment API minor version number.
678
fc240f58 6792002-05-09 Pierre Humblet <pierre.humblet@ieee.org>
043bc3e1
CV
680
681 * shared.cc (__sec_user): Split into sec_acl() and call orig_sid().
682 (sec_acl): Create from part of __sec_user(), except creator/owner.
683 * security.h: Define sec_acl() and MAX_DACL_LEN.
684
c8b20196
CF
6852002-05-12 Christopher Faylor <cgf@redhat.com>
686
687 * fhandler_disk_file.cc (fhandler_disk_file::open): Avoid using
688 O_DIROPEN when OS doesn't support it. Return proper errno in that
689 case.
690
b4f8d31f
CF
6912002-05-12 Christopher Faylor <cgf@redhat.com>
692
56caca1d
CF
693 * syscalls.cc (_read): Change error to EBADF if attempt to read from a
694 non-readable fd.
b4f8d31f 695
29ee580d
CF
6962002-05-11 Christopher Faylor <cgf@redhat.com>
697
698 * fhandler.h (executable_states): For now, make dont_care_if_executable
699 equivalent to not_executable.
700 * sys/mount.h: Define MOUNT_NOTEXEC.
701 * path.h (fs_info): New class.
702 (path_conv): Move fs-specific fields to new 'fs' structure.
703 (path_conv::update_fs_info): Move to fs_info and rename to just 'update'.
704 * path.cc (fs_info::update): Ditto. Return 'true' if successful.
705 (fillout_mntent): Add ',noexec' to list of reported options.
706
b84621d2
CF
7072002-05-11 Christopher Faylor <cgf@redhat.com>
708
709 * fhandler_virtual.cc (fhandler_virtual::close): Quiet a compiler
710 warning.
711
9ba913a5
CF
7122002-05-10 Christopher January <chris@atomice.net>
713
714 * autoload.cc: Add dynamic load statements for
715 'ZwQueryInformationProcess' and 'ZwQueryVirtualMemory'.
716 * fhandler.h: Change type of bufalloc and filesize members of
717 fhandler_virtual from int to size_t. Change type of position member
718 from __off32_t to __off64_t. Add new fileid member to fhandler_virtual
719 class. Make seekdir take an __off64_t argument. Make lseek take an
720 __off64_t argument. Add fill_filebuf method to fhandler_virtual. Add
721 fill_filebuf method to fhandler_proc. Add fill_filebuf method to
722 fhandler_registry. Add fill_filebuf method to fhandler_process. Add
723 saved_pid and saved_p members to fhandler_process.
724 * fhandler_proc.cc (proc_listing_array): Add 'loadavg', 'meminfo', and 'stat'.
725 (proc_fhandlers array): Ditto.
726 (fhandler_proc::open): Use fill_filebuf to flesh out the file contents.
727 (fhandler_proc::fill_filebuf): New method.
728 (fhandler_proc::format_proc_meminfo): Ditto.
729 (fhandler_proc::format_proc_stat): Ditto.
730 (fhandler_proc::format_proc_uptime): Ditto.
731 * fhandler_process.cc (process_listing): Add 'stat' and 'statm'.
732 (fhandler_process::fstat): Find the _pinfo structure for the process
733 named in the filename. Return ENOENT if the process is no longer
734 around. Set the gid and uid fields of the stat structure.
735 (fhandler_process::open): Store pid and pointer to _pinfo structure in
736 saved_pid and saved_p respectively. Use fill_filebuf to flesh out file
737 contents.
738 (fhandler_proc::fill_filebuf): New method.
739 (format_process_stat): New function.
740 (format_process_status): Ditto.
741 (format_process_statm): Ditto.
742 (get_process_state): Ditto.
743 (get_mem_values): Ditto.
744 * fhandler_registry.cc (fhandler_registry::seekdir): Change argument
745 type from __off32_t to __off64_t.
746 (fhandler_registry::fill_filebuf): New method.
747 * fhandler_virtual.cc (fhandler_virtual::seekdir): Change argument type
748 from __off32_t to __off64_t.
749 (fhandler_virtual::lseek): Ditto.
750 (fhandler_virtual::fill_filebuf): New method.
751 (fhandler_virtual::fhandler_virtual): Initialise fileid to -1.
752 * wincap.cc: Set flag has_process_io_counters appropriately.
753 * wincap.h: Add flag has_process_io_counters.
754
7552002-05-09 Christopher Faylor <cgf@redhat.com>
f561f644
CF
756
757 * syscalls.cc (_write): Change error to EBADF if attempt to write to a
56caca1d 758 non-writeable fd.
f561f644 759
6327de5f
CV
7602002-05-08 Corinna Vinschen <corinna@vinschen.de>
761
762 * cygheap.h (class cygheap_user): Add member `orig_psid'.
763 Add method `orig_sid()'.
764 * cygheap.cc (cygheap_user::set_sid): Maintain orig_psid.
765
795b46cf
CV
7662002-04-28 Norbert Schulze <norbert.schulze@web.de>
767
768 * localtime.cc (tzsetwall): Use wildabbr if generated timezone name
769 length < 3.
770
a9917779
CV
7712002-05-05 Pierre Humblet <pierre.humblet@ieee.org>
772
773 * spawn.cc (spawn_guts): Move call to set_process_privilege()
774 to load_registry_hive().
775 * registry.cc (load_registry_hive): ditto.
776 * fork.cc (fork_parent): Call sec_user_nih() only once.
777
7782002-05-04 Christopher January <chris@atomice.net>
13ee3618
CF
779
780 * path.h (path_conv::path_conv): Initialise normalized_path to NULL.
781
8761c1dc
CF
7822002-05-03 Christopher Faylor <cgf@redhat.com>
783
784 * net.cc (getdomainname): Change second argument of getdomainname to
785 size_t.
786
7872002-05-03 Christopher January <chris@atomice.net>
788
789 * fhandler_proc.cc (proc_listing): Add '.' and '..' to directory
790 listing.
791 (fhandler_proc::open): Change use of mode to flags. If the file does
792 not exist already, fail with EROFS if O_CREAT flag is set. Change
793 EROFS error to EACCES error when writing to a file. Use cmalloc to
794 allocate memory for filebuf.
795 (fhandler_proc::close): Use cfree to free filebuf.
796 (fhandler_proc::get_proc_fhandler): Properly detect attempts to access
797 unknown subdir.
798 * fhandler_process.cc (process_listing): Add '.' and '..' to directory
799 listing.
800 (fhandler_process::open): Use cmalloc to allocate memory for filebuf.
801 (fhandler_process::close): Use cfree to free filebuf.
802 * fhandler_registry.cc (registry_listing): Add . and '..' to directory
803 listing.
804 (fhandler_registry::open): Move check for open for writing before
805 open_key. Use cmalloc to allocate memory for filebuf.
806 (fhandler_registry::close): Use cfree to free filebuf.
807 (fhandler_registry::telldir): Use lower 16 bits of __d_position as
808 position in directory.
809 (fhandler_registry::seekdir): Ditto.
810 * fhandler_virtual.cc (fhandler_virtual::write): Change EROFS error to
811 EACCES error.
812 (fhandler_virtual::open): Set the NOHANDLE flag.
813 (fhandler_virtual::dup): Add call to fhandler_base::dup. Allocate
814 child's filebuf using cmalloc. Copy filebuf from parent to child.
815 (fhandler_virtual::close): Use cfree to free filebuf.
816 (fhandler_virtual::~fhandler_virtual): Ditto.
817 (from Chris Faylor <cgf@redhat.com>).
818 (fhandler_registry::readdir): Add support for '.' and '..' files in
819 subdirectories of /proc/registry.
820 * path.cc (path_conv::check): Do not return ENOENT if a file is not
821 found in /proc.
822
335c87f9
CF
8232002-05-02 Christopher Faylor <cgf@redhat.com>
824
825 * fhandler_proc.cc (fhandler_proc::fstat): Use fhandler name rather
826 than path_conv name.
827 (fhandler_proc::open): Ditto.
828 * fhandler_process.cc (fhandler_process::fstat): Use fhandler name
829 rather than path_conv name.
830 (fhandler_process::open): Ditto.
831 * fhandler_registry.cc (fhandler_registry::fstat): Use fhandler name
832 rather than path_conv name.
833 (fhandler_registry::open): Ditto.
834 * path.cc (path_conv::check): Don't copy posix path when virtual.
835 (mount_info::conv_to_win32_path): Don't zero string when isproc. Just
836 derive normal windows path.
837
838 * path.h (path_conv::clear_normalized_path): Declare new method.
839 * path.cc (path_conv::clear_normalized_path): Define new method.
840 * dtable.cc (build_fhandler_from_name): Clear normalized path when
841 finished to conserve space.
842
3bb7eb44
CF
8432002-05-02 Christopher Faylor <cgf@redhat.com>
844
845 * fhandler_proc.cc (fhandler_proc::fstat): Prime with information from
846 fhandler_base::fstat. Use defines rather than constants for permission
847 settings.
848
d055ecb0
CV
8492002-04-30 Eric Blake <ebb9@email.byu.edu>
850
851 * path.cc (hash_path_name): Improve hash function strength.
852
37143995
RC
8532002-05-02 Robert Collins <rbtcollins@hotmail.com>
854
855 * thread.cc (__pthread_cond_dowait): Fix a race on signalling from a
856 thread woken by the same condition variable it's signalling on. Thanks
857 to Michael Beach for the report and test case.
858
291be307
CF
8592002-05-02 Christopher Faylor <cgf@redhat.com>
860
861 * path.h (pathconv_arg): Add PC_POSIX.
862 (path_conv): Add normalized_path field.
863 * path.cc (path_conv::~path_conv): New destructor.
864 (path_conv::check): Set normalized_path, where appropriate.
865 * dtable.cc (build_fhandler_from_name): Use normalized path from
866 path_conv.
867 * syscalls.cc (chroot): Ditto.
868
869 * cygheap.h: Remove path_prefix_p declaration.
870
8712002-02-26 Christopher January <chris@atomice.net>
872 Christopher Faylor <cgf@redhat.com> (minor fixups)
873
874 * Makefile.in: Add fhandler_proc.o, fhandler_registry.o,
875 fhandler_process.o and fhandler_virtual.o.
876 * dtable.cc (dtable::build_fhandler): Add entries for FH_PROC,
877 FH_REGISTRY and FH_PROCESS. Set unix_name to the normalized posix
878 path.
879 * fhandler.h: Add constants for FH_PROC, FH_REGISTRY and FH_PROCESS.
880 Add class declarations for fhandler_virtual, fhandler_proc,
881 fhandler_registry and fhandler_virtual. Update fhandler_union
882 accordingly.
883 * fhandler_proc.cc: New file. Add implementation for fhandler_proc.
884 * fhandler_virtual.cc: New file. Add implementation for
885 fhandler_virtual.
886 * fhandler_process.cc: New file. Add implementation for
887 fhandler_process.
888 * fhandler_registry.cc: New file. Add implementation for
889 fhandler_registry.
8761c1dc
CF
890 * path.cc (isproc): New macro.
891 (isvirtual_dev): Ditto.
291be307
CF
892 * path.cc (path_conv::check): Add check for virtual devices.
893 * path.cc (mount_info::conv_to_win32_path): Convert paths in /proc to
894 empty Win32 paths.
895 * path.cc (chdir): Replace check for FH_CYGDRIVE with more generic
896 isvirtual_dev macro. Force setting of posix path for virtual
897 fhandlers.
8761c1dc 898 * path.h (path_prefix_p): Declare.
291be307
CF
899
900
fee93846
CF
901Wed May 1 16:06:02 2002 Jason Tishler <jason@tishler.net>
902
903 * include/cygwin/types.h: Include <sys/sysmacros.h>.
904
9b15f5fa
CV
905Wed Apr 17 11:27:04 2002 Jason Tishler <jason@tishler.net>
906
907 * security.cc (get_lsa_srv_inf): Prevent extraneous backslashes for
908 the NT Domain case.
909
4deace13
CV
9102002-04-12 Corinna Vinschen <corinna@vinschen.de>
911
912 * net.cc (cygwin_accept): Set socket type for accepted socket.
913 (socketpair): Set socket type for both sockets.
914
9152002-04-12 Egor Duda <deo@logos-m.ru>
916
291be307 917 * fhandler.h (class fhandler_socket): New member to store socket type.
4deace13
CV
918 (fhandler_socket::get_socket_type): Access it.
919 (fhandler_socket::set_socket_type): Ditto.
920 * net.cc (cygwin_socket): Store socket type.
921 (cygwin_connect): Disable security checks for connectionless sockets.
922 (cygwin_accept): Ditto.
923
dbe67a81
CF
9242002-04-09 Mark Bradshaw <bradshaw@staff.crosswalk.com>
925
926 * cygwin.din: Add strptime.
927 * include/cygwin/version.h: Increment API version number.
928
464b3e80
CV
9292002-04-09 Corinna Vinschen <corinna@vinschen.de>
930
931 * fork.cc (fork_child): Call fixup_mmaps_after_fork() somewhat earlier.
932
d78bda7b
CV
9332002-04-09 Corinna Vinschen <corinna@vinschen.de>
934
935 * fhandler.cc (fhandler_base::open): Set read-only bit in
936 file_attributes when adequate.
937
8996623b
CF
9382002-03-28 Christopher Faylor <cgf@redhat.com>
939
940 * times.cc (gettimeofday): Fix typo in previous patch.
941
7d7524e5
CF
9422002-03-27 Wu Yongwei <adah@netstd.com>
943
944 * times.cc (gettimeofday): Revert to setting timezone info if tz !=
945 NULL.
946
2f3126f6
CF
9472002-03-21 Christopher Faylor <cgf@redhat.com>
948
949 * fhandler_disk_file.cc (fhandler_disk_file::fstat_helper): Always set
950 st_[ug]id to value derived from get_file_attributes.
951
45d2ea8a
CF
9522002-03-21 Christopher Faylor <cgf@redhat.com>
953
954 * spawn.cc (find_exec): Return input if file not found.
955
99dbafac
CV
9562002-03-19 Boris Schaeling <boriss@web.de>
957
291be307 958 * poll.cc (poll): Add support for invalid descriptors.
99dbafac 959
b0359971
RC
9602002-03-15 Robert Collins <rbtcollins@hotmail.com>
961
962 * fhandler.h (fhandler_termios::lseek): Override lseek.
963 * fhandler_termios.cc (fhandler_termios::lseek): Implement this.
964
59a2339f
CF
9652002-03-15 Christopher Faylor <cgf@redhat.com>
966
967 * cygserver.cc: Include stdlib.h for exit declaration.
968 * threaded_queue.cc: Ditto.
969
ca175377
CF
9702002-03-15 Christopher Faylor <cgf@redhat.com>
971
972 * pinfo.cc (pinfo::init): Use PID_ALLPIDS flag to control when a
973 redirected block should be marked as nonexistent.
974 (winpids::add): Use PID_ALLPIDS when looking for all pids.
975 * cygwin.h (PID_ALLPIDS): New enum element.
976
d78bda7b 9772002-03-15 Corinna Vinschen <corinna@vinschen.de>
2f263187 978
291be307 979 * glob.c (stat32_to_STAT): New function.
2f263187
CV
980 (g_lstat): Call user space functions always with 32 bit struct stat
981 as a workaround.
982 (g_stat): Ditto.
983 * include/glob.h (struct glob): Don't prototype function pointers
984 when compiling Cygwin.
985
4af6d4a9
CF
9862002-03-14 Christopher Faylor <cgf@redhat.com>
987
988 * pinfo.cc (pinfo::init): Properly handle execed process stub when
989 PID_NOREDIR is specified.
990
6ea9c716
CV
9912002-03-13 Boris Schaeling <boriss@web.de>
992
e10c087b
CF
993 * poll.cc (poll): Remove variable open_fds. Rearrange and add code to
994 fix settings of revents.
6ea9c716 995
d78bda7b 9962002-03-13 Corinna Vinschen <corinna@vinschen.de>
bbe09139
CV
997
998 * mmap.cc (mmap_record::map_map): Return -1 if VirtualProtect fails.
999 (list::erase): New method with no argument. Erase latest record
1000 added.
1001 (mmap64): Fail if map_map() fails.
1002
d78bda7b 10032002-03-12 Corinna Vinschen <corinna@vinschen.de>
cb4589f4
CV
1004
1005 * sysconf.cc (sysconf): Fix condition.
1006
d78bda7b 10072002-03-11 Corinna Vinschen <corinna@vinschen.de>
2817e0dc
CV
1008
1009 * mmap.cc (msync): Check area given by addr and len for being a
1010 contigeous mmap'd region.
1011
d78bda7b 10122002-03-11 Corinna Vinschen <corinna@vinschen.de>
713fb38b
CV
1013
1014 * fork.cc (fork_child): Call fixup_mmaps_after_fork() before
1015 closing parent process handle. Call fixup_mmaps_after_fork()
1016 with parent process handle as parameter.
1017 * mmap.cc (mmap_record::access): New method.
1018 (fixup_mmaps_after_fork): Take process handle as parameter.
1019 In case of FILE_MAP_COPY access, copy valid memory regions to child.
1020 * pinfo.h (fixup_mmaps_after_fork): Change prototype accordingly.
1021
d78bda7b 10222002-03-07 Corinna Vinschen <corinna@vinschen.de>
c8c3824d
CV
1023
1024 * autoload.cc (NetGetDCName): Add symbol.
1025 (NetServerEnum): Remove symbol.
1026 * security.cc (get_lsa_srv_inf): Call NetGetDCName() instead of
1027 NetServerEnum() since it's faster. Don't call it at all if machine
1028 is not a domain member.
1029
9420d2b8
CF
10302002-03-06 Christopher Faylor <cgf@redhat.com>
1031
1032 * path.cc (normalize_posix_path): Avoid runs of '.'s > 2.
1033
07a21bce
CF
10342002-03-05 Christopher Faylor <cgf@redhat.com>
1035
1036 * errno.cc: Change EPERM associated text to "Operation not permitted"
1037 throughout.
1038
eeac69d8
CF
10392002-03-05 Christopher Faylor <cgf@redhat.com>
1040
1041 * fhandler_socket.cc (fhandler_socket::close): Respond to signals while
1042 looping, waiting for socket to close. Superstitiously clear last error
1043 when WSAEWOULDBLOCK.
1044
241a7c5a
RC
10452002-03-05 Robert Collins <rbtcollins@hotmail.com>
1046
291be307 1047 * cygserver_transport_pipes.cc (transport_layer_pipes::transport_layer_pipes):
241a7c5a
RC
1048 Always init - until static members work correctly.
1049 * shm.cc (shmget): Initialize the security descriptor - thanks Corinna!
291be307 1050 * include/sys/ipc.h: Make the ipc control constants partitioned off from the sem
241a7c5a
RC
1051 control constants.
1052
ad2864f4
CV
10532002-03-04 Christian Lestrade <christian.lestrade@free.fr>
1054
1055 * include/sys/termios.h: Define _POSIX_VDISABLE. Define CCEQ macro.
1056 * fhandler_termios.cc: Include <sys/termios.h>.
1057 (line_edit): Recognize disabled c_cc[] chars. Ignore VDISCARD when
1058 not in ICANON mode.
1059
59149930
CV
10602002-03-04 Dmitry Timoshkov <dmitry@baikal.ru>
1061
1062 * syscalls.cc (truncate64): Use ftruncate64 directly to not lose
1063 upper 32 bits.
1064
7c3617cc
RC
10652002-03-04 Robert Collins <rbtcollins@hotmail.com>
1066
1067 * cygserver_shm.cc (delete_shmnode): New function.
1068 (client_request_shm::serve): Use it.
1069
038c71f1
RC
10702002-03-04 Robert Collins <rbtcollins@hotmail.com>
1071
1072 * cygserver_shm.cc (client_request_shm::serve): Implement SHM_DETACH.
1073 * shm.cc (shmdt): Implement.
1074
67be0adb
RC
10752002-03-04 Robert Collins <rbtcollins@hotmail.com>
1076
1077 * cygserver_shm.cc: Run indent.
1078 (deleted_head): New global for storing shm id's pending deletion.
1079 (client_request_shm::serve): Return ENOSYS for invalid request types.
1080 Implement SHM_DEL - delete a shm id.
1081 * cygserver_shm.h (SHM_DEL): New type value.
1082 * shm.cc (delete_inprocess_shmds): New function, does what it's name implies.
1083 (shmctl): Implement shm_rmid control type.
1084
74c3173a
RC
10852002-03-04 Robert Collins <rbtcollins@hotmail.com>
1086
1087 * Makefile.in (install): Remove install-bin to allow make install to work.
1088
009314a4
RC
10892002-03-03 Robert Collins <rbtcollins@hotmail.com>
1090
1091 * shm.cc (shmat): Prevent a compile error.
1092 (shmdt): Set errno as this function is incomplete.
1093
e7729287
CF
10942002-02-28 Christopher Faylor <cgf@redhat.com>
1095
1096 * times.cc: Remove if 0'd code. Clean up slightly.
1097
f449bfef
RC
10982002-02-28 Robert Collins <rbtcollins@hotmail.com>
1099
1100 * Merged cygwin_daemon into head minus the new shm and ipc exports.
1101
11022002-02-28 Robert Collins <rbtcollins@hotmail.com>
1103
1104 * fhandler_tty.cc (fhandler_tty_slave::open): More debugging.
1105 (fhandler_tty_slave::read): Fix printf type for the handle.
1106 * tty.cc (tty::common_init): Add a FIXME for security.
1107
11082002-01-29 Robert Collins <rbtcollins@hotmail.com>
1109
1110 * Makefile.in (OBJS): Remove duplicate localtime.o.
1111
11122002-01-17 Robert Collins <rbtcollins@hotmail.com>
1113
291be307 1114 * cygserver.cc (check_and_dup_handle): Consolidate the two variants for
f449bfef
RC
1115 simplicity.
1116 Add Some basic debug output.
1117 (client_request_attach_tty::serve): Use the new debug_printf for clarity.
1118 Mark the duplicated handles as inheritable - fixup_after_fork() doesn't reopen
1119 tty's.
1120
11212002-01-16 Robert Collins <rbtcollins@hotmail.com>
1122
1123 * cygserver.cc (transport): Correct scope.
1124 (client_request_attach_tty::serve): Add more debug information.
1125 Fix erroneous use of transport instead of conn.
1126 * cygserver_transport_pipes.cc (transport_layer_pipes::close): More debug.
1127 (transport_layer_pipes::read): Ditto.
1128 (transport_layer_pipes::write): Ditto.
1129 (transport_layer_pipes::impersonate_client): Ditto.
1130
1131Mon Oct 8 7:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
1132
1133 * cygserver.cc (server_request::process): Rename client_request_shm_get to
1134 client_request_shm.
1135 * cygserver_process.cc (process_cache::add): Rename to add_task.
1136 Use process_cleanup instead of process_request.
1137 (process_cache::remove_process): New method.
1138 (process::process): Initialize new members.
1139 (process::~process): New member.
1140 (process::cleanup): New method.
1141 (process::add_cleanup_routine): New method.
1142 (process_request::process): Rename to process_cleanup.
1143 Call the process object's cleanup method and then delete it.
1144 (process_process_param::request_loop): Remove the signalling process.
1145 * cygserver_shm.cc: Globally rename client_request_shm_get to client_request_shm.
1146 (client_request_shm_get::serve): Handle attach request counting.
1147 * cygserver_shm.h: Globally rename client_request_shm_get to client_request_shm.
1148 (class shm_cleanup): New class.
1149 * shm.cc: Globally rename client_request_shm_get to client_request_shm.
1150 (client_request_shm::client_request_shm): New constructor for attach requests.
1151 (shmat): Use it.
291be307 1152 * include/cygwin/cygserver_process.h (class process_request): Rename to
f449bfef
RC
1153 process_cleanup.
1154 (class cleanup_routine): New class.
1155 (class process): New members and methods to allow calling back when the process
1156 terminates.
1157
1158Thu Oct 4 14:12:00 2001 Robert Collins <rbtcollins@hotmail.com>
1159 * cygserver.cc (request_loop): Make static.
1160 (main): Use new cache constructor syntax.
1161 Start cache worker threads.
1162 Cleanup the cache at shutdown.
1163 * cygserver_process.cc: Run indent.
1164 (process_cache::process_cache): Add a trigger to use when adding a process.
1165 (process_cache::process): Move process_entry to process.
1166 Insert at the end of the list.
1167 Trigger the request loop when new process's inserted.
1168 (process_cache::process_requests): Do it.
1169 (process_cache::add): New method.
1170 (process_cache::handle_snapshot): New method.
1171 (process::process): Merge in the process_entry fields.
1172 (process::handle): Make a stub function.
1173 (process::exit_code): New method.
1174 (process_request::process): New method.
1175 (process_process_param::request_loop): New method.
1176 * cygserver_shm.cc: New header dependency - threaded_queue.h.
1177 * threaded_queue.cc (threaded_queue::cleanup): Clearer messages.
1178 (queue_process_param::stop): Short spinlock on interruptible threads.
1179 * threaded_queue.h (class threaded_queue): New constructor.
1180 * include/cygwin/cygserver_process.h (process_request): New class.
1181 (process_entry): Remove.
1182 (process): Merge in process_entry.
1183 (process_cache): Inherit from threaded_queue.
1184
1185Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com>
1186
1187 * cygserver.cc (class server_process_param): Use new constructor syntax.
1188 * cygserver_process.cc (process_cache::~process_cache): New function.
1189 * threaded_queue.cc: Define condition debug_printf.
1190 Run indent.
1191 (threaded_queue::cleanup): Move queue_process_param guts to a method.
1192 (threaded_queue::process_requests): Ditto.
1193 (queue_process_param::queue_process_param): New method.
1194 (queue_process_param::~queue_process_param): Ditto.
1195 (queue_process_param::start): Ditto.
1196 (queue_process_param::stop): Ditto.
291be307 1197 * threaded_queue.h (class queue_process_param): Add support for
f449bfef
RC
1198 interruptible request loops.
1199 * cygwin/include/cygwin/cygserver_process.h (class process_cache): Add
1200 destructor.
1201
1202Tue Oct 2 23:24:00 2001 Robert Collins <rbtcollins@hotmail.com>
1203
1204 * cygserver_client.cc: New flag allow_daemon to disable the daemon completely.
1205 (cygserver_request): Check it.
1206 (cygserver_init): Ditto.
1207 * environ.cc (parse_thing): Add (no)daemon option.
1208
1209Tue Oct 2 23:00:00 2001 Robert Collins <rbtcollins@hotmail.com>
1210
1211 * shm.cc: Update to handle include changes from HEAD.
1212
1213Tue Oct 2 16:06:00 2001 Robert Collins <rbtcollins@hotmail.com>
1214
291be307 1215 * Makefile.in: Remove cygserver_shm.o from cygwin1.dll.
f449bfef
RC
1216 Rename cygserver_shm_outside.o to cygserver_shm.o.
1217 * cygserver.cc (server_request::process): Use the new client_request
1218 constructor.
1219 * cygserver_client.cc: Remove the #ifdef's stubs for the server method
1220 within cygwin.
1221 (client_request_attach_tty::client_request_attach_tty): Use the new
1222 client_request constructor.
1223 (client_request_shutdown::client_request_shutdown): Ditto.
1224 (client_request::client_request): Ditto.
291be307 1225 * cygserver_shm.cc (client_request_shm_get::serve): Remove the
f449bfef
RC
1226 #ifdef'd stub for in-cygwin builds.
1227 (client_request_shm_get::client_request_shm_get): Use the new
1228 client_request constructor, and remove the in-cygwin variants.
1229 * cygserver_shm.h (class client_request_shm_get): #ifndef test the
1230 serve method - it's only used in cygserver.
1231 * shm.cc (client_request_shm_get::client_request_shm_get): New function.
1232 * include/cygwin/cygserver.h (request_header): New constructor.
291be307 1233 (class client_request): Use it.
f449bfef
RC
1234 New constructor accepting the header size.
1235 #ifndef test the server method - it's only used within cygserver.
1236 (client_request_get_version): #ifdef test the server method.
1237 (client_request_shutdown): Ditto.
1238 (client_request_attach_tty): Ditto.
1239
1240Tue Oct 2 9:57:00 2001 Robert Collins <rbtcollins@hotmail.com>
1241
1242 * Makefile.in: add threaded_queue.o to cygserver.exe.
1243 * cygserver.cc: Include threaded_queue.h
1244 (class server_request): Inherit from queue_request.
1245 (class server_process_param): Inherit from queue_process_param.
1246 (class server_request_queue): Inherit from threaded_queue.
1247 (request_loop): Adjust for new types.
291be307 1248 (server_request_queue::process_requests): Remove guts to
f449bfef
RC
1249 threaded_queue::process_requests.
1250 (server_request::server_request): Adjust for new types.
1251 (worker_function): Delete.
1252 (server_request_queue::create_workers): Delete.
1253 (server_request_queue::cleanup): Delete.
1254 (server_request_queue::add): Move guts to threaded_queue::add.
1255 * threaded_queue.cc: New file.
1256 * threaded_queue.h: New file.
1257
1258Mon Oct 1 12:38:00 2001 Robert Collins <rbtcollins@hotmail.com>
1259
1260 * cygserver.cc (client_request::serve): New function.
1261 * cygserver_process.cc: Inlude <pthread.h> for pthread_once.
1262 (process_cache::process_cache): Initialise a crtiical section for write access.
291be307 1263 (process_cache::process): Use the critical section. Also add missing entries to
f449bfef
RC
1264 the cache.
1265 (do_process_init): New function to initalise class process static variables.
291be307 1266 (process::process): Ensure that the process access critical section is
f449bfef
RC
1267 initialised.
1268 (process::handle): Close the handle of old process's when they have terminated
1269 and we are returning the handle for a process with the same pid.
1270 * cygserver_shm.cc: Run indent.
1271 Include cygserver_process.h to allow process cache functionality.
1272 (client_request_shm_get::serve): New parameter for process cache support.
1273 Use the process cache, not OpenProcess to get a handle to the originating process.
1274 Fix a handle leak with token_handle.
291be307 1275 * cygserver_shm.h (class client_request_shm_get): Update ::serve for process
f449bfef
RC
1276 cache support.
1277 * cygserver_transport_pipes.cc: Redefine debug_printf to be conditional on DEBUG.
291be307 1278 * include/cygwin/cygserver.h: Do not implement client_request::serve in the
f449bfef 1279 header.
291be307
CF
1280 * include/cygwin/cygserver_process.h (class process_cache): Add a write access
1281 critical section to prevent races when requests from a multithreaded
f449bfef
RC
1282 application arrive.
1283
1284Sun Sep 30 23:41:00 2001 Robert Collins <rbtcollins@hotmail.com>
1285
1286 * Makefile.in: Add cygserver_process.o to cygserver.exe.
1287 * cygserver.cc: Include signal.h and cygwin_version.h.
1288 Define debug_printf as a macro.
1289 Define DEBUG to a value.
1290 (client_request_attach_tty::serve): Add beginning of process cache support.
1291 Change from #ifdef DEBUG to work with new DEBUG style.
1292 (client_request_get_version::serve): Add beginning of process cache support.
1293 (class server_request): New prototype for support of process cache.
1294 (class queue_process_param): New class to allow request loop threading.
1295 (class server_request_queue): Add beginning of process cache support.
1296 Allow request loop threading.
1297 (request_loop): Thread function for request loops.
1298 (server_request_queue::process_requests): Initiator for threaded request loops.
1299 (client_request_shutdown::serve): Add beginning of process cache support.
1300 (server_request::server_request): Ditto.
291be307 1301 (server_request::process): Use debug_printf. Add beginning of process cache
f449bfef
RC
1302 support.
1303 (server_request_queue::cleanup): Kill off any request loop threads.
1304 (server_request_queue::add): Add beginning of process cache support.
1305 (handle_signal): Trigger a shutdown.
1306 (main): Print out some useful info at startup - version, date time.
1307 Add process cache support.
1308 Spawn a separate thread for the transport request loop, thus allowing concurrent
1309 support for multiple transports.
291be307 1310 * cygserver_client.cc (client_request_get_version::serve): Add process cache
f449bfef
RC
1311 support.
1312 (client_request_attach_tty::serve): Add process cache support.
1313 (client_request_shutdown::serve): Add process cache support.
1314 * cygsserver_process.cc: New file with the process cache support.
1315 * cygserver_shm.cc: Redefine debug_printf to allow conditional output.
1316 * cygwin.din: Export shmdt().
1317 * shm.cc: Run indent.
1318 Update FIXME's.
1319 (shmdt): New function.
1320 * include/cygwin/cygserver.h (class client_request): Add process cache support.
1321 (class client_request_get_version): Ditto.
1322 (class client_request_shutdown): Ditto.
1323 (class client_request_attach_tty): Ditto.
1324 * include/cygwin/cygserver_process.h: New header for process cache support.
1325
1326Sun Sep 30 8:52:00 2001 Robert Collins <rbtcollins@hotmail.com>
1327
1328 * include/cygwin/cygserver_transport.h: Add copyright header.
1329 * include/cygwin/cygserver_transport_pipes.h: Ditto.
1330 * include/cygwin/cygserver_transport_sockets.h: Ditto.
1331
1332Sat Sep 29 20:40:00 2001 Robert Collins <rbtcollins@hotmail.com>
1333
1334 * Makefile.in: Add cygserver_transport_sockets.o to DLL_OFILES.
1335 Add cygserver_transport_sockets_outside.o to cygserver.exe.
1336 * cygserver.cc: Include new include files.
1337 * cygserver_client.cc: Ditto.
1338 * cygserver_shm.h: No need to include <sys/socket.h> now.
1339 * cygerver_transport.cc: Include new include files.
1340 (transport_layer_base::transport_layer_base): Strip back to a stub.
1341 (transport_layer_base::listen): Ditto.
1342 (transport_layer_base::accept): Ditto.
1343 (transport_layer_base::close): Ditto.
1344 (transport_layer_base::read): Ditto.
1345 (transport_layer_base::write): Ditto.
1346 (transport_layer_base::connect): Ditto.
291be307 1347 * cygserver_transport_pipes.cc: Include new header
f449bfef
RC
1348 "cygwin/cygserver_transport_pipes.h".
1349 * cygserver_transport_sockets.cc: New file.
1350 * dcrt0.cc: No need to include <sys/socket.h> now.
1351 * fhandler_tty.cc: Ditto.
1352 * tty.cc: Ditto.
1353 * include/cygwin/cygserver_transport.h: Strip the base class to a stub.
1354 Remove the cygserver_transport_pipes class.
1355 * include/cygwin/cygserver_transport_pipes.h: New file.
1356 * include/cygwin/cygserver_transport_sockets.h: New file.
1357
1358Tue Sep 25 16:22:00 2001 Robert Collins <rbtcollins@hotmail.com>
1359
1360 * autoload.cc: Add dynamic load statement for 'ImpersonateNamedPipeClient'.
1361 * Makefile.in: Add new object files, and build instructions for cygserver.exe.
1362 * cygwin.din: Export ftok, shmat, shmctl and shmget.
1363 * dcrt0.cc: Additional includes for cygserver support.
1364 (dll_crt0_1): Initialise the cygserver client.
1365 * fhandler.h (fhandler_tty): New method cygserver_attach_tty.
1366 * fhandler_tty.cc: Additional includes for cygserver support.
1367 (fhandler_tty_slave::open): Attempt to use the cygserver when obtaining
1368 handles from the parent process. On failure or 9x use the current method.
1369 (fhandler_tty_slave::cygserver_attach_tty): New function.
1370 * fork.cc (fork_child): Fixup shm memory mapped areas.
1371 * pinfo.h: Declare fixup_shms_after_fork().
1372 * security.h: Declare alloc_sd().
1373 * tty.cc: Additonal includes to support cygserver.
1374 (tty::common_init): Don't allow others to open us if the cygserver is running.
1375 * winsup.h: Declare cygserver_running.
1376 * cygserver.cc: New file.
1377 * cygserver_client.cc: New file.
1378 * cygserver_shm.cc: New file.
1379 * cygserver_shm.h: New file.
1380 * cygserver_transport.cc: New file.
1381 * cygserver_transport_pipes.cc: New file.
1382 * ipc.cc: New file.
1383 * shm.cc: New file.
1384 * include/cygwin/cygserver.h: New file.
1385 * include/cygwin/cygserver_transport.h: New file.
1386 * include/sys/ipc.h: New file.
1387 * include/sys/shm.h: New file.
1388
062401c9
RC
13892002-02-28 Robert Collins <rbtcollins@hotmail.com>
1390
1391 * thread.cc (semaphore::TryWait): Set errno as required by posix 1003.1.
1392 (__sem_wait): Ditto.
1393 (__sem_trywait): Ditto.
1394
d1f50ae5
CF
13952002-02-27 Christopher Faylor <cgf@redhat.com>
1396
1397 * include/cygwin/version.h: Bump DLL minor number.
1398
acb56175
CV
13992002-02-23 Corinna Vinschen <corinna@vinschen.de>
1400
1401 * cygwin.din (fstat64): New symbol.
1402 (ftruncate64): Ditto.
1403 (lseek64): Ditto.
1404 (lstat64): Ditto.
1405 (mmap64): Ditto.
1406 (seekdir64): Ditto.
1407 (stat64): Ditto.
1408 (telldir64): Ditto.
1409 (truncate64): Ditto.
1410 * dir.cc (telldir64): New function.
1411 (telldir): Call telldir64().
1412 (seekdir64): New function.
1413 (seekdir): Call seekdir64().
1414 * fhandler.h: Redefine all methods using __off32_t to use __off64_t.
1415 * fhandler.cc: Use __off64_t and struct __stat64 throughout.
1416 * fhandler_clipboard.cc: Ditto.
1417 * fhandler_disk_file.cc: Ditto.
1418 * fhandler_dsp.cc: Ditto.
1419 * fhandler_floppy.cc: Ditto.
1420 * fhandler_mem.cc: Ditto.
1421 * fhandler_random.cc: Ditto.
1422 * fhandler_socket.cc: Ditto.
1423 * fhandler_tape.cc: Ditto.
1424 * fhandler_zero.cc: Ditto.
1425 * pipe.cc: Ditto.
1426 * glob.c: Ditto, call lstat64 and stat64 in Cygwin.
1427 * mmap.cc: Use __off64_t throughout.
1428 (mmap64): New function.
1429 * sec_acl.cc (acl_worker): Use struct __stat64, call stat64 and lstat64.
1430 * syscalls.cc (lseek64): New function.
1431 (stat64_to_stat32): Ditto.
1432 (fstat64): Ditto.
1433 (stat64): Ditto.
1434 (lstat64): Ditto.
1435 (ftruncate64): Ditto.
1436 (truncate64): Ditto.
1437 (_fstat): Call fstat64.
1438 (_stat): Call stat64.
1439 (cygwin_lstat): Rename to avoid declaration problem. Call lstat64.
1440 (stat_worker): Use struct __stat64.
1441 (access): Ditto.
1442 (ftruncate): Call ftruncate64.
1443 (truncate): Call truncate64.
1444 * wincap.cc: Set flag has_64bit_file_access appropriately.
1445 * wincap.h: Add flag has_64bit_file_access.
1446 * winsup.h (ILLEGAL_SEEK): Define as __off64_t.
1447 (stat_dev): Declare using struct __stat64.
1448 (stat_worker): Ditto.
1449 * include/cygwin/stat.h (struct __stat32): Define if compiling Cygwin.
1450 (struct __stat64): Ditto.
1451 (struct stat): Revert definition with explicitly sized datatypes.
1452 Eliminate sized field names.
1453 * include/cygwin/types.h (blksize_t): New type.
1454 (__blkcnt32_t): Ditto.
1455 (__blkcnt64_t): Ditto.
1456 (blkcnt_t): Ditto.
1457
083abe54
CF
14582002-02-22 Christopher Faylor <cgf@redhat.com>
1459
1460 * sync.h (new_muto): Just accept an argument which denotes the name of
1461 the muto. Use this argument to construct static storage.
1462 * cygheap.cc (cygheap_init): Reflect above change.
1463 * exceptions.cc (events_init): Ditto.
1464 * malloc.cc (malloc_init): Ditto.
1465 * path.cc (cwdstuff::init): Ditto.
1466 * cygheap.h (cwdstuff): Change name of lock element to make it less
1467 generic.
1468 * path.cc (cwdstuff::get_hash): Ditto.
1469 (cwdstuff::get_initial): Ditto.
1470 (cwdstuff::set): Ditto.
1471 (cwdstuff::get): Ditto.
1472 * sigproc.cc (proc_subproc): Ditto.
1473
1474 * debug.cc (lock_debug): Change to method. Use method rather than
1475 macro throughout.
1476
1477 * tty.h (tty_min::kill_pgrp): Declare new method.
1478 * fhandler_termios.cc (tty_min::kill_pgrp): New method.
1479 (fhandler_termios::line_edit): Use new method for killing process.
1480 * dcrt0.cc (do_exit): Ditto.
1481
1482 * dtable.cc (dtable::get_debugger_info): New method for inheriting
1483 dtable info from a debugger.
1484 * tty.cc (tty_init): Attempt to grab file handle info from parent
1485 debugger, if appropriate.
1486
1487 # dtable.cc (dtable::stdio_init): Make this a method.
1488 (dtable::init_std_file_from_handle): Don't set fd unless it's not open.
1489 (dtable::build_fhandler_from_name): Move name setting to
1490 dtable::build_fhandler.
1491 (dtable::build_fhandler): Add win32 name parameter.
1492 * dcrt0.cc (dll_crt0_1): Change to use dtable stdio_init.
1493 * dtable.h (dtable): Reflect build_fhandler parameter change.
1494 * mmap.cc (mmap_record::alloc_fh): Don't set name parameter in
1495 build_fhandler.
1496 * net.cc (fdsock): Remove set_name call since it is now handled by
1497 build_fhandler.
1498
1499 * sigproc.cc (proc_subproc): Release muto as early as possible.
1500
a6790c5f
CV
15012001-02-22 Corinna Vinschen <corinna@vinschen.de>
1502
1503 * smallprint.c (rn): Allow long long values.
1504 (__small_vsprintf): Add 'D', 'U' and 'X' formats for long long
1505 parameters.
1506
aa6df8d7
CF
15072002-02-19 Christopher Faylor <cgf@redhat.com>
1508
1509 * fhandler.cc (fhandler_base::puts_readahead): Remove default parameter
1510 setting. Newer gcc's complain about this.
1511 (fhandler_base::set_readahead_valid): Ditto.
1512 * fhandler_dsp.cc (Audio::open): Ditto.
1513 (fhandler_dev_dsp::open): Ditto.
1514
cecb74ae
CF
15152002-02-19 Christopher Faylor <cgf@redhat.com>
1516
1517 * fork.cc (fork_parent): Use sec_user_nih to control process/thread
1518 inheritance/permission.
1519 * spawn.cc (spawn_guts): Ditto.
1520 * security.cc (create_token): Initialize token so that it is not tested
1521 for bogus value later. Use sec_user to control process/thread
1522 creation.
1523 * security.h (__sec_user): Rename declaration from sec_user.
1524 (sec_user_nih): Declare here as inline function wrapper for __sec_user.
1525 (sec_user): Ditto.
1526 * sigproc.cc (czombies): Allocate a character array for zombies to
1527 avoid constructor overhead
1528 (extremely hackish, I know).
1529 (cpchildren): Ditto.
1530 (pchildren): New define.
1531 (zombies): Ditto.
1532 (getsem): Use sec_user_nih to control semaphore inheritance/permission.
1533
2bd22312
CF
15342002-02-16 Christopher Faylor <cgf@redhat.com>
1535
1536 * times.cc (hires::prime): Restore thread priority on failure
1537 condition.
1538
1539 * uinfo.cc (uinfo_init): Use more robust method for determining if
1540 process was invoked from a non-cygwin process.
1541
1542 * sync.h (muto::init): Eliminate "inheritance" parameter.
1543 (new_muto): Reflect removal of parameter.
1544 * sync.cc (muto::init): Ditto.
1545 * cygheap.cc (cygheap_init): Ditto.
1546 * debug.cc (threadname_init): Ditto.
1547 * exceptions.cc (events_init): Ditto.
1548 * malloc.cc (malloc_init): Ditto.
1549 * path.cc (cwdstuff::init): Ditto.
1550 * sigproc.cc (sigproc_init): Ditto.
1551
4c761646
CF
1552 * grp.cc (group_lock): Use different method for locking with static
1553 member.
2bd22312 1554 (read_etc_group): REALLY ensure that read lock mutex is released.
4c761646
CF
1555 * passwd.cc (passwd_lock): Use different method for locking with static
1556 member.
1557 (read_etc_passwd): REALLY ensure that read lock mutex is released.
2bd22312
CF
1558
1559 * shared.cc (sec_user): Correct reversed inheritance test.
1560
60b68f0d
CF
15612002-02-15 Christopher Faylor <cgf@redhat.com>
1562
1563 * hires.h (hires::usecs): Rename from utime. Accept an argument.
1564 * strace.cc (strace::microseconds): Use hires class for calculating
1565 times.
1566 * sync.h (new_muto): Use NO_COPY explicitly in declaration.
1567 * times.cc (gettimeofday): Reflect change in usecs argument.
1568 (hires::usecs): Ditto. Changed name from utime.
1569 * winsup.h (NO_COPY): Add nocommon attribute to force setting aside
1570 space for variable.
1571 * regcomp.c (REQUIRE): Add a void cast to bypass a warning.
1572
dce87b21
CF
15732002-02-15 Christopher Faylor <cgf@redhat.com>
1574
1575 * hires.h: New file.
1576 * times.cc (gettimeofday): Use hires class for calculating current time.
1577 (hires::prime): New method.
1578 (hires::utime): Ditto.
1579
3d456520
CF
15802002-02-14 Christopher Faylor <cgf@redhat.com>
1581
1582 * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE.
1583 * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE.
1584
907dc7d0
CF
15852002-02-14 Christopher Faylor <cgf@redhat.com>
1586
1587 * exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to
1588 asm.
1589 * external.cc (cygwin_internal): Change CW_STRACE_ON to
1590 CW_STRACE_TOGGLE.
1591 * strace.cc (strace::hello): Toggle strace on and off.
1592 * sync.cc (muto::init): Renamed from constructor.
1593 * sync.h (muto::new): Delete.
1594 (muto::delete): Ditto.
1595 (new_muto): Simplify. Use muto.init for nearly everything.
1596 * uinfo.cc (uinfo_init): Avoid closing a NULL handle.
1597 * include/sys/cygwin.h (cygwin_getinfo_types): Rename CW_STRACE_OFF to
1598 CW_STRACE_TOGGLE. Delete CW_STRACE_OFF.
1599 * include/sys/strace.h (strace): Add "inited" field.
1600
4753a17b
CV
16012001-02-12 Corinna Vinschen <corinna@vinschen.de>
1602
1603 * include/cygwin/acl.h: Fix definition of aclent_t.
1604
909acaf6
CF
16052002-02-10 Christopher Faylor <cgf@redhat.com>
1606
1607 * Makefile.in (DLL_OFILES): Consolidate object files.
1608
de4e0d30
CV
16092002-02-10 Corinna Vinschen <corinna@vinschen.de>
1610
b31c68c4
CV
1611 * child_info.h, cygheap.h, fhandler_clipboard.cc, fhandler_dsp.cc,
1612 fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
1613 fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
1614 pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
1615 security.h, thread.h, uinfo.cc, include/cygwin/acl.h: Fix copyright.
1616
16172002-02-10 Corinna Vinschen <corinna@vinschen.de>
1618
1619 * child_info.h, cygheap.h, dcrt0.cc, dir.cc, fhandler.cc, fhandler.h,
de4e0d30
CV
1620 fhandler_clipboard.cc, fhandler_disk_file.cc, fhandler_dsp.cc,
1621 fhandler_floppy.cc, fhandler_mem.cc, fhandler_random.cc,
1622 fhandler_tape.cc, fhandler_zero.cc, grp.cc, mmap.cc, passwd.cc,
1623 pinfo.cc, pinfo.h, pipe.cc, sec_acl.cc, sec_helper.cc, security.cc,
b31c68c4 1624 security.h, spawn.cc, syscalls.cc, thread.h, uinfo.cc, winsup.h:
de4e0d30
CV
1625 Change usage of uid_t to __uid16_t, gid_t to __gid16_t and
1626 off_t to __off32_t throughout. Use INVALID_UID, INVALID_GID and
1627 INVALID_SEEK instead casting -1 to the appropriate type.
1628 * winsup.h: Define INVALID_UID, INVALID_GID and INVALID_SEEK.
1629 * include/cygwin/acl.h: Define internal __aclent16_t and __aclent32_t
1630 types. Don't declare acl functions when compiling Cygwin.
1631 * include/cygwin/grp.h: Declare getgrgid() and getgrnam() with
1632 correct types for internal usage.
1633
39b553b8
CV
16342002-02-10 Corinna Vinschen <corinna@vinschen.de>
1635
1636 Patch suggested by Pierre A. Humblet <Pierre.Humblet@ieee.org>:
1637 * uinfo.cc (internal_getlogin): Try evaluating user by SID even if
1638 ntsec is off.
1639 (uinfo_init): Set primary group even if ntsec is off.
1640
52296b85
CV
16412002-02-09 Corinna Vinschen <corinna@vinschen.de>
1642
1643 * include/cygwin/grp.h: New file.
1644 * include/cygwin/stat.h: Ditto.
1645 * include/cygwin/types.h: Add definitions for __off32_t,
1646 __off64_t, off_t, __uid16_t, __uid32_t, uid_t, __gid16_t,
1647 __gid32_t and gid_t.
1648 * include/sys/cygwin.h: Use correct uid and gid types.
1649
ff86860b
CV
16502002-02-09 Corinna Vinschen <corinna@vinschen.de>
1651
1652 * dtable.cc (dtable::dup2): Revert previous patch.
1653 * fhandler.h: Ditto.
1654 (fhandler_socket::recv): Define new method.
1655 (fhandler_socket::send): Ditto.
1656 * fhandler_socket.cc (fhandler_socket::recv): New method.
1657 (fhandler_socket::send): Ditto.
1658 (fhandler_socket::read): Call fhandler_socket::recv() now.
1659 (fhandler_socket::write): Call fhandler_socket::send() now.
1660 * net.cc (class wsock_event): Move definition to wsock_event.h.
1661 (fdsock): Revert previous patch.
1662 (cygwin_recv): Move implementation to fhandler_socket::recv().
1663 (cygwin_send): Move implementation to fhandler_socket::send().
1664 * wsock_event.h: New file.
1665
d0672acc
CV
16662002-02-06 Alexander Gottwald <Alexander.Gottwald@s1999.tuchemnitz.de>
1667
1668 * net.cc (get_2k_ifconf): Create interface entries for tokenring cards.
1669
fae28904
CV
16702002-02-08 Corinna Vinschen <corinna@vinschen.de>
1671
1672 * dtable.cc (dtable::dup2): Store fd for fhandler_socket.
1673 * fhandler.h (fhandler_base::set_fd): New virtual method.
1674 (fhandler_base::get_fd): Ditto.
1675 (fhandler_socket::set_fd): Ditto.
1676 (fhandler_socket::get_fd): Ditto.
1677 * fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead
1678 of native Winsock recv.
1679 (fhandler_socket::write): Call cygwin_send instead of native Winsock
1680 send.
1681 * net.cc (fdsock): Store fd in fhandler_socket.
1682
1f64102f
CV
16832002-02-07 Corinna Vinschen <corinna@vinschen.de>
1684
1685 * net.cc (cygwin_getsockname): Fix handling of NULL sun_path.
1686
562d9745
CV
16872002-01-29 Corinna Vinschen <corinna@vinschen.de>
1688
1689 * net.cc (getdomainname): Fix registry key for 9x systems, too.
1690
94ee02fa
CV
16912002-01-29 Corinna Vinschen <corinna@vinschen.de>
1692
1693 * net.cc (getdomainname): Fix registry key for NT systems.
1694
494a66d9
CF
16952002-01-28 Christopher Faylor <cgf@redhat.com>
1696
1697 * external.cc (cygwin_internal): Initialize various internal settings
1698 if required to allow use of some things from user loaded DLL.
1699 (CW_STRACE_ON): Add new feature.
1700 (CW_CYGWIN_PID_TO_WINPID): Ditto.
1701 * pinfo.cc (set_myself): Call "strace.hello" to initiate possible
1702 strace session.
1703 (pinfo::init): Guard against dereferencing uninitialized myself.
1704 * sigproc.cc (wait_sig): Call strace.hello() when __SIGTRACE "signal"
1705 received.
1706 * strace.cc (strace::hello): New method.
1707 * wincap.cc (wincapc::init): Avoid initializing if already initialized.
1708 * wincap.h (wincapc::wincapc): New method.
1709 * include/sys/cygwin.h: Add new CW_ enums. Kludge typedefs of
1710 {g,u}id_t if required.
1711 * strace.h (strace::hello): Declare new method.
1712
6616e6cf
CF
17132002-01-28 Earnie Boyd <earnie@users.sf.net>
1714
1715 * include/sys/strace.h (_STRACE_ON): Define.
1716 (_STRACE_OFF): Ditto.
1717
dfb4c347
CF
17182002-01-24 Christopher Faylor <cgf@redhat.com>
1719
1720 * speclib: Ensure that temporary def file is removed.
1721
3c07fbeb
CF
17222002-01-23 Christopher Faylor <cgf@redhat.com>
1723
1724 * speclib: Use rm -f to remove temp file just to quiet any potential
1725 warnings.
1726
f6fc31e1
CV
17272002-01-23 Corinna Vinschen <corinna@vinschen.de>
1728
1729 * security.cc (create_token): Use sec_user() to create
be6d8567
CV
1730 SECURITY_ATTRIBUTES structure for primary token. Use
1731 MAXIMUM_ALLOWED access rights instead of TOKEN_ALL_ACCESS.
f6fc31e1 1732
adbd01af
CV
17332002-01-23 Corinna Vinschen <corinna@vinschen.de>
1734
1735 * path.cc (symlink): Fix check for already existing file.
1736
aed69a5b
CF
17372002-01-21 Christopher Faylor <cgf@redhat.com>
1738
1739 * cygmagic: Suppress error output when figuring out if sum takes an
1740 option.
1741
f3647dd7
CF
17422002-01-21 Christopher Faylor <cgf@redhat.com>
1743
1744 * cygmagic: Attempt to figure out if sum takes an option.
1745
51076b73
CF
17462002-01-21 DJ Delorie <dj@redhat.com>
1747
1748 * Makefile.in (libpthread.a): Pass the assembler also.
291be307 1749 (libm.a): Ditto.
51076b73
CF
1750 (libc.a): Ditto.
1751 * speclib: Specify the assembler to dlltool.
1752
0ac2abea
CF
17532002-01-21 Christopher Faylor <cgf@redhat.com>
1754
1755 * include/cygwin/version.h: Bump DLL minor number.
1756
ac11ec88
CV
17572002-01-21 Corinna Vinschen <corinna@vinschen.de>
1758
28982aa8 1759 * grp.cc (getgrgid): Don't return default gid entry when ntsec is on.
ac11ec88
CV
1760 * syscalls.cc (setegid): Don't set primary group in process token.
1761
8ef47135
CF
17622002-01-21 Christopher Faylor <cgf@redhat.com>
1763
1764 * speclib: Don't use /dev/null as DLL name. Just default to what's
1765 already in .def file.
1766
17672002-01-21 Christopher Faylor <cgf@redhat.com>
1768
1769 * exceptions.cc (sig_handle): Remove last vestiges of SA_NOCLDSTOP code
1770 which caused SIGCHLD to be ignored.
1771
07cc1f1f
CF
17722002-01-20 Christopher Faylor <cgf@redhat.com>
1773
1774 * include/cygwin/version.h: Bump DLL minor number.
1775
385437d4
CF
17762002-01-20 Christopher Faylor <cgf@redhat.com>
1777
1778 * syscalls.cc (regfree): Make dll_export.
1779
d7c16d8d
CF
17802002-01-20 Christopher Faylor <cgf@redhat.com>
1781
1782 * exceptions.cc (ctrl_c_handler): Convert windows pid to cygwin pid
1783 when detecting if we should actually handle CTRL-C.
1784
216109a8
CF
17852002-01-19 Christopher Faylor <cgf@redhat.com>
1786
1787 * Makefile.in (new-cygwin1.dll): Revert previous change. libsupc++.a
1788 is only available in libstdc++-v3.
1789
9e73b339
CF
17902002-01-19 Christopher Faylor <cgf@redhat.com>
1791
1792 * exceptions.cc (sig_handle_tty_stop): Don't send SIGCHLD if parent
1793 doesn't want it.
1794 (sig_handle): Don't check for SA_NOCLDSTOP here. We don't have enough
1795 information.
1796
5946622e
CF
17972002-01-19 Christopher Faylor <cgf@redhat.com>
1798
1799 * include/cygwin/version.h: Bump DLL minor number.
1800
994fe87b
CF
18012002-01-19 Christopher Faylor <cgf@redhat.com>
1802
1803 * Makefile.in (new-cygwin1.dll): Just use -lsupc++ for link.
1804 * sigproc.cc (proc_exists): Change existence criteria.
1805 * sync.h (new_muto): Add volatile to definition to avoid gcc
1806 optimization problems.
1807
df3af773
CV
18082002-01-19 Corinna Vinschen <corinna@vinschen.de>
1809
1810 * include/cygwin/version.h: Bump API minor version to 51.
1811
7d6be0d6
CV
18122002-01-19 Mark Bradshaw <bradshaw@staff.crosswalk.com>
1813
291be307
CF
1814 * cygwin.din: Add recvmsg and sendmsg.
1815 * net.cc: Add cygwin_recvmsg and cygwin_sendmsg.
1816 * /usr/include/sys/socket.h: Add recvmsg and sendmsg.
7d6be0d6 1817
2d3dab2e
CV
18182002-01-19 Corinna Vinschen <corinna@vinschen.de>
1819
1820 * security.cc (create_token): Close processes token handle as soon
1821 as it's not used anymore.
1822
104c3be6
CV
18232002-01-17 Corinna Vinschen <corinna@vinschen.de>
1824
1825 * Makefile.in: Add fnmatch.o to DLL_OFILES.
1826 * cygwin.din: Add fnmatch export symbol.
1827 * fnmatch.c: New file.
1828 * include/fnmatch.h: Ditto.
1829 * include/cygwin/version.h: Bump API minor version to 50.
1830
9a7e1562
CV
18312002-01-15 Corinna Vinschen <corinna@vinschen.de>
1832
1833 * path.cc (fchdir): Call chdir with full windows path.
1834
7eddac1b
CV
18352002-01-14 Corinna Vinschen <corinna@vinschen.de>
1836
1837 * dir.cc: Use INVALID_FILE_ATTRIBUTES instead of "(DWORD) -1"
1838 for file attributes throughout.
1839 * fhandler.cc: Ditto.
1840 * fhandler_disk_file.cc: Ditto.
1841 * path.cc: Ditto.
1842 * path.h: Ditto.
1843 * syscalls.cc: Ditto.
1844 * times.cc (utimes): Use path_conv::isdir() instead of explicit
1845 GetFileAttributes() call.
1846
5daa0835
CF
18472002-01-13 Christopher Faylor <cgf@redhat.com>
1848
1849 * dcrt0.cc (multiple_cygwin_problem): Clarify logic and make
1850 CYGWIN_MISMATCH_OK more powerful.
1851
06486d9e
CF
18522002-01-10 Christopher Faylor <cgf@redhat.com>
1853
1854 * exceptions.cc (sig_handle): Accept a second argument indicating
1855 whether the signal came from this process or not.
1856 * sigproc.h: Reflect sig_handle arg change.
1857 * signal.cc (kill_pgrp): Add sigframe info.
1858 (abort): New function. Eliminates newlib function of same name.
1859 * sigproc.cc (wait_sig): Pass "signal from this process" value as arg
1860 2.
1861
bb5225c2
CV
18622002-01-10 Corinna Vinschen <corinna@vinschen.de>
1863
1864 * syscalls.cc (pathconf): Guard _PC_PATH_MAX branch against invalid
1865 file parameter.
1866
c0a8e8d0 18672002-01-09 Christopher Faylor <cgf@redhat.com>
291be307 1868 Robert Collins <rbtcollins@hotmail.com>
c0a8e8d0
CF
1869
1870 * exceptions.cc (early_stuff_init): Rename from misnamed
1871 set_console_handler.
1872 (ctrl_c_handler): Attempt to work around potential signal duplication
1873 during process startup.
1874 (sig_handle): Ignore SIGINT when we're just an "exec stub".
1875 * spawn.cc (spawn_guts): Store pid of spawned process in global for use
1876 by ctrl_c_handler.
1877 * dcrt0.cc (dll_crt0_1): Call renamed initialization function.
1878 * winsup.h: Reflect function name change.
1879
fe37dd79
CV
18802002-01-08 Corinna Vinschen <corinna@vinschen.de>
1881
1882 * net.cc (cygwin_accept): Set sun_path for newly connected socket.
1883
cbf7a9eb
CF
18842002-01-07 Ralf Habacker <Ralf.Habacker@freenet.de>
1885
1886 * Makefile.in: Add uninstall target.
1887
a2e12d0c
CF
18882002-01-07 Christopher Faylor <cgf@redhat.com>
1889
1890 * sigproc.cc (getsem): Clean up debugging output.
1891
4a08cbfe
CF
18922002-01-07 Christopher Faylor <cgf@redhat.com>
1893
1894 * sigproc.cc (getsem): Set errno when unable to create own semaphore.
1895 Reorganize to make clearer that error should only come from initial
1896 creation of process semaphore.
1897
10dedaaa
CF
18982002-01-06 Christopher Faylor <cgf@redhat.com>
1899
1900 * dtable.cc (dtable::init_std_file_from_handle): Add some defensive
1901 code to invalid handle case.
1902
d6154fb7
CV
19032002-01-06 Corinna Vinschen <corinna@vinschen.de>
1904
1905 * ioctl.cc (ioctl): Make third argument optional.
1906 * include/sys/ioctl.h: Ditto in declaration.
1907 * dtable.cc (dtable::init_std_file_from_handle): Revert previous
1908 bogus patch.
1909 * window.cc (WndProc): Raise SIGURG instead of SIGIO in case of FD_OOB
1910 message.
1911
9125cbd7 19122002-01-05 Christopher Faylor <cgf@redhat.com>
fcb76c5d 1913
9125cbd7
CF
1914 * dir.cc (opendir): Guarantee release of alloced fhandler structure on
1915 error.
fcb76c5d 1916
9125cbd7
CF
19172002-01-05 Corinna Vinschen <corinna@vinschen.de>
1918
1919 * exceptions.cc (sig_handle): Set default action for SIGURG to SIG_IGN.
1920
19212002-01-05 Corinna Vinschen <corinna@vinschen.de>
2edba236
CV
1922
1923 * dtable.cc (dtable::init_std_file_from_handle): Don't treat NULL
1924 handle as errorneous.
1925
acf05df7
CF
19262002-01-04 Christopher Faylor <cgf@redhat.com>
1927
1928 * cygmagic: Change logic for equality test.
1929
7acba971
CF
19302002-01-04 Christopher Faylor <cgf@redhat.com>
1931
1932 * dir.cc (opendir): Don't attempt to call sub-opendir if ENOENT.
1933
9125cbd7 19342002-01-04 Corinna Vinschen <corinna@vinschen.de>
dc63cea5
CV
1935
1936 * net.cc: Replace usage of AF_UNIX by Posix compliant AF_LOCAL
1937 throughout.
1938 (socketpair): Explicitly allow SOCK_STREAM and SOCK_DGRAM socket types
1939 in families AF_UNIX and AF_LOCAL. Explicitly allow PF_UNSPEC, PF_LOCAL
1940 and PF_INET protocols. Return error otherwise. Implement datagram
1941 socketpairs.
1942
3b789217
CF
19432002-01-01 Christopher Faylor <cgf@redhat.com>
1944
291be307 1945 * speclib: Remove temp files automatically.
3b789217 1946
2fe27909 19472002-01-01 Corinna Vinschen <corinna@vinschen.de>
2fe27909
CV
1948 * fhandler.h (fhandler_socket::sun_path): New private member.
1949 (fhandler_socket::set_sun_path): New method.
1950 (fhandler_socket::get_sun_path): Ditto.
1951 * fhandler_socket.cc (fhandler_socket::fhandler_socket): Initialize
1952 sun_path to NULL.
1953 (fhandler_socket::~fhandler_socket): Free sun_path if needed.
1954 (fhandler_socket::set_sun_path): New method.
1955 * net.cc (cygwin_bind): Set sun_path to path of local socket file.
1956 (cygwin_getsockname): Add code to return correct sockaddr for unix
1957 domain sockets.
This page took 0.23341 seconds and 5 git commands to generate.